|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.beans.VetoableChangeSupport
public class VetoableChangeSupport
제약 프로퍼티을 지원하는 Bean 로 사용할 수 있는 유틸리티 클래스입니다. 이 클래스의 인스턴스를 Bean 의 멤버 필드로서 사용해, 다양한 처리를 위양 할 수가 있습니다. 이 클래스는 직렬화 가능합니다. 직렬화했을 경우, 직렬화 가능한 청취자가 보존 및 복원됩니다. 직렬화때, 직렬화 가능하지 않은 청취자는 스킵 됩니다.
생성자 의 개요 | |
---|---|
VetoableChangeSupport (Object sourceBean)
VetoableChangeSupport 객체를 구축합니다. |
메소드의 개요 | |
---|---|
void |
addVetoableChangeListener (String propertyName,
VetoableChangeListener listener)
특정의 프로퍼티의 VetoableChangeListener 를 추가합니다. |
void |
addVetoableChangeListener (VetoableChangeListener listener)
VetoableListener 를 청취자 리스트에 추가합니다. |
void |
fireVetoableChange (PropertyChangeEvent evt)
등록되어 모든 청취자에 대해서, 거부 가능 프로퍼티의 갱신을 트리거합니다. |
void |
fireVetoableChange (String propertyName,
boolean oldValue,
boolean newValue)
등록되어 모든 청취자에게 boolean 거부 가능 프로퍼티의 갱신을 통지합니다. |
void |
fireVetoableChange (String propertyName,
int oldValue,
int newValue)
등록되어 모든 청취자에게 int 거부 가능 프로퍼티의 갱신을 통지합니다. |
void |
fireVetoableChange (String propertyName,
Object oldValue,
Object newValue)
등록되어 모든 청취자에게 거부 가능 프로퍼티의 갱신을 통지합니다. |
VetoableChangeListener [] |
getVetoableChangeListeners ()
VetoableChangeListener 의 리스트를 돌려줍니다. |
VetoableChangeListener [] |
getVetoableChangeListeners (String propertyName)
지정된 프로퍼티에 관련지을 수 있던 모든 청취자의 배열을 돌려줍니다. |
boolean |
hasListeners (String propertyName)
특정의 프로퍼티에 청취자가 있을지 어떨지를 판정합니다. |
void |
removeVetoableChangeListener (String propertyName,
VetoableChangeListener listener)
특정의 프로퍼티의 VetoableChangeListener 를 삭제합니다. |
void |
removeVetoableChangeListener (VetoableChangeListener listener)
청취자 리스트로부터 VetoableChangeListener 를 삭제합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자 의 상세 |
---|
public VetoableChangeSupport(Object sourceBean)
VetoableChangeSupport
객체를 구축합니다.
sourceBean
- 모든 이벤트의 소스로서 지정되는 Bean메소드의 상세 |
---|
public void addVetoableChangeListener(VetoableChangeListener listener)
listener
가 null 의 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다.
listener
- 추가되는 VetoableChangeListenerpublic void removeVetoableChangeListener(VetoableChangeListener listener)
listener
가 2 회 이상 추가되었을 경우는, 삭제된 뒤에, 추가된 회수보다 1 회 적은 통지를 합니다. listener
가 null 의 경우, 또는 추가되지 않았던 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다.
listener
- 삭제되는 VetoableChangeListenerpublic VetoableChangeListener [] getVetoableChangeListeners()
public void addVetoableChangeListener(String propertyName, VetoableChangeListener listener)
propertyName
또는 listener
가 null 의 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다.
propertyName
- 대기하고 있는 프로퍼티의 이름listener
- 추가되는 VetoableChangeListenerpublic void removeVetoableChangeListener(String propertyName, VetoableChangeListener listener)
listener
가 2 회 이상 추가되었을 경우는, 삭제된 뒤에, 추가된 회수보다 1 회 적은 통지를 합니다. propertyName
가 null 의 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다. listener
가 null 의 경우, 또는 지정된 프로퍼티에 추가되지 않았던 경우는, 예외는 throw 되지 않고, 아무것도 처리는 행해지지 않습니다.
propertyName
- 대기하고 있던 프로퍼티의 이름listener
- 삭제되는 VetoableChangeListenerpublic VetoableChangeListener [] getVetoableChangeListeners(String propertyName)
propertyName
- 대기하고 있는 프로퍼티의 이름
VetoableChangeListeners
. 이러한 청취자가 추가되어 있지 않은 경우,
또는 propertyName
가 null 의 경우는
빈 상태(empty)의 배열이 반환되는public void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException
낡은 값과 새로운 값이 동일하고, null 가 아닌 경우, 이벤트는 트리거되지 않습니다.
propertyName
- 변경되는 프로퍼티의 프로그램명oldValue
- 프로퍼티의 낡은 값newValue
- 프로퍼티의 새로운 값
PropertyVetoException
- 수취하는 측으로 프로퍼티 변경의
롤백(rollback)를 지정하고 있는 경우public void fireVetoableChange(String propertyName, int oldValue, int newValue) throws PropertyVetoException
이 메소드는, Object 값을 받는, 보다 일반적인 fireVetoableChange 메소드의 간이 래퍼입니다.
propertyName
- 변경되는 프로퍼티의 프로그램명oldValue
- 프로퍼티의 낡은 값newValue
- 프로퍼티의 새로운 값
PropertyVetoException
public void fireVetoableChange(String propertyName, boolean oldValue, boolean newValue) throws PropertyVetoException
이 메소드는, Object 값을 받는, 보다 일반적인 fireVetoableChange 메소드의 간이 래퍼입니다.
propertyName
- 변경되는 프로퍼티의 프로그램명oldValue
- 프로퍼티의 낡은 값newValue
- 프로퍼티의 새로운 값
PropertyVetoException
public void fireVetoableChange(PropertyChangeEvent evt) throws PropertyVetoException
낡은 값과 새로운 값이 동일하고, null 가 아닌 경우, 이벤트는 트리거되지 않습니다.
evt
- 트리거되는 PropertyChangeEvent
PropertyVetoException
- 수취하는 측으로 프로퍼티 변경의
롤백(rollback)를 지정하고 있는 경우public boolean hasListeners(String propertyName)
propertyName
가 null 의 경우는, 모든 프로퍼티으로 등록된 청취자의 체크만을 합니다.
propertyName
- 프로퍼티명
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.