Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.ui
Class EditmaskViewBasicTextFieldUI

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 com.ibm.etools.iseries.ui.EditmaskViewBasicTextFieldUI
All Implemented Interfaces:
EditmaskViewInterface, PropertyChangeListener, Serializable, EventListener, ViewFactory

public class EditmaskViewBasicTextFieldUI
extends BasicTextFieldUI
implements EditmaskViewInterface, PropertyChangeListener, Serializable

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

See Also:
EditmaskViewInterface, EditmaskPlainView, EditmaskViewMetalTextFieldUI, 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
EditmaskViewBasicTextFieldUI()
          Constructs a new EditmaskViewBasicTextFieldUI.
EditmaskViewBasicTextFieldUI(EditmaskAttributes attrib)
          Constructs a new EditmaskViewBasicTextFieldUI 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.basic.BasicTextFieldUI
createUI, 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

EditmaskViewBasicTextFieldUI

public EditmaskViewBasicTextFieldUI()
Constructs a new EditmaskViewBasicTextFieldUI.


EditmaskViewBasicTextFieldUI

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

Parameters:
editmaskAttributes - com.ibm.etools.iseries.ui.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 BasicTextUI
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.