Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.ui
Interface FieldModel

All Known Implementing Classes:
AbstractFieldModel, AS400FieldModel, DefaultFieldModel

public interface FieldModel

Interface for a field model. A field model holds information about a data field and makes use of the following classes:

com.ibm.etools.iseries.ui.DataAttributes
A class that defines the attributes of a field such as autoAdvance, data type, data length, size of decimal places, decimal point symbol, and reverse image color.
A formatter
An implementation of the Formatter interface. A class that defines how text is formatted.
A keystroke verifier
An implementation of the KeystrokeVerifier interface. It makes use of DataAttributes and EditmaskAttributes to define a data model.
A validator
An implementation of the Validator interface. A class that defines data validity checks.

See Also:
AbstractFieldModel, AS400FieldModel, DefaultFieldModel

Field Summary
static String copyright
           
 
Method Summary
 Attributes getDataAttributes()
          Returns the dataAttributes of a field.
 Formatter getFormatter()
          Return formatter
 Document getKeystrokeVerifier()
          Return keystrokeVerifier.
 Validator getValidator()
          Return validator.
 void setDataAttributes(Attributes dataAttributes)
          Replace dataAttributes.
 void setFormatter(Formatter f)
          Replace formatter with f.
 void setKeystrokeVerifier(Document d)
          Replace keystrokeVerifier.
 void setValidator(Validator v)
          Replace validator.
 

Field Detail

copyright

static final String copyright
See Also:
Constant Field Values
Method Detail

getDataAttributes

Attributes getDataAttributes()
Returns the dataAttributes of a field.

Returns:
com.ibm.etools.iseries.ui.Attributes

getFormatter

Formatter getFormatter()
Return formatter

Returns:
Formatter

getKeystrokeVerifier

Document getKeystrokeVerifier()
Return keystrokeVerifier.

Returns:
javax.swing.text.Document

getValidator

Validator getValidator()
Return validator.

Returns:
com.ibm.etools.iseries.ui.Validator

setDataAttributes

void setDataAttributes(Attributes dataAttributes)
                       throws PropertyVetoException
Replace dataAttributes.

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

setFormatter

void setFormatter(Formatter f)
Replace formatter with f.

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

setKeystrokeVerifier

void setKeystrokeVerifier(Document d)
Replace keystrokeVerifier.

Parameters:
d - javax.swing.text.Document

setValidator

void setValidator(Validator v)
Replace validator.

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.