org.jdesktop.swingx.plaf
Class TextUIWrapper<UI extends javax.swing.plaf.TextUI>
- java.lang.Object
-
- org.jdesktop.swingx.plaf.TextUIWrapper<UI>
-
- Type Parameters:
UI-
- Direct Known Subclasses:
- TextUIWrapper.DefaultWrapper
public abstract class TextUIWrapper<UI extends javax.swing.plaf.TextUI> extends java.lang.ObjectTODO:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classTextUIWrapper.DefaultWrapper
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description static TextUIWrapper<? extends PromptTextUI>getDefaultWrapper()java.lang.Class<UI>getWrapperClass()Returns the wrapper class.voidinstall(javax.swing.text.JTextComponent textComponent, boolean stayOnUIChange)Wraps and replaces the current UI of the giventextComponent, by callingwrapUI(JTextComponent)if necessary.voiduninstall(javax.swing.text.JTextComponent textComponent)Removes thePropertyChangeListener, which listens for "UI" property changes (if installed) and then callsJComponent.updateUI()on thetextComponentto set the UI object provided by the currentUIDefaults.abstract UIwrapUI(javax.swing.text.JTextComponent textComponent)Override to return the appropriate UI wrapper object for the givenTextUI.
-
-
-
Method Detail
-
getDefaultWrapper
public static final TextUIWrapper<? extends PromptTextUI> getDefaultWrapper()
-
install
public final void install(javax.swing.text.JTextComponent textComponent, boolean stayOnUIChange)Wraps and replaces the current UI of the given
textComponent, by callingwrapUI(JTextComponent)if necessary.- Parameters:
textComponent-stayOnUIChange- iftrue, aPropertyChangeListeneris registered, which listens for UI changes and wraps any new UI object.
-
wrapUI
public abstract UI wrapUI(javax.swing.text.JTextComponent textComponent)
Override to return the appropriate UI wrapper object for the givenTextUI.- Parameters:
textUI-- Returns:
- the wrapping UI
-
getWrapperClass
public java.lang.Class<UI> getWrapperClass()
Returns the wrapper class.- Returns:
- the wrapper class
-
uninstall
public final void uninstall(javax.swing.text.JTextComponent textComponent)
Removes the
PropertyChangeListener, which listens for "UI" property changes (if installed) and then callsJComponent.updateUI()on thetextComponentto set the UI object provided by the currentUIDefaults.- Parameters:
textComponent-
-
-
DataMelt 3.0 © DataMelt by jWork.ORG