public static final class TextUIWrapper.DefaultWrapper extends TextUIWrapper<PromptTextUI>
TextUIWrapper.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 textComponents UI. |
getDefaultWrapper, getWrapperClass, install, uninstallpublic PromptTextUI wrapUI(JTextComponent textComponent)
Creates a new PromptTextUI, which wraps the given textComponents 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 textComponents 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 replacedCopyright © 2017. All Rights Reserved.