org.mdanderson.biostat.util
public abstract class ValidationAdapter extends Object implements Validator, StatusSource
Constructor and Description |
---|
ValidationAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
addStatusListener(StatusListener listener)
Adds a status listener for notification of state of data changes
|
void |
changedUpdate(DocumentEvent event)
Gives notification that an attribute or set of attributes changed
|
void |
insertUpdate(DocumentEvent event)
Gives notification that there was an insert into the document
|
abstract boolean |
isValid(Object value)
Determines the validity of data
|
void |
removeStatusListener(StatusListener listener)
Removes a status listener
|
void |
removeUpdate(DocumentEvent event)
Gives notification that a portion of the document has been removed
|
boolean |
validate(Object value)
Determines the validity of data and fires an event if state has changed
|
public abstract boolean isValid(Object value)
public boolean validate(Object value)
validate
in interface Validator
value
- data to be checkedisValid(java.lang.Object)
public void changedUpdate(DocumentEvent event)
changedUpdate
in interface DocumentListener
changedUpdate
in interface Validator
event
- document change notification eventpublic void insertUpdate(DocumentEvent event)
insertUpdate
in interface DocumentListener
insertUpdate
in interface Validator
event
- document change notification eventpublic void removeUpdate(DocumentEvent event)
removeUpdate
in interface DocumentListener
removeUpdate
in interface Validator
event
- document change notification eventpublic void addStatusListener(StatusListener listener)
addStatusListener
in interface StatusSource
addStatusListener
in interface Validator
listener
- status listenerpublic void removeStatusListener(StatusListener listener)
removeStatusListener
in interface StatusSource
removeStatusListener
in interface Validator
listener
- status listenerCopyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.