Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.ui
Class EditmaskViewMetalTextFieldUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TextUI
          extended by javax.swing.plaf.basic.BasicTextUI
              extended by javax.swing.plaf.basic.BasicTextFieldUI
                  extended by javax.swing.plaf.metal.MetalTextFieldUI
                      extended by com.ibm.etools.iseries.ui.EditmaskViewMetalTextFieldUI
All Implemented Interfaces:
EditmaskViewInterface, PropertyChangeListener, Serializable, EventListener, ViewFactory

public class EditmaskViewMetalTextFieldUI
extends MetalTextFieldUI
implements EditmaskViewInterface, PropertyChangeListener, Serializable

Metal look and feel for a JFormattedTextField. It extends javax.swing.plaf.basic.MetalTextFieldUI and implements EditmaskViewInterface. It is a MetalTextFieldUI that creates an EditmaskPlainView.

See Also:
EditmaskViewInterface, EditmaskPlainView, EditmaskViewBasicTextFieldUI, EditmaskViewWindowsTextFieldUI, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
 
Field Summary
static String Copyright
           
protected  PropertyChangeSupport propertyChange
           
 
Fields inherited from interface com.ibm.etools.iseries.ui.EditmaskViewInterface
copyright
 
Constructor Summary
EditmaskViewMetalTextFieldUI()
          Constructs a new EditmaskViewMetalTextFieldUI.
EditmaskViewMetalTextFieldUI(EditmaskAttributes attrib)
          Constructs a new EditmaskViewMetalTextFieldUI with the specified EditmaskAttributes
 
Method Summary
static String Copyright()
          This method returns the copyright notice for this class.
 View create(Element elem)
          Creates a view (EditmaskPlainView) based on an element.
 EditmaskAttributes getEditmaskAttributes()
          Gets the editmaskAttributes property (com.ibm.etools.iseries.ui.Attributes) value.
 EditmaskPlainView getEditmaskPlainView()
          Return the EditmaskPlainView
 String getFormattedText()
          Return the formatted text.
 void propertyChange(PropertyChangeEvent e)
          Examine the PropertyChangeEvent and decides what to do on a particular event.
 void setEditmaskAttributes(EditmaskAttributes attrib)
          Sets the editmaskAttributes property (com.ibm.etools.iseries.ui.Attributes) value.
 
Methods inherited from class javax.swing.plaf.metal.MetalTextFieldUI
createUI
 
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
getBaseline, getBaselineResizeBehavior, getPropertyPrefix
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
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
Constructor Detail

EditmaskViewMetalTextFieldUI

public EditmaskViewMetalTextFieldUI()
Constructs a new EditmaskViewMetalTextFieldUI.


EditmaskViewMetalTextFieldUI

public EditmaskViewMetalTextFieldUI(EditmaskAttributes attrib)
Constructs a new EditmaskViewMetalTextFieldUI with the specified EditmaskAttributes

Parameters:
editmaskAttributes - EditmaskAttributes
Method Detail

Copyright

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

Returns:
java.lang.String

create

public View create(Element elem)
Creates a view (EditmaskPlainView) based on an element.

Specified by:
create in interface ViewFactory
Overrides:
create in class BasicTextFieldUI
Parameters:
elem - Element
Returns:
the view

getEditmaskAttributes

public EditmaskAttributes getEditmaskAttributes()
Gets the editmaskAttributes property (com.ibm.etools.iseries.ui.Attributes) value.

Specified by:
getEditmaskAttributes in interface EditmaskViewInterface
Returns:
The editmaskAttributes property value.
See Also:
setEditmaskAttributes(com.ibm.etools.iseries.ui.EditmaskAttributes)

getEditmaskPlainView

public EditmaskPlainView getEditmaskPlainView()
Return the EditmaskPlainView

Specified by:
getEditmaskPlainView in interface EditmaskViewInterface
Returns:
com.ibm.etools.iseries.ui.EditmaskPlainView

getFormattedText

public String getFormattedText()
Return the formatted text.

Specified by:
getFormattedText in interface EditmaskViewInterface
Returns:
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
Overrides:
propertyChange in class MetalTextFieldUI
Parameters:
e - java.beans.PropertyChangeEvent

setEditmaskAttributes

public void setEditmaskAttributes(EditmaskAttributes attrib)
Sets the editmaskAttributes property (com.ibm.etools.iseries.ui.Attributes) value.

Specified by:
setEditmaskAttributes in interface EditmaskViewInterface
Parameters:
editmaskAttributes - The new value for the property.
See Also:
getEditmaskAttributes()

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.