|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.ui.AbstractValidator com.ibm.etools.iseries.ui.DefaultValidator
public class DefaultValidator
DefaultValidator extends AbstractValidator. This validator does nothing. It always returns true for the method isDataValid. If you do not want any validation to be performed for JFormattedTextField, JFormattedLabel or JFormattedComboBox, then set this DefaultValidator in the field model. However, a JFormattedComponent itself will verify the data type, data length, and decimal places of the field.
ComparisonRangeValidator
,
AbstractValidator
,
Validator
,
Serialized FormField Summary | |
---|---|
static String |
Copyright
|
protected Attributes |
dataAttributes
|
protected PropertyChangeSupport |
propertyChange
|
protected VetoableChangeSupport |
vetoPropertyChange
|
Fields inherited from interface com.ibm.etools.iseries.ui.Validator |
---|
copyright |
Constructor Summary | |
---|---|
DefaultValidator()
Constructs a new DefaultValidator. |
|
DefaultValidator(Attributes dataAttributes)
Constructs a new DefaultValidator with the specified DataAttributes. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
addVetoableChangeListener(VetoableChangeListener l)
Add a vetoableChangeListener. |
static String |
Copyright()
This method returns the copyright notice for this class. |
Attributes |
getDataAttributes()
Gets the dataAttributes property (com.ibm.etools.iseries.ui.Attributes) value. |
boolean |
isDataValid(String text)
Always return true. |
void |
propertyChange(PropertyChangeEvent e)
Examine the PropertyChangeEvent and decides what to do on a particular event. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a propertyChangeListener. |
void |
removeVetoableChangeListener(VetoableChangeListener l)
Removes a vetoableChangeListener. |
void |
setDataAttributes(Attributes a)
Sets the dataAttributes property (com.ibm.etools.iseries.ui.Attributes) value. |
void |
vetoableChange(PropertyChangeEvent e)
This method gets called when a constrained property is changed. |
Methods inherited from class com.ibm.etools.iseries.ui.AbstractValidator |
---|
fireVetoableChange, getVetoPropertyChange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
protected Attributes dataAttributes
protected transient PropertyChangeSupport propertyChange
protected transient VetoableChangeSupport vetoPropertyChange
Constructor Detail |
---|
public DefaultValidator()
public DefaultValidator(Attributes dataAttributes)
dataAttributes
- com.ibm.etools.iseries.ui.AttributesMethod Detail |
---|
public void addPropertyChangeListener(PropertyChangeListener l)
public void addVetoableChangeListener(VetoableChangeListener l)
addVetoableChangeListener
in class AbstractValidator
l
- java.beans.VetoableChangeListenerpublic static String Copyright()
public Attributes getDataAttributes()
getDataAttributes
in interface Validator
getDataAttributes
in class AbstractValidator
setDataAttributes(com.ibm.etools.iseries.ui.Attributes)
public boolean isDataValid(String text)
isDataValid
in interface Validator
isDataValid
in class AbstractValidator
text
- String
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
e
- java.beans.PropertyChangeEventpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- PropertyChangeListenerpublic void removeVetoableChangeListener(VetoableChangeListener l)
removeVetoableChangeListener
in class AbstractValidator
l
- java.beans.VetoableChangeListenerpublic void setDataAttributes(Attributes a) throws PropertyVetoException
setDataAttributes
in interface Validator
setDataAttributes
in class AbstractValidator
dataAttributes
- The new value for the property.
PropertyVetoException
getDataAttributes()
public void vetoableChange(PropertyChangeEvent e) throws PropertyVetoException
vetoableChange
in interface VetoableChangeListener
e
- java.beans.PropertyChangeEvent a PropertyChangeEvent object describing the event source and the property that has changed.
PropertyVetoException
- if the recipient wishes the property change to be rolled back.
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |