|
Quaqua 8.0 2011-10-02 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextFieldUI
javax.swing.plaf.basic.BasicFormattedTextFieldUI
ch.randelshofer.quaqua.QuaquaFormattedTextFieldUI
public class QuaquaFormattedTextFieldUI
QuaquaFormattedTextFieldUI.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI |
|---|
javax.swing.plaf.basic.BasicTextUI.BasicCaret, javax.swing.plaf.basic.BasicTextUI.BasicHighlighter |
| Field Summary |
|---|
| Fields inherited from interface ch.randelshofer.quaqua.VisuallyLayoutable |
|---|
CLIP_BOUNDS, COMPONENT_BOUNDS, TEXT_BOUNDS |
| Constructor Summary | |
|---|---|
QuaquaFormattedTextFieldUI()
|
|
| Method Summary | |
|---|---|
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 c)
Creates a UI for a JFormattedTextField. |
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()
|
| Methods inherited from class javax.swing.plaf.basic.BasicFormattedTextFieldUI |
|---|
getPropertyPrefix |
| Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI |
|---|
create, getBaselineResizeBehavior |
| Methods inherited from class javax.swing.plaf.basic.BasicTextUI |
|---|
create, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, modelChanged, modelToView, modelToView, paint, setView, uninstallKeyboardActions, 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 |
| Constructor Detail |
|---|
public QuaquaFormattedTextFieldUI()
| Method Detail |
|---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - the formatted text field
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 installed
TextUI.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
BasicFormattedTextFieldUI.getPropertyPrefix() method
and the name .keyBindings. The type is expected
to be JTextComponent.KeyBinding[].
createKeymap in class javax.swing.plaf.basic.BasicTextUIBasicTextUI.getKeymapName(),
JTextComponent
public int getBaseline(javax.swing.JComponent c,
int width,
int height)
VisuallyLayoutable
getBaseline 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)
VisuallyLayoutable
getVisualBounds in interface VisuallyLayoutablec - JComponent to calculate visual margin fortype - The type of the visual margin.width - Width of the componentheight - Height of the component
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicTextUI
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||