|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.ui.AbstractFormatter com.ibm.etools.iseries.ui.DefaultFormatter
public class DefaultFormatter
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.
EditcodeEditwordFormatter
,
AbstractFormatter
,
Formatter
,
Serialized FormField 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 |
---|
public static final String Copyright
protected transient PropertyChangeSupport propertyChange
protected transient VetoableChangeSupport vetoPropertyChange
Constructor Detail |
---|
public DefaultFormatter()
public DefaultFormatter(Attributes dataAttributes)
dataAttributes
- com.ibm.etools.iseries.ui.AttributesMethod Detail |
---|
public void addPropertyChangeListener(PropertyChangeListener l)
public void addVetoableChangeListener(VetoableChangeListener l)
addVetoableChangeListener
in class AbstractFormatter
l
- java.beans.VetoableChangeListenerpublic static String Copyright()
public String formatString(String text)
formatString
in interface Formatter
formatString
in class AbstractFormatter
text
- String
public Attributes getDataAttributes()
getDataAttributes
in interface Formatter
getDataAttributes
in class AbstractFormatter
setDataAttributes(com.ibm.etools.iseries.ui.Attributes)
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
e
- java.beans.PropertyChangeEventpublic void removePropertyChangeListener(PropertyChangeListener l)
l
- PropertyChangeListenerpublic void removeVetoableChangeListener(VetoableChangeListener l)
removeVetoableChangeListener
in class AbstractFormatter
l
- java.beans.VetoableChangeListenerpublic void setDataAttributes(Attributes a) throws PropertyVetoException
setDataAttributes
in interface Formatter
setDataAttributes
in class AbstractFormatter
dataAttributes
- The new value for the property.
PropertyVetoException
getDataAttributes()
public void vetoableChange(PropertyChangeEvent e) throws PropertyVetoException
vetoableChange
in interface VetoableChangeListener
e
- java.beans.PropertyChangeEvent a PropertyChangeEvent object describing the event source and the property that has changed.
PropertyVetoException
- if the recipient wishes the property change to be rolled back.
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |