Package org.jdesktop.swingx.plaf
Class PromptTextFieldUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TextUI
-
- org.jdesktop.swingx.plaf.PromptTextUI
-
- org.jdesktop.swingx.plaf.PromptTextFieldUI
-
- Direct Known Subclasses:
BuddyTextFieldUI
public class PromptTextFieldUI extends PromptTextUI
PromptTextUI
implementation for rendering prompts onJTextField
s and uses aJTextField
as a prompt component.- Author:
- Peter Weishapl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jdesktop.swingx.plaf.PromptTextUI
PromptTextUI.PainterHighlighter
-
-
Field Summary
-
Fields inherited from class org.jdesktop.swingx.plaf.PromptTextUI
delegate, promptComponent
-
-
Constructor Summary
Constructors Constructor Description PromptTextFieldUI(javax.swing.plaf.TextUI delegate)
Creates a newPromptTextFieldUI
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.text.JTextComponent
createPromptComponent()
Returns a sharedJTextField
.javax.swing.text.JTextComponent
getPromptComponent(javax.swing.text.JTextComponent txt)
OverridesgetPromptComponent(JTextComponent)
to additionally updateJTextField
specific properties.-
Methods inherited from class org.jdesktop.swingx.plaf.PromptTextUI
contains, damageRange, damageRange, equals, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getEditorKit, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, hashCode, installUI, modelToView, modelToView, paint, paintPromptComponent, shouldPaintPrompt, toString, uninstallUI, update, viewToModel, viewToModel
-
-
-
-
Constructor Detail
-
PromptTextFieldUI
public PromptTextFieldUI(javax.swing.plaf.TextUI delegate)
Creates a newPromptTextFieldUI
.- Parameters:
delegate
-
-
-
Method Detail
-
getPromptComponent
public javax.swing.text.JTextComponent getPromptComponent(javax.swing.text.JTextComponent txt)
OverridesgetPromptComponent(JTextComponent)
to additionally updateJTextField
specific properties.- Overrides:
getPromptComponent
in classPromptTextUI
- Returns:
- the adjusted prompt component
-
createPromptComponent
protected javax.swing.text.JTextComponent createPromptComponent()
Returns a sharedJTextField
.- Specified by:
createPromptComponent
in classPromptTextUI
- Returns:
-
-