Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.ui
Class DefaultFormatter

java.lang.Object
  extended by com.ibm.etools.iseries.ui.AbstractFormatter
      extended by com.ibm.etools.iseries.ui.DefaultFormatter
All Implemented Interfaces:
Formatter, PropertyChangeListener, VetoableChangeListener, Serializable, EventListener

public class DefaultFormatter
extends AbstractFormatter
implements PropertyChangeListener, VetoableChangeListener, Serializable

DefaultFormatter extends AbstractFormatter. This formatter does nothing. Anything that is passed to the method formatString is returned without doing any formatting. If you do not want any formatting to be done for JFormattedTextField, JFormattedLabel or JFormattedComboBox, then set this DefaultFormatter in the field model.

See Also:
EditcodeEditwordFormatter, AbstractFormatter, Formatter, Serialized Form

Field Summary
static String Copyright
           
protected  PropertyChangeSupport propertyChange
           
protected  VetoableChangeSupport vetoPropertyChange
           
 
Fields inherited from interface com.ibm.etools.iseries.ui.Formatter
copyright
 
Constructor Summary
DefaultFormatter()
          Constructs a new DefaultFormatter.
DefaultFormatter(Attributes dataAttributes)
          Constructs a new DefaultFormatter with the specified DataAttributes.
 
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.
 String formatString(String text)
          No formatting is done in this method.
 Attributes getDataAttributes()
          Gets the dataAttributes property (com.ibm.etools.iseries.ui.Attributes) 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 vetoableChange(PropertyChangeEvent e)
          This method gets called when a constrained property is changed.
 
Methods inherited from class com.ibm.etools.iseries.ui.AbstractFormatter
fireVetoableChange, getVetoPropertyChange
 
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

propertyChange

protected transient PropertyChangeSupport propertyChange

vetoPropertyChange

protected transient VetoableChangeSupport vetoPropertyChange
Constructor Detail

DefaultFormatter

public DefaultFormatter()
Constructs a new DefaultFormatter.


DefaultFormatter

public DefaultFormatter(Attributes dataAttributes)
Constructs a new DefaultFormatter 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
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)

addVetoableChangeListener

public void addVetoableChangeListener(VetoableChangeListener l)
Add a vetoableChangeListener.

Overrides:
addVetoableChangeListener in class AbstractFormatter
Parameters:
l - java.beans.VetoableChangeListener

Copyright

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

Returns:
java.lang.String

formatString

public String formatString(String text)
No formatting is done in this method.

Specified by:
formatString in interface Formatter
Specified by:
formatString in class AbstractFormatter
Parameters:
text - String
Returns:
text String No formatting is done.

getDataAttributes

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

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

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 - java.beans.PropertyChangeEvent

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Removes a propertyChangeListener.

Parameters:
l - PropertyChangeListener

removeVetoableChangeListener

public void removeVetoableChangeListener(VetoableChangeListener l)
Removes a vetoableChangeListener.

Overrides:
removeVetoableChangeListener in class AbstractFormatter
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 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 Formatter
Specified by:
setDataAttributes in class AbstractFormatter
Parameters:
dataAttributes - The new value for the property.
Throws:
PropertyVetoException
See Also:
getDataAttributes()

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.