|
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.AbstractFieldModel com.ibm.etools.iseries.ui.DefaultFieldModel
public class DefaultFieldModel
DefaultFieldModel sets the default field model properties without setting any AS/400 specific default properties, which would be set if you were using the AS400FieldModel.This field model sets the following default properties:
Note: | Although the dataAttributes default to a length of 10 with a character data type, since the keystrokeVerifier is set to javax.swing.text.PlainDocument, which is the default document model set in JTextField, there is no keystroke validation. However a JFormattedComponent itself, such as a JFormattedTextField, JFormattedComboBox and JFormattedLabel, will verify the data type, the length, and decimal places of the field even when DefaultFieldModel is used. |
FieldModel
,
AbstractFieldModel
,
AS400FieldModel
,
Serialized FormField Summary | |
---|---|
static String |
Copyright
|
protected PropertyChangeSupport |
propertyChange
|
protected VetoableChangeSupport |
vetoPropertyChange
|
Fields inherited from interface com.ibm.etools.iseries.ui.DataAttributesChangeListener |
---|
copyright |
Fields inherited from interface com.ibm.etools.iseries.ui.FieldModel |
---|
copyright |
Constructor Summary | |
---|---|
DefaultFieldModel()
Constructs a new AS400FieldModel. |
|
DefaultFieldModel(Attributes dataAttributes)
Constructs a new AS400FieldModel with the specified DataAttributes. |
|
DefaultFieldModel(Attributes dataAttributes,
Formatter f)
Constructs a new AS400FieldModel with the specified DataAttributes and Formatter. |
|
DefaultFieldModel(Attributes dataAttributes,
Formatter f,
Validator v)
Constructs a new AS400FieldModel with the specified DataAttributes, Formatter and Validator. |
|
DefaultFieldModel(Attributes dataAttributes,
Formatter f,
Validator v,
Document d)
Constructs a new AS400FieldModel with the specified DataAttributes, Formatter, Validator and Document. |
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. |
void |
dataAttributesChanged(DataAttributesChangeEvent evt)
Whenever a bound property of DataAttributes changes, a DataAttributesChangeEvent is fired and this method will be called by the DataAttributesChangeListener. |
Attributes |
getDataAttributes()
Gets the dataAttributes property (com.ibm.etools.iseries.ui.Attributes) value. |
Formatter |
getFormatter()
Gets the formatter property (com.ibm.etools.iseries.ui.Formatter) value. |
Document |
getKeystrokeVerifier()
Gets the keystrokeVerifier property (javax.swing.text.Document) value. |
Validator |
getValidator()
Gets the validator property (com.ibm.etools.iseries.ui.Validator) value. |
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 |
setFormatter(Formatter f)
Sets the formatter property (com.ibm.etools.iseries.ui.Formatter) value. |
void |
setKeystrokeVerifier(Document d)
Sets the keystrokeVerifier property (javax.swing.text.Document) value. |
void |
setValidator(Validator v)
Sets the validator property (com.ibm.etools.iseries.ui.Validator) 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
protected transient PropertyChangeSupport propertyChange
protected transient VetoableChangeSupport vetoPropertyChange
Constructor Detail |
---|
public DefaultFieldModel()
public DefaultFieldModel(Attributes dataAttributes)
dataAttributes
- com.ibm.etools.iseries.ui.Attributespublic DefaultFieldModel(Attributes dataAttributes, Formatter f)
dataAttributes
- com.ibm.etools.iseries.ui.Attributesf
- com.ibm.etools.iseries.ui.Formatterpublic DefaultFieldModel(Attributes dataAttributes, Formatter f, Validator v)
dataAttributes
- com.ibm.etools.iseries.ui.Attributesf
- com.ibm.etools.iseries.ui.Formatterv
- com.ibm.etools.iseries.ui.Validatorpublic DefaultFieldModel(Attributes dataAttributes, Formatter f, Validator v, Document d)
dataAttributes
- com.ibm.etools.iseries.ui.Attributesf
- com.ibm.etools.iseries.ui.Formatterv
- com.ibm.etools.iseries.ui.Validatord
- javax.swing.text.DocumentMethod Detail |
---|
public void addPropertyChangeListener(PropertyChangeListener l)
public void addVetoableChangeListener(VetoableChangeListener l)
l
- java.beans.VetoableChangeListenerpublic static String Copyright()
public void dataAttributesChanged(DataAttributesChangeEvent evt)
dataAttributesChanged
in interface DataAttributesChangeListener
evt
- com.ibm.etools.iseries.ui.DataAttributesChangeEventpublic Attributes getDataAttributes()
getDataAttributes
in interface FieldModel
getDataAttributes
in class AbstractFieldModel
setDataAttributes(com.ibm.etools.iseries.ui.Attributes)
public Formatter getFormatter()
getFormatter
in interface FieldModel
getFormatter
in class AbstractFieldModel
setFormatter(com.ibm.etools.iseries.ui.Formatter)
public Document getKeystrokeVerifier()
getKeystrokeVerifier
in interface FieldModel
getKeystrokeVerifier
in class AbstractFieldModel
setKeystrokeVerifier(javax.swing.text.Document)
public Validator getValidator()
getValidator
in interface FieldModel
getValidator
in class AbstractFieldModel
setValidator(com.ibm.etools.iseries.ui.Validator)
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
e
- java.beans.PropertyChangeEventpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- PropertyChangeListenerpublic void removeVetoableChangeListener(VetoableChangeListener l)
l
- java.beans.VetoableChangeListenerpublic void setDataAttributes(Attributes a) throws PropertyVetoException
setDataAttributes
in interface FieldModel
setDataAttributes
in class AbstractFieldModel
dataAttributes
- The new value for the property.
PropertyVetoException
getDataAttributes()
public void setFormatter(Formatter f)
setFormatter
in interface FieldModel
setFormatter
in class AbstractFieldModel
f
- The new value for the property.getFormatter()
public void setKeystrokeVerifier(Document d)
setKeystrokeVerifier
in interface FieldModel
setKeystrokeVerifier
in class AbstractFieldModel
d
- The new value for the property.getKeystrokeVerifier()
public void setValidator(Validator v)
setValidator
in interface FieldModel
setValidator
in class AbstractFieldModel
v
- The new value for the property.getValidator()
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 |