All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.basic.BasicTextUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.TextUI
                    |
                    +----java.awt.swing.text.DefaultTextUI
                            |
                            +----java.awt.swing.basic.BasicTextUI

public abstract class BasicTextUI
extends DefaultTextUI
Provides the look and feel features that are common across the Basic text LAF implementations.


Constructor Index

 o BasicTextUI()

Method Index

 o create(Element, int, int)
Creates the view for an element that has been broken as a result of formatting.
 o createKeymap()
Creates the keymap to use for the text component, and installs any necessary bindings into it.
 o getKeymapName()
Allows one to fetch the name of the keymap that will be installed/used by default for this UI.
 o loadDefaultKeymap(Keymap)
Load the given keymap with default settings appropriate for the UI being created.

Constructors

 o BasicTextUI
public BasicTextUI()

Methods

 o loadDefaultKeymap
protected void loadDefaultKeymap(Keymap map)
Load the given keymap with default settings appropriate for the UI being created. This is called if a default keymap is being created because an existing one wasn't found. Subclasses that reimplement this would generally want to call the superclass implementation to make sure all of the appropriate bindings get loaded. This is implemented to load the set of keybindings appropriate for all text components in motif.

 o getKeymapName
public String getKeymapName()
Allows one to fetch the name of the keymap that will be installed/used by default for this UI. This is implemented to generate a name based upon the getPropertyPrefix method, and will generally need not be redefined.

 o createKeymap
protected Keymap createKeymap()
Creates the keymap to use for the text component, and installs any necessary bindings into it. By default, the keymap is shared between all instances of the associated text component. It has the name defined by the getKeymapName method.

Overrides:
createKeymap in class DefaultTextUI
See Also:
getKeymapName, DefaultTextController
 o create
public View create(Element elem,
                   int p0,
                   int p1)
Creates the view for an element that has been broken as a result of formatting.

Parameters:
elem - the element
p0 - the starting offset
p1 - the ending offset
Returns:
the view
Overrides:
create in class DefaultTextUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature