public static final class TextUIWrapper.DefaultWrapper extends TextUIWrapper<PromptTextUI>
TextUIWrapper.DefaultWrapper
Modifier | Constructor and Description |
---|---|
private |
DefaultWrapper() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
replaceUIIfNeeded(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(JTextComponent textComponent)
Creates a new
PromptTextUI , which wraps the given textComponent s UI. |
getDefaultWrapper, getWrapperClass, install, uninstall
private DefaultWrapper()
public PromptTextUI wrapUI(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 UIPromptTextUI
which wraps the textComponent
s UI.protected boolean replaceUIIfNeeded(JTextComponent textComponent)
BasicTextUI
removes all our buddies upon UI changes).replaceUIIfNeeded
in class TextUIWrapper<PromptTextUI>
true
if the UI has been replacedWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses