|
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.Objectcom.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 Form| Field 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.Attributes
public DefaultFieldModel(Attributes dataAttributes,
Formatter f)
dataAttributes - com.ibm.etools.iseries.ui.Attributesf - com.ibm.etools.iseries.ui.Formatter
public 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.Validator
public 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.Document| Method 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 DataAttributesChangeListenerevt - com.ibm.etools.iseries.ui.DataAttributesChangeEventpublic Attributes getDataAttributes()
getDataAttributes in interface FieldModelgetDataAttributes in class AbstractFieldModelsetDataAttributes(com.ibm.etools.iseries.ui.Attributes)public Formatter getFormatter()
getFormatter in interface FieldModelgetFormatter in class AbstractFieldModelsetFormatter(com.ibm.etools.iseries.ui.Formatter)public Document getKeystrokeVerifier()
getKeystrokeVerifier in interface FieldModelgetKeystrokeVerifier in class AbstractFieldModelsetKeystrokeVerifier(javax.swing.text.Document)public Validator getValidator()
getValidator in interface FieldModelgetValidator in class AbstractFieldModelsetValidator(com.ibm.etools.iseries.ui.Validator)public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenere - java.beans.PropertyChangeEventpublic void removePropertyChangeListener(PropertyChangeListener l)
l - PropertyChangeListenerpublic void removeVetoableChangeListener(VetoableChangeListener l)
l - java.beans.VetoableChangeListener
public void setDataAttributes(Attributes a)
throws PropertyVetoException
setDataAttributes in interface FieldModelsetDataAttributes in class AbstractFieldModeldataAttributes - The new value for the property.
PropertyVetoExceptiongetDataAttributes()public void setFormatter(Formatter f)
setFormatter in interface FieldModelsetFormatter in class AbstractFieldModelf - The new value for the property.getFormatter()public void setKeystrokeVerifier(Document d)
setKeystrokeVerifier in interface FieldModelsetKeystrokeVerifier in class AbstractFieldModeld - The new value for the property.getKeystrokeVerifier()public void setValidator(Validator v)
setValidator in interface FieldModelsetValidator in class AbstractFieldModelv - The new value for the property.getValidator()
public void vetoableChange(PropertyChangeEvent e)
throws PropertyVetoException
vetoableChange in interface VetoableChangeListenere - 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 | |||||||||