|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.plaf.TextUIWrapper<PromptTextUI>
org.jdesktop.swingx.plaf.TextUIWrapper.DefaultWrapper
public static final class TextUIWrapper.DefaultWrapper
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jdesktop.swingx.plaf.TextUIWrapper |
---|
TextUIWrapper.DefaultWrapper |
Method Summary | |
---|---|
protected boolean |
replaceUIIfNeeded(javax.swing.text.JTextComponent textComponent)
Every time the UI needs to be replaced we also need to make sure, that all buddy components are also in the component hierarchy. |
PromptTextUI |
wrapUI(javax.swing.text.JTextComponent textComponent)
Creates a new PromptTextUI , which wraps the given textComponent s UI. |
Methods inherited from class org.jdesktop.swingx.plaf.TextUIWrapper |
---|
getDefaultWrapper, getWrapperClass, install, uninstall |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public PromptTextUI wrapUI(javax.swing.text.JTextComponent textComponent)
Creates a new PromptTextUI
, which wraps the given textComponent
s UI.
If the UI is already of type PromptTextUI
, it will be returned. If
textComponent
is of type JXSearchField
a new SearchFieldUI
object will be returned. If textComponent
is of type JTextField
or
JTextArea
a BuddyTextFieldUI
or PromptTextAreaUI
will be
returned, respectively. If the UI is of any other type, a
IllegalArgumentException
will be thrown.
wrapUI
in class TextUIWrapper<PromptTextUI>
textComponent
- wrap this components UI
PromptTextUI
which wraps the textComponent
s UI.protected boolean replaceUIIfNeeded(javax.swing.text.JTextComponent textComponent)
BasicTextUI
removes all our buddies upon UI changes).
replaceUIIfNeeded
in class TextUIWrapper<PromptTextUI>
true
if the UI has been replaced
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |