Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.ui
Class EditmaskAttributes

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

public class EditmaskAttributes
extends Object
implements Attributes, PropertyChangeListener, VetoableChangeListener, Serializable

EditmaskAttributes implements Attributes. It is a container for setting the editword and editmask used by a view of JFormattedTextField. The editmask will change the look of a field.

See Also:
Attributes, Serialized Form

Field Summary
static String Copyright
           
protected  PropertyChangeSupport propertyChange
           
protected  VetoableChangeSupport vetoPropertyChange
           
 
Fields inherited from interface com.ibm.etools.iseries.ui.Attributes
copyright
 
Constructor Summary
EditmaskAttributes()
          Constructs a new EditmaskAttributes.
EditmaskAttributes(String editWord, String editMask)
          Constructs a new EditmaskAttributes with the specified editword and editmask.
 
Method Summary
 void addEditmaskAttributesChangeListener(EditmaskAttributesChangeListener l)
          Add a EditmaskAttributesChangeListener
 void addPropertyChangeListener(PropertyChangeListener l)
           
 void addVetoableChangeListener(VetoableChangeListener l)
          Add a vetoableChangeListener.
static String Copyright()
          This method returns the copyright notice for this class.
 void fireEditmaskAttributesChangeEvent(EditmaskAttributesChangeEvent evt)
          Report that the properties of EditmaskAttributes are changed to any registered listeners.
 String getEditMask()
          Gets the editMask property (String) value.
 String getEditWord()
          Gets the editWord property (String) value.
 void propertyChange(PropertyChangeEvent e)
          Examine the PropertyChangeEvent and decides what to do on a particular event.
 void removeEditmaskAttributesChangeListener(EditmaskAttributesChangeListener l)
          Remove a EditmaskAttributesChangeListener
 void removePropertyChangeListener(PropertyChangeListener l)
          Removes a propertyChangeListener.
 void removeVetoableChangeListener(VetoableChangeListener l)
          Removes a vetoableChangeListener.
 void setEditMask(String mask)
          Sets the editMask property (String) value.
 void setEditWord(String word)
          Sets the editWord property (String) value.
 void vetoableChange(PropertyChangeEvent e)
          This method gets called when a constrained property is changed.
 
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

EditmaskAttributes

public EditmaskAttributes()
Constructs a new EditmaskAttributes.


EditmaskAttributes

public EditmaskAttributes(String editWord,
                          String editMask)
Constructs a new EditmaskAttributes with the specified editword and editmask.

Parameters:
editWord - String
editMask - String
Method Detail

addEditmaskAttributesChangeListener

public void addEditmaskAttributesChangeListener(EditmaskAttributesChangeListener l)
Add a EditmaskAttributesChangeListener

Parameters:
l - com.ibm.etools.iseries.ui.EditmaskAttributesChangeListener

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)

addVetoableChangeListener

public void addVetoableChangeListener(VetoableChangeListener l)
Add a vetoableChangeListener.

Parameters:
l - java.beans.VetoableChangeListener

Copyright

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

Returns:
java.lang.String

fireEditmaskAttributesChangeEvent

public void fireEditmaskAttributesChangeEvent(EditmaskAttributesChangeEvent evt)
Report that the properties of EditmaskAttributes are changed to any registered listeners.

Parameters:
evt - com.ibm.etools.iseries.ui.EditmaskAttributesChangeEvent

getEditMask

public String getEditMask()
Gets the editMask property (String) value. The default value is "".

Returns:
The editMask property value.
See Also:
setEditMask(java.lang.String)

getEditWord

public String getEditWord()
Gets the editWord property (String) value. The default value is "".

Returns:
The editWord property value.
See Also:
setEditWord(java.lang.String)

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

removeEditmaskAttributesChangeListener

public void removeEditmaskAttributesChangeListener(EditmaskAttributesChangeListener l)
Remove a EditmaskAttributesChangeListener

Parameters:
l - com.ibm.etools.iseries.ui.EditmaskAttributesChangeListener

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)
Removes a propertyChangeListener.

Parameters:
l - PropertyChangeListener

removeVetoableChangeListener

public void removeVetoableChangeListener(VetoableChangeListener l)
Removes a vetoableChangeListener.

Parameters:
l - java.beans.VetoableChangeListener

setEditMask

public void setEditMask(String mask)
                 throws PropertyVetoException
Sets the editMask property (String) value.

Parameters:
editMask - The new value for the property.
Throws:
PropertyVetoException
See Also:
getEditMask()

setEditWord

public void setEditWord(String word)
                 throws PropertyVetoException
Sets the editWord property (String) value.

Parameters:
editWord - The new value for the property.
Throws:
PropertyVetoException
See Also:
getEditWord()

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.