|
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.DataAttributes
public class DataAttributes
DataAttributes implements Attributes. It is a container for the attributes of a field, such as JFormattedTextField, JFormattedLabel and JFormattedComboBox. It holds information on autoAdvance, data type, length of data, size of decimal places, symbol for decimal point, color of reverse image and errorBeep.
Attributes
,
FieldModel
,
AS400FieldModel
,
DefaultFieldModel
,
Serialized FormField Summary | |
---|---|
static String |
Copyright
|
static int |
DATATYPE_CHARACTER
Data type is Character |
static int |
DATATYPE_NUMERIC
Data type is Numeric |
static char |
MINUS_SIGN
Minus Sign for negative number |
static char |
PLUS_SIGN
Plus Sign for positive number |
protected PropertyChangeSupport |
propertyChange
|
protected VetoableChangeSupport |
vetoPropertyChange
|
Fields inherited from interface com.ibm.etools.iseries.ui.Attributes |
---|
copyright |
Constructor Summary | |
---|---|
DataAttributes()
Constructs a new DataAttributes. |
|
DataAttributes(boolean autoAdvance,
int dataType,
int dataLength,
int decimalPlaces,
char decimalSymbol,
Color reverseImageColor)
Constructs a new DataAttributes with the specified autoAdvance, dataType, dataLength, decimalPlaces, decimalSymbol and reverseImageColor. |
|
DataAttributes(boolean autoAdvance,
int dataType,
int dataLength,
int decimalPlaces,
char decimalSymbol,
Color reverseImageColor,
boolean errorBeep)
Constructs a new DataAttributes with the specified autoAdvance, dataType, dataLength, decimalPlaces, decimalSymbol, reverseImageColor and errorBeep. |
|
DataAttributes(int dataType,
int dataLength)
Constructs a new DataAttributes with the specified dataType, dataLength, decimalPlaces and decimalSymbol. |
|
DataAttributes(int dataType,
int dataLength,
int decimalPlaces,
char decimalSymbol)
Constructs a new DataAttributes with the specified dataType, dataLength, decimalPlaces and decimalSymbol. |
|
DataAttributes(int dataType,
int dataLength,
int decimalPlaces,
char decimalSymbol,
Color reverseImageColor)
Constructs a new DataAttributes with the specified dataType, dataLength, decimalPlaces, decimalSymbol and reverseImageColor. |
Method Summary | |
---|---|
void |
addDataAttributesChangeListener(DataAttributesChangeListener l)
Add a DataAttributesChangeListener |
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
addVetoableChangeListener(VetoableChangeListener l)
Add a vetoableChangeListener. |
static String |
Copyright()
This method returns the copyright notice for this class. |
void |
fireDataAttributesChangeEvent(DataAttributesChangeEvent evt)
Report that the properties of DataAttributes are changed to any registered listeners. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
The firePropertyChange method was generated to support the propertyChange field. |
void |
fireVetoableChange(String propertyName,
Object oldValue,
Object newValue)
The fireVetoableChange method was generated to support the vetoPropertyChange field. |
boolean |
getAutoAdvance()
Gets the autoAdvance property (boolean) value. |
int |
getDataLength()
Gets the dataLength property (int) value. |
int |
getDataType()
Gets the dataType property (int) value. |
int |
getDecimalPlaces()
Gets the decimalPlaces property (int) value. |
char |
getDecimalSymbol()
Gets the decimalSymbol property (char) value. |
boolean |
getErrorBeep()
Gets the errorBeep property (boolean) value. |
protected PropertyChangeSupport |
getPropertyChange()
Accessor for the propertyChange field. |
Color |
getReverseImageColor()
Gets the reverseImageColor property (java.awt.Color) value. |
protected VetoableChangeSupport |
getVetoPropertyChange()
Accessor for the vetoPropertyChange field. |
void |
propertyChange(PropertyChangeEvent e)
Examine the PropertyChangeEvent and decides what to do on a particular event. |
void |
removeDataAttributesChangeListener(DataAttributesChangeListener l)
Removes a DataAttributesChangeListener. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a propertyChangeListener. |
void |
removeVetoableChangeListener(VetoableChangeListener l)
Removes a vetoableChangeListener. |
void |
setAutoAdvance(boolean value)
Sets the autoAdvance property (boolean) value. |
void |
setDataLength(int len)
Sets the dataLength property (int) value. |
void |
setDataType(int type)
Sets the dataType property (int) value. |
void |
setDecimalPlaces(int decPlaces)
Sets the decimalPlaces property (int) value. |
void |
setDecimalSymbol(char dec)
Sets the decimalSymbol property (char) value. |
void |
setErrorBeep(boolean value)
Sets the errorBeep property (boolean) value. |
void |
setReverseImageColor(Color c)
Sets the reverseImageColor property (java.awt.Color) value. |
void |
vetoableChange(PropertyChangeEvent e)
This method gets called when a constrained property is changed. |
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
public static final int DATATYPE_CHARACTER
public static final int DATATYPE_NUMERIC
public static final char MINUS_SIGN
public static final char PLUS_SIGN
protected transient PropertyChangeSupport propertyChange
protected transient VetoableChangeSupport vetoPropertyChange
Constructor Detail |
---|
public DataAttributes()
public DataAttributes(int dataType, int dataLength)
dataType
- intdataLength
- intpublic DataAttributes(int dataType, int dataLength, int decimalPlaces, char decimalSymbol)
dataType
- intdataLength
- intdecimalPlaces
- intdecimalSymbol
- charpublic DataAttributes(int dataType, int dataLength, int decimalPlaces, char decimalSymbol, Color reverseImageColor)
dataType
- intdataLength
- intdecimalPlaces
- intdecimalSymbol
- charreverseImageColor
- Colorpublic DataAttributes(boolean autoAdvance, int dataType, int dataLength, int decimalPlaces, char decimalSymbol, Color reverseImageColor)
autoAdvance
- booleandataType
- intdataLength
- intdecimalPlaces
- intdecimalSymbol
- charreverseImageColor
- Colorpublic DataAttributes(boolean autoAdvance, int dataType, int dataLength, int decimalPlaces, char decimalSymbol, Color reverseImageColor, boolean errorBeep)
autoAdvance
- booleandataType
- intdataLength
- intdecimalPlaces
- intdecimalSymbol
- charreverseImageColor
- java.awt.ColorerrorBeep
- booleanMethod Detail |
---|
public void addDataAttributesChangeListener(DataAttributesChangeListener l)
l
- com.ibm.etools.iseries.ui.DataAttributesChangeListenerpublic void addPropertyChangeListener(PropertyChangeListener l)
public void addVetoableChangeListener(VetoableChangeListener l)
l
- java.beans.VetoableChangeListenerpublic static String Copyright()
public void fireDataAttributesChangeEvent(DataAttributesChangeEvent evt)
evt
- com.ibm.etools.iseries.ui.DataAttributesChangeEventpublic void firePropertyChange(String propertyName, Object oldValue, Object newValue)
public void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException
PropertyVetoException
public boolean getAutoAdvance()
setAutoAdvance(boolean)
public int getDataLength()
setDataLength(int)
public int getDataType()
setDataType(int)
public int getDecimalPlaces()
setDecimalPlaces(int)
public char getDecimalSymbol()
setDecimalSymbol(char)
public boolean getErrorBeep()
setErrorBeep(boolean)
protected PropertyChangeSupport getPropertyChange()
public Color getReverseImageColor()
setReverseImageColor(java.awt.Color)
protected VetoableChangeSupport getVetoPropertyChange()
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
e
- java.beans.PropertyChangeEventpublic void removeDataAttributesChangeListener(DataAttributesChangeListener l)
l
- com.ibm.etools.iseries.ui.DataAttributesChangeListenerpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- PropertyChangeListenerpublic void removeVetoableChangeListener(VetoableChangeListener l)
l
- java.beans.VetoableChangeListenerpublic void setAutoAdvance(boolean value)
value
- The new value for the property.getAutoAdvance()
public void setDataLength(int len) throws PropertyVetoException
dataLength
- The new value for the property.
PropertyVetoException
getDataLength()
public void setDataType(int type) throws PropertyVetoException
dataType
- The new value for the property.
PropertyVetoException
getDataType()
public void setDecimalPlaces(int decPlaces) throws PropertyVetoException
decimalPlaces
- The new value for the property.
PropertyVetoException
getDecimalPlaces()
public void setDecimalSymbol(char dec)
decimalSymbol
- The new value for the property.getDecimalSymbol()
public void setErrorBeep(boolean value)
value
- The new value for the property.getErrorBeep()
public void setReverseImageColor(Color c)
reverseImageColor
- The new value for the property.getReverseImageColor()
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 |