Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.ui
Class AS400FieldModel

java.lang.Object
  extended by com.ibm.etools.iseries.ui.AbstractFieldModel
      extended by com.ibm.etools.iseries.ui.AS400FieldModel
All Implemented Interfaces:
DataAttributesChangeListener, FieldModel, PropertyChangeListener, VetoableChangeListener, Serializable, EventListener

public class AS400FieldModel
extends AbstractFieldModel
implements PropertyChangeListener, VetoableChangeListener, DataAttributesChangeListener, Serializable

AS400FieldModel is a field model particularly for AS/400 users. This field model sets the following default properties:

dataAttributes
Instance of DataAttributes with:
formatter
Instance of EditcodeEditwordFormatter with:
keystroke verifier
Instance of NumericCharacterDocument with:
validator
Instance of ComparisonRangeValidator with:

See Also:
FieldModel, AbstractFieldModel, DefaultFieldModel, Serialized Form

Field Summary
static String Copyright
           
 
Fields inherited from interface com.ibm.etools.iseries.ui.DataAttributesChangeListener
copyright
 
Fields inherited from interface com.ibm.etools.iseries.ui.FieldModel
copyright
 
Constructor Summary
AS400FieldModel()
          Constructs a new AS400FieldModel.
AS400FieldModel(Attributes dataAttributes)
          Constructs a new AS400FieldModel with the specified DataAttributes.
AS400FieldModel(Attributes dataAttributes, Formatter f)
          Constructs a new AS400FieldModel with the specified DataAttributes and Formatter.
AS400FieldModel(Attributes dataAttributes, Formatter f, Validator v)
          Constructs a new AS400FieldModel with the specified DataAttributes, Formatter and Validator.
AS400FieldModel(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)
          Add a propertyChangeListener.
 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

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

AS400FieldModel

public AS400FieldModel()
Constructs a new AS400FieldModel.


AS400FieldModel

public AS400FieldModel(Attributes dataAttributes)
Constructs a new AS400FieldModel with the specified DataAttributes. Please note that the parameter must be an instance of com.ibm.etools.iseries.ui.DataAttributes; otherwise java.beans.PropertyVetoException will be thrown at run time.

Parameters:
dataAttributes - com.ibm.etools.iseries.ui.Attributes

AS400FieldModel

public AS400FieldModel(Attributes dataAttributes,
                       Formatter f)
Constructs a new AS400FieldModel with the specified DataAttributes and Formatter. Please note that the first parameter must be an instance of com.ibm.etools.iseries.ui.DataAttributes; otherwise java.beans.PropertyVetoException will be thrown at run time.

Parameters:
dataAttributes - com.ibm.etools.iseries.ui.Attributes
f - com.ibm.etools.iseries.ui.Formatter

AS400FieldModel

public AS400FieldModel(Attributes dataAttributes,
                       Formatter f,
                       Validator v)
Constructs a new AS400FieldModel with the specified DataAttributes, Formatter and Validator. Please note that the first parameter must be an instance of com.ibm.etools.iseries.ui.DataAttributes; otherwise java.beans.PropertyVetoException will be thrown at run time.

Parameters:
dataAttributes - com.ibm.etools.iseries.ui.Attributes
f - com.ibm.etools.iseries.ui.Formatter
v - com.ibm.etools.iseries.ui.Validator

AS400FieldModel

public AS400FieldModel(Attributes dataAttributes,
                       Formatter f,
                       Validator v,
                       Document d)
Constructs a new AS400FieldModel with the specified DataAttributes, Formatter, Validator and Document. Please note that the first parameter must be an instance of com.ibm.etools.iseries.ui.DataAttributes; otherwise java.beans.PropertyVetoException will be thrown at run time.

Parameters:
dataAttributes - com.ibm.etools.iseries.ui.Attributes
f - com.ibm.etools.iseries.ui.Formatter
v - com.ibm.etools.iseries.ui.Validator
d - javax.swing.text.Document
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)
Add a propertyChangeListener.

Parameters:
l - PropertyChangeListener

addVetoableChangeListener

public void addVetoableChangeListener(VetoableChangeListener l)
Add a vetoableChangeListener.

Parameters:
l - java.beans.VetoableChangeListener

Copyright

public static String Copyright()
This method returns the copyright notice for this class.

Returns:
java.lang.String

dataAttributesChanged

public void dataAttributesChanged(DataAttributesChangeEvent evt)
Whenever a bound property of DataAttributes changes, a DataAttributesChangeEvent is fired and this method will be called by the DataAttributesChangeListener.

Specified by:
dataAttributesChanged in interface DataAttributesChangeListener
Parameters:
evt - com.ibm.etools.iseries.ui.DataAttributesChangeEvent

getDataAttributes

public Attributes getDataAttributes()
Gets the dataAttributes property (com.ibm.etools.iseries.ui.Attributes) value.

Specified by:
getDataAttributes in interface FieldModel
Specified by:
getDataAttributes in class AbstractFieldModel
Returns:
The dataAttributes property value.
See Also:
setDataAttributes(com.ibm.etools.iseries.ui.Attributes)

getFormatter

public Formatter getFormatter()
Gets the formatter property (com.ibm.etools.iseries.ui.Formatter) value.

Specified by:
getFormatter in interface FieldModel
Specified by:
getFormatter in class AbstractFieldModel
Returns:
The formatter property value.
See Also:
setFormatter(com.ibm.etools.iseries.ui.Formatter)

getKeystrokeVerifier

public Document getKeystrokeVerifier()
Gets the keystrokeVerifier property (javax.swing.text.Document) value.

Specified by:
getKeystrokeVerifier in interface FieldModel
Specified by:
getKeystrokeVerifier in class AbstractFieldModel
Returns:
The keystrokeVerifier property value.
See Also:
setKeystrokeVerifier(javax.swing.text.Document)

getValidator

public Validator getValidator()
Gets the validator property (com.ibm.etools.iseries.ui.Validator) value.

Specified by:
getValidator in interface FieldModel
Specified by:
getValidator in class AbstractFieldModel
Returns:
The validator property value.
See Also:
setValidator(com.ibm.etools.iseries.ui.Validator)

propertyChange

public void propertyChange(PropertyChangeEvent e)
Examine the PropertyChangeEvent and decides what to do on a particular event.

Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
e - PropertyChangeEvent

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Removes a propertyChangeListener.

Parameters:
l - PropertyChangeListener

removeVetoableChangeListener

public void removeVetoableChangeListener(VetoableChangeListener l)
Removes a vetoableChangeListener.

Parameters:
l - java.beans.VetoableChangeListener

setDataAttributes

public void setDataAttributes(Attributes a)
                       throws PropertyVetoException
Sets the dataAttributes property (com.ibm.etools.iseries.ui.Attributes) value. Please note that the first parameter must be an instance of com.ibm.etools.iseries.ui.DataAttributes; otherwise java.beans.PropertyVetoException will be thrown at run time.

Specified by:
setDataAttributes in interface FieldModel
Specified by:
setDataAttributes in class AbstractFieldModel
Parameters:
dataAttributes - The new value for the property.
Throws:
PropertyVetoException
See Also:
getDataAttributes()

setFormatter

public void setFormatter(Formatter f)
Sets the formatter property (com.ibm.etools.iseries.ui.Formatter) value.

Specified by:
setFormatter in interface FieldModel
Specified by:
setFormatter in class AbstractFieldModel
Parameters:
f - The new value for the property.
See Also:
getFormatter()

setKeystrokeVerifier

public void setKeystrokeVerifier(Document d)
Sets the keystrokeVerifier property (javax.swing.text.Document) value.

Specified by:
setKeystrokeVerifier in interface FieldModel
Specified by:
setKeystrokeVerifier in class AbstractFieldModel
Parameters:
d - The new value for the property.
See Also:
getKeystrokeVerifier()

setValidator

public void setValidator(Validator v)
Sets the validator property (com.ibm.etools.iseries.ui.Validator) value.

Specified by:
setValidator in interface FieldModel
Specified by:
setValidator in class AbstractFieldModel
Parameters:
v - The new value for the property.
See Also:
getValidator()

vetoableChange

public void vetoableChange(PropertyChangeEvent e)
                    throws PropertyVetoException
This method gets called when a constrained property is changed.

Specified by:
vetoableChange in interface VetoableChangeListener
Parameters:
e - java.beans.PropertyChangeEvent a PropertyChangeEvent object describing the event source and the property that has changed.
Throws:
PropertyVetoException - if the recipient wishes the property change to be rolled back.

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.