Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.ui
Class AbstractFieldModel

java.lang.Object
  extended by com.ibm.etools.iseries.ui.AbstractFieldModel
All Implemented Interfaces:
FieldModel
Direct Known Subclasses:
AS400FieldModel, DefaultFieldModel

public abstract class AbstractFieldModel
extends Object
implements FieldModel

An implementation of FieldModel to serve as a basis for implementing various kinds of field models.

See Also:
FieldModel, AS400FieldModel, DefaultFieldModel

Field Summary
static String Copyright
           
 
Fields inherited from interface com.ibm.etools.iseries.ui.FieldModel
copyright
 
Constructor Summary
AbstractFieldModel()
          Constructs a new AbstractFieldModel.
AbstractFieldModel(Attributes dataAttributes)
          Constructs a new AbstractFieldModel with the specified DataAttributes.
AbstractFieldModel(Attributes dataAttributes, Formatter f)
          Constructs a new AbstractFieldModel with the specified DataAttributes and Formatter.
AbstractFieldModel(Attributes dataAttributes, Formatter f, Validator v)
          Constructs a new AbstractFieldModel with the specified DataAttributes, Formatter and Validator.
AbstractFieldModel(Attributes dataAttributes, Formatter f, Validator v, Document d)
          Constructs a new AbstractFieldModel with the specified DataAttributes, Formatter, Validator and KeystrokeValidator.
 
Method Summary
static String Copyright()
          This method returns the copyright notice for this class.
abstract  Attributes getDataAttributes()
          Returns DataAttributes of a field model.
abstract  Formatter getFormatter()
          Returns Formatter of a field model.
abstract  Document getKeystrokeVerifier()
          Returns Document model of a field model.
abstract  Validator getValidator()
          Returns Validator of a field model.
abstract  void setDataAttributes(Attributes dataAttributes)
          Replace the DataAttributes of this field model.
abstract  void setFormatter(Formatter f)
          Replace the Formatter of this field model.
abstract  void setKeystrokeVerifier(Document d)
          Replace the Document of this field model.
abstract  void setValidator(Validator v)
          Replace the Validator of this field model.
 
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

AbstractFieldModel

public AbstractFieldModel()
Constructs a new AbstractFieldModel.


AbstractFieldModel

public AbstractFieldModel(Attributes dataAttributes)
Constructs a new AbstractFieldModel with the specified DataAttributes.

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

AbstractFieldModel

public AbstractFieldModel(Attributes dataAttributes,
                          Formatter f)
Constructs a new AbstractFieldModel with the specified DataAttributes and Formatter.

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

AbstractFieldModel

public AbstractFieldModel(Attributes dataAttributes,
                          Formatter f,
                          Validator v)
Constructs a new AbstractFieldModel with the specified DataAttributes, Formatter and Validator.

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

AbstractFieldModel

public AbstractFieldModel(Attributes dataAttributes,
                          Formatter f,
                          Validator v,
                          Document d)
Constructs a new AbstractFieldModel with the specified DataAttributes, Formatter, Validator and KeystrokeValidator.

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

Copyright

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

Returns:
java.lang.String

getDataAttributes

public abstract Attributes getDataAttributes()
Returns DataAttributes of a field model.

Specified by:
getDataAttributes in interface FieldModel
Returns:
com.ibm.etools.iseries.ui.Attributes

getFormatter

public abstract Formatter getFormatter()
Returns Formatter of a field model.

Specified by:
getFormatter in interface FieldModel
Returns:
Formatter

getKeystrokeVerifier

public abstract Document getKeystrokeVerifier()
Returns Document model of a field model.

Specified by:
getKeystrokeVerifier in interface FieldModel
Returns:
javax.swing.text.Document

getValidator

public abstract Validator getValidator()
Returns Validator of a field model.

Specified by:
getValidator in interface FieldModel
Returns:
com.ibm.etools.iseries.ui.Validator

setDataAttributes

public abstract void setDataAttributes(Attributes dataAttributes)
                                throws PropertyVetoException
Replace the DataAttributes of this field model.

Specified by:
setDataAttributes in interface FieldModel
Parameters:
dataAttributes - com.ibm.etools.iseries.ui.Attributes
Throws:
PropertyVetoException

setFormatter

public abstract void setFormatter(Formatter f)
Replace the Formatter of this field model.

Specified by:
setFormatter in interface FieldModel
Parameters:
f - com.ibm.etools.iseries.ui.Formatter

setKeystrokeVerifier

public abstract void setKeystrokeVerifier(Document d)
Replace the Document of this field model.

Specified by:
setKeystrokeVerifier in interface FieldModel
Parameters:
d - javax.swing.text.Document

setValidator

public abstract void setValidator(Validator v)
Replace the Validator of this field model.

Specified by:
setValidator in interface FieldModel
Parameters:
v - com.ibm.etools.iseries.ui.Validator

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.