|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.beans.PropertyChangeSupport
javax.swing.event.SwingPropertyChangeSupport
public final class SwingPropertyChangeSupport
이것은 java.beans.PropertyChangeSupport 와 거의 같은 기능을 가지는 서브 클래스입니다. 유일한 차이는,SwingPropertyChangeSupport(sourceBean, true) 로 구축했을 경우, 이벤트발송쓰레드에 있는 청취자만이 통지를 받는 점입니다.
| 생성자 의 개요 | |
|---|---|
SwingPropertyChangeSupport (Object sourceBean)
SwingPropertyChangeSupport 객체를 구축합니다. |
|
SwingPropertyChangeSupport (Object sourceBean,
boolean notifyOnEDT)
SwingPropertyChangeSupport 객체를 구축합니다. |
|
| 메소드의 개요 | |
|---|---|
void |
firePropertyChange (PropertyChangeEvent evt)
등록되어 있는 청취자에게, 기존의 PropertyChangeEvent 를 트리거합니다. |
boolean |
isNotifyOnEDT ()
notifyOnEDT 프로퍼티을 돌려줍니다. |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| 생성자 의 상세 |
|---|
public SwingPropertyChangeSupport(Object sourceBean)
sourceBean - 모든 이벤트의 소스로서 지정된다
Bean
NullPointerException - sourceBean 가
null 의 경우
public SwingPropertyChangeSupport(Object sourceBean,
boolean notifyOnEDT)
sourceBean - 모든 이벤트의 소스로서 지정되는 BeannotifyOnEDT - 이벤트발송쓰레드상의 청취자에만
통지할지 어떨지
NullPointerException - sourceBean 가
null 의 경우| 메소드의 상세 |
|---|
public void firePropertyChange(PropertyChangeEvent evt)
isNotifyOnEDT() 가 true 로, 이벤트발송쓰레드를 취소했을 경우, 이 구현은 SwingUtilities.invokeLater 를 사용해 이벤트발송쓰레드에 통지를 송신합니다. 이것에 의해, 이벤트발송쓰레드상에 있는 청취자에만 통지가 보내집니다.
PropertyChangeSupport 내의 firePropertyChange evt - PropertyChangeEvent 객체
NullPointerException - evt 가
null 의 경우public final boolean isNotifyOnEDT()
notifyOnEDT 프로퍼티을 돌려줍니다.
notifyOnEDT 프로퍼티SwingPropertyChangeSupport(Object sourceBean, boolean notifyOnEDT)
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.