|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.dse.gui.Formatter
com.ibm.dse.gui.Converter
The Converter abstract class defines the default validation behavior.
Field Summary | |
---|---|
protected java.beans.PropertyChangeSupport |
propertyChange
|
Constructor Summary | |
---|---|
Converter()
This constructor creates a Converter object. |
|
Converter(java.lang.String Error)
This constructor creates a Converter object. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Generated to support the propertyChange field. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Generated to support the propertyChange field. |
java.lang.String |
getErrorMessage()
Returns the errorMessage property (java.lang.String) value. |
boolean |
getIsConvertible()
Returns the isConvertible property (boolean) value. |
boolean |
getIsNull()
Returns the isNull property (boolean) value. |
protected java.beans.PropertyChangeSupport |
getPropertyChange()
Accessor for the propertyChange field. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Generated to support the propertyChange field. |
void |
setErrorMessage(java.lang.String errorMessage)
Sets the errorMessage property (java.lang.String) value. |
void |
setIsConvertible(boolean isConvertible)
Sets the isConvertible property (boolean) value. |
void |
setIsNull(boolean isNull)
Sets the isNull property (boolean) value. |
boolean |
validate(java.lang.String userInput)
Returns a boolean that indicates if the validation has been achieved successfully or not. |
boolean |
validateKey(java.lang.String userInput,
java.awt.event.KeyEvent keyEvent)
Returns a boolean that indicates if the validation has been achieved successfully or not for this new key. |
java.lang.String |
validateWithError(java.lang.String userInput)
Returns a String that indicates if the validation has been achieved successfully or not. |
Methods inherited from class com.ibm.dse.gui.Formatter |
---|
format, formatAsConversionType, formatFromConversionType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient java.beans.PropertyChangeSupport propertyChange
Constructor Detail |
public Converter()
public Converter(java.lang.String Error)
Error
- java.lang.String, the error messageMethod Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public java.lang.String getErrorMessage()
setErrorMessage(java.lang.String)
public boolean getIsConvertible()
setIsConvertible(boolean)
public boolean getIsNull()
setIsNull(boolean)
protected java.beans.PropertyChangeSupport getPropertyChange()
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void setErrorMessage(java.lang.String errorMessage)
errorMessage
- String, the new value for the errorMessage property.getErrorMessage()
public void setIsConvertible(boolean isConvertible)
isConvertible
- boolean, the new value for the isConvertible property.getIsConvertible()
public void setIsNull(boolean isNull)
isNull
- boolean, the new value for the isNull property.getIsNull()
public boolean validate(java.lang.String userInput)
userInput
- java.lang.String - the string to be validated
public boolean validateKey(java.lang.String userInput, java.awt.event.KeyEvent keyEvent)
userInput
- java.lang.String - the string writed.keyEvent
- java.awt.event.KeyEvent - new key.
public java.lang.String validateWithError(java.lang.String userInput)
userInput
- java.lang.String - the string to be validated
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |