Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.ui
Class AbstractFormatter

java.lang.Object
  extended by com.ibm.etools.iseries.ui.AbstractFormatter
All Implemented Interfaces:
Formatter
Direct Known Subclasses:
DefaultFormatter, EditcodeEditwordFormatter

public abstract class AbstractFormatter
extends Object
implements Formatter

An implementation of Formatter interface to serve as a basis for implementing various formatters used by JFormattedComponent, such as JFormattedTextField, JFormattedLabel, JFormattedTableColumn, and JFormattedComboBox.

See Also:
EditcodeEditwordFormatter, DefaultFormatter, Formatter

Field Summary
static String Copyright
           
protected  VetoableChangeSupport vetoPropertyChange
           
 
Fields inherited from interface com.ibm.etools.iseries.ui.Formatter
copyright
 
Constructor Summary
AbstractFormatter()
          Constructs a new AbstractFormatter
AbstractFormatter(Attributes dataAttributes)
          Constructs a new AbstractFormatter with the specified DataAttributes.
 
Method Summary
 void addVetoableChangeListener(VetoableChangeListener listener)
          The addVetoableChangeListener method was generated to support the vetoPropertyChange field.
static String Copyright()
          This method returns the copyright notice for this class.
 void fireVetoableChange(String propertyName, Object oldValue, Object newValue)
          The fireVetoableChange method was generated to support the vetoPropertyChange field.
abstract  String formatString(String text)
          Does the formatting for text and returns the formatted text.
abstract  Attributes getDataAttributes()
          Returns DataAttributes.
protected  VetoableChangeSupport getVetoPropertyChange()
          Accessor for the vetoPropertyChange field.
 void removeVetoableChangeListener(VetoableChangeListener listener)
          The removeVetoableChangeListener method was generated to support the vetoPropertyChange field.
abstract  void setDataAttributes(Attributes dataAttributes)
          Replace DataAttributes.
 
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

vetoPropertyChange

protected transient VetoableChangeSupport vetoPropertyChange
Constructor Detail

AbstractFormatter

public AbstractFormatter()
Constructs a new AbstractFormatter


AbstractFormatter

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

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

addVetoableChangeListener

public void addVetoableChangeListener(VetoableChangeListener listener)
The addVetoableChangeListener method was generated to support the vetoPropertyChange field.


Copyright

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

Returns:
java.lang.String

fireVetoableChange

public void fireVetoableChange(String propertyName,
                               Object oldValue,
                               Object newValue)
                        throws PropertyVetoException
The fireVetoableChange method was generated to support the vetoPropertyChange field.

Throws:
PropertyVetoException

formatString

public abstract String formatString(String text)
Does the formatting for text and returns the formatted text.

Specified by:
formatString in interface Formatter
Parameters:
text - String
Returns:
formatted string

getDataAttributes

public abstract Attributes getDataAttributes()
Returns DataAttributes.

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

getVetoPropertyChange

protected VetoableChangeSupport getVetoPropertyChange()
Accessor for the vetoPropertyChange field.


removeVetoableChangeListener

public void removeVetoableChangeListener(VetoableChangeListener listener)
The removeVetoableChangeListener method was generated to support the vetoPropertyChange field.


setDataAttributes

public abstract void setDataAttributes(Attributes dataAttributes)
                                throws PropertyVetoException
Replace DataAttributes.

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

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.