|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.plaf.TextUIWrapper<UI>
UI
- public abstract class TextUIWrapper<UI extends javax.swing.plaf.TextUI>
TODO:
Nested Class Summary | |
---|---|
static class |
TextUIWrapper.DefaultWrapper
|
Constructor Summary | |
---|---|
protected |
TextUIWrapper(java.lang.Class<UI> wrapperClass)
|
Method Summary | |
---|---|
static TextUIWrapper<? extends PromptTextUI> |
getDefaultWrapper()
|
java.lang.Class<UI> |
getWrapperClass()
Returns the wrapper class. |
void |
install(javax.swing.text.JTextComponent textComponent,
boolean stayOnUIChange)
Wraps and replaces the current UI of the given textComponent , by calling
wrapUI(JTextComponent) if necessary. |
protected boolean |
replaceUIIfNeeded(javax.swing.text.JTextComponent textComponent)
Wraps and replaces the text components current UI by calling #wrapUI(TextUI) , if the
text components current UI is not an instance of the given wrapper class. |
void |
uninstall(javax.swing.text.JTextComponent textComponent)
Removes the PropertyChangeListener , which listens for "UI" property changes (if
installed) and then calls JComponent.updateUI() on the textComponent to
set the UI object provided by the current UIDefaults . |
abstract UI |
wrapUI(javax.swing.text.JTextComponent textComponent)
Override to return the appropriate UI wrapper object for the given TextUI . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected TextUIWrapper(java.lang.Class<UI> wrapperClass)
Method Detail |
---|
public static final TextUIWrapper<? extends PromptTextUI> getDefaultWrapper()
public final void install(javax.swing.text.JTextComponent textComponent, boolean stayOnUIChange)
Wraps and replaces the current UI of the given textComponent
, by calling
wrapUI(JTextComponent)
if necessary.
textComponent
- stayOnUIChange
- if true
, a PropertyChangeListener
is registered, which
listens for UI changes and wraps any new UI object.protected boolean replaceUIIfNeeded(javax.swing.text.JTextComponent textComponent)
#wrapUI(TextUI)
, if the
text components current UI is not an instance of the given wrapper class.
textComponent
-
true
if the UI has been replacedpublic abstract UI wrapUI(javax.swing.text.JTextComponent textComponent)
TextUI
.
textUI
-
public java.lang.Class<UI> getWrapperClass()
public final void uninstall(javax.swing.text.JTextComponent textComponent)
Removes the PropertyChangeListener
, which listens for "UI" property changes (if
installed) and then calls JComponent.updateUI()
on the textComponent
to
set the UI object provided by the current UIDefaults
.
textComponent
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |