public class QuaquaTextFieldUI extends javax.swing.plaf.basic.BasicTextFieldUI implements VisuallyLayoutable
CLIP_BOUNDS, COMPONENT_BOUNDS, TEXT_BOUNDS| Constructor and Description |
|---|
QuaquaTextFieldUI() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.text.Caret |
createCaret() |
protected java.awt.event.FocusListener |
createFocusListener() |
protected javax.swing.text.Highlighter |
createHighlighter() |
protected javax.swing.text.Keymap |
createKeymap()
Creates the keymap to use for the text component, and installs
any necessary bindings into it.
|
protected java.awt.event.MouseListener |
createPopupListener() |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent jcomponent) |
int |
getBaseline(javax.swing.JComponent c,
int width,
int height)
Returns the baseline for the specified component, or -1 if the
baseline can not be determined.
|
javax.swing.text.EditorKit |
getEditorKit(javax.swing.text.JTextComponent tc)
Fetches the EditorKit for the UI.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
java.awt.Rectangle |
getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
Returns the visual bounds for the specified component, or null if the
visual bounds can not be determined.
|
java.awt.Insets |
getVisualMargin(javax.swing.text.JTextComponent tc) |
protected void |
installDefaults() |
protected void |
installListeners() |
void |
installUI(javax.swing.JComponent c) |
protected void |
paintBackground(java.awt.Graphics g)
Paints a background for the view.
|
protected void |
paintSafely(java.awt.Graphics g) |
void |
propertyChange(java.beans.PropertyChangeEvent event) |
protected void |
uninstallDefaults() |
protected void |
uninstallListeners() |
create, getBaselineResizeBehavior, getPropertyPrefixcreate, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, modelChanged, modelToView, modelToView, paint, setView, uninstallKeyboardActions, uninstallUI, update, viewToModel, viewToModelpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent jcomponent)
public void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicTextUIprotected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicTextUIprotected void uninstallDefaults()
uninstallDefaults in class javax.swing.plaf.basic.BasicTextUIprotected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicTextUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicTextUIprotected java.awt.event.FocusListener createFocusListener()
protected java.awt.event.MouseListener createPopupListener()
public javax.swing.text.EditorKit getEditorKit(javax.swing.text.JTextComponent tc)
getEditorKit in class javax.swing.plaf.basic.BasicTextUItc - the text component for which this UI is installedTextUI.getEditorKit(javax.swing.text.JTextComponent)public java.awt.Insets getVisualMargin(javax.swing.text.JTextComponent tc)
protected void paintSafely(java.awt.Graphics g)
paintSafely in class javax.swing.plaf.basic.BasicTextUIprotected void paintBackground(java.awt.Graphics g)
paintBackground in class javax.swing.plaf.basic.BasicTextUIg - the graphics contextpublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in class javax.swing.plaf.basic.BasicTextUIprotected javax.swing.text.Caret createCaret()
createCaret in class javax.swing.plaf.basic.BasicTextUIprotected javax.swing.text.Highlighter createHighlighter()
createHighlighter in class javax.swing.plaf.basic.BasicTextUIprotected javax.swing.text.Keymap createKeymap()
The set of bindings used to create the keymap is fetched
from the UIManager using a key formed by combining the
BasicTextFieldUI.getPropertyPrefix() method
and the string .keyBindings. The type is expected
to be JTextComponent.KeyBinding[].
createKeymap in class javax.swing.plaf.basic.BasicTextUIBasicTextUI.getKeymapName(),
JTextComponentpublic int getBaseline(javax.swing.JComponent c,
int width,
int height)
VisuallyLayoutablegetBaseline in interface VisuallyLayoutablegetBaseline in class javax.swing.plaf.basic.BasicTextFieldUIc - JComponent to calculate baseline forwidth - Width of the component to determine baseline for.height - Height of the component to determine baseline for.public java.awt.Rectangle getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
VisuallyLayoutablegetVisualBounds in interface VisuallyLayoutablec - JComponent to calculate visual margin fortype - The type of the visual margin.width - Width of the componentheight - Height of the componentpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicTextUI