Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.ui
Class AbstractValidator

java.lang.Object
  extended by com.ibm.etools.iseries.ui.AbstractValidator
All Implemented Interfaces:
Validator
Direct Known Subclasses:
ComparisonRangeValidator, DefaultValidator

public abstract class AbstractValidator
extends Object
implements Validator

An implementation of Validator interface to serve as a basis for implementing various validators used by JFormattedComponent, such as JFormattedTextField, JFormattedLabel, JFormattedTableColumn, and JFormattedComboBox.

See Also:
ComparisonRangeValidator, DefaultValidator, Validator

Field Summary
static String Copyright
           
protected  VetoableChangeSupport vetoPropertyChange
           
 
Fields inherited from interface com.ibm.etools.iseries.ui.Validator
copyright
 
Constructor Summary
AbstractValidator()
          Constructs a new AbstractValidator
AbstractValidator(Attributes dataAttributes)
          Constructs a new AbstractValidator with the specified DataAttributes.
 
Method Summary
 void addVetoableChangeListener(VetoableChangeListener listener)
          The addVetoableChangeListener method was generated to support the vetoPropertyChange field.
static String Copyright()
          This method returns the copyright notice for this class.
 void fireVetoableChange(String propertyName, Object oldValue, Object newValue)
          The fireVetoableChange method was generated to support the vetoPropertyChange field.
abstract  Attributes getDataAttributes()
          Returns DataAttributes.
protected  VetoableChangeSupport getVetoPropertyChange()
          Accessor for the vetoPropertyChange field.
abstract  boolean isDataValid(String text)
          Determine if text is valid and returns true or false.
 void removeVetoableChangeListener(VetoableChangeListener listener)
          The removeVetoableChangeListener method was generated to support the vetoPropertyChange field.
abstract  void setDataAttributes(Attributes dataAttributes)
          Replace DataAttributes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

vetoPropertyChange

protected transient VetoableChangeSupport vetoPropertyChange
Constructor Detail

AbstractValidator

public AbstractValidator()
Constructs a new AbstractValidator


AbstractValidator

public AbstractValidator(Attributes dataAttributes)
Constructs a new AbstractValidator with the specified DataAttributes.

Parameters:
dataAttributes - com.ibm.etools.iseries.ui.Attributes
Method Detail

addVetoableChangeListener

public void addVetoableChangeListener(VetoableChangeListener listener)
The addVetoableChangeListener method was generated to support the vetoPropertyChange field.


Copyright

public static String Copyright()
This method returns the copyright notice for this class.

Returns:
java.lang.String

fireVetoableChange

public void fireVetoableChange(String propertyName,
                               Object oldValue,
                               Object newValue)
                        throws PropertyVetoException
The fireVetoableChange method was generated to support the vetoPropertyChange field.

Throws:
PropertyVetoException

getDataAttributes

public abstract Attributes getDataAttributes()
Returns DataAttributes.

Specified by:
getDataAttributes in interface Validator
Returns:
com.ibm.etools.iseries.ui.Attributes

getVetoPropertyChange

protected VetoableChangeSupport getVetoPropertyChange()
Accessor for the vetoPropertyChange field.


isDataValid

public abstract boolean isDataValid(String text)
Determine if text is valid and returns true or false.

Specified by:
isDataValid in interface Validator
Parameters:
text - String
Returns:
true or false

removeVetoableChangeListener

public void removeVetoableChangeListener(VetoableChangeListener listener)
The removeVetoableChangeListener method was generated to support the vetoPropertyChange field.


setDataAttributes

public abstract void setDataAttributes(Attributes dataAttributes)
                                throws PropertyVetoException
Replace DataAttributes.

Specified by:
setDataAttributes in interface Validator
Parameters:
dataAttributes - com.ibm.etools.iseries.ui.Attributes
Throws:
PropertyVetoException

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.