MDACC
Biostatistics

org.mdanderson.biostat.util
Interface Validator

All Superinterfaces:
DocumentListener, EventListener
All Known Implementing Classes:
ValidationAdapter

public interface Validator
extends DocumentListener

Validator - Interface for validation.


Method Summary
 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
 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
 

Method Detail

isValid

public boolean isValid(Object value)
Determines the validity of data

Parameters:
value - data to be checked
Returns:
true if data is valid; otherwise, false

validate

public boolean validate(Object value)
Determines the validity of data and fires an event if state has changed

Parameters:
value - data to be checked
Returns:
true if data is valid; otherwise, false
See Also:
isValid(java.lang.Object)

changedUpdate

public void changedUpdate(DocumentEvent event)
Gives notification that an attribute or set of attributes changed

Specified by:
changedUpdate in interface DocumentListener
Parameters:
event - document change notification event

insertUpdate

public void insertUpdate(DocumentEvent event)
Gives notification that there was an insert into the document

Specified by:
insertUpdate in interface DocumentListener
Parameters:
event - document change notification event

removeUpdate

public void removeUpdate(DocumentEvent event)
Gives notification that a portion of the document has been removed

Specified by:
removeUpdate in interface DocumentListener
Parameters:
event - document change notification event

addStatusListener

public void addStatusListener(StatusListener listener)
Adds a status listener for notification of state of data changes

Parameters:
listener - status listener

removeStatusListener

public void removeStatusListener(StatusListener listener)
Removes a status listener

Parameters:
listener - status listener

MDACC
Biostatistics

Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.