Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
javax.swing.plaf.basic
public class: BasicTextAreaUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.TextUI
         javax.swing.plaf.basic.BasicTextUI
            javax.swing.plaf.basic.BasicTextAreaUI

All Implemented Interfaces:
    ViewFactory

Direct Known Subclasses:
    SynthTextAreaUI

Provides the look and feel for a plain text editor. In this implementation the default UI is extended to act as a simple view factory.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder .

Nested Class Summary:
static class  BasicTextAreaUI.PlainParagraph  Paragraph for representing plain-text lines that support bidirectional text. 
Fields inherited from javax.swing.plaf.basic.BasicTextUI:
editor,  painted,  rootView,  updateHandler
Constructor:
 public BasicTextAreaUI() 
Method from javax.swing.plaf.basic.BasicTextAreaUI Summary:
create,   createI18N,   createUI,   getBaseline,   getBaselineResizeBehavior,   getMinimumSize,   getPreferredSize,   getPropertyPrefix,   installDefaults,   propertyChange
Methods from javax.swing.plaf.basic.BasicTextUI:
create,   create,   createActionMap,   createCaret,   createHighlighter,   createKeymap,   damageRange,   damageRange,   getActionMap,   getComponent,   getEditorKit,   getInputMap,   getKeymapName,   getMaximumSize,   getMinimumSize,   getNextVisualPositionFrom,   getPreferredSize,   getPropertyPrefix,   getRootView,   getToolTipText,   getTransferHandler,   getVisibleEditorRect,   installDefaults,   installKeyboardActions,   installListeners,   installUI,   modelChanged,   modelToView,   modelToView,   paint,   paintBackground,   paintSafely,   propertyChange,   setView,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI,   update,   updateFocusAcceleratorBinding,   updateFocusTraversalKeys,   viewToModel,   viewToModel
Methods from javax.swing.plaf.TextUI:
damageRange,   damageRange,   getEditorKit,   getNextVisualPositionFrom,   getRootView,   getToolTipText,   modelToView,   modelToView,   viewToModel,   viewToModel
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.BasicTextAreaUI Detail:
 public View create(Element elem) 
    Creates the view for an element. Returns a WrappedPlainView or PlainView.
 View createI18N(Element elem) 
 public static ComponentUI createUI(JComponent ta) 
    Creates a UI for a JTextArea.
 public int getBaseline(JComponent c,
    int width,
    int height) 
    Returns the baseline.
 public BaselineResizeBehavior getBaselineResizeBehavior(JComponent c) 
    Returns an enum indicating how the baseline of the component changes as the size changes.
 public Dimension getMinimumSize(JComponent c) 
    The method is overridden to take into account caret width.
 public Dimension getPreferredSize(JComponent c) 
    The method is overridden to take into account caret width.
 protected String getPropertyPrefix() 
    Fetches the name used as a key to look up properties through the UIManager. This is used as a prefix to all the standard text properties.
 protected  void installDefaults() 
 protected  void propertyChange(PropertyChangeEvent evt) 
    This method gets called when a bound property is changed on the associated JTextComponent. This is a hook which UI implementations may change to reflect how the UI displays bound properties of JTextComponent subclasses. This is implemented to rebuild the View when the WrapLine or the WrapStyleWord property changes.