Documentation of 'org.jdesktop.swingx.plaf.TextUIWrapper' Java class
TextUIWrapper
org.jdesktop.swingx.plaf

Class TextUIWrapper<UI extends javax.swing.plaf.TextUI>

  • Type Parameters:
    UI -
    Direct Known Subclasses:
    TextUIWrapper.DefaultWrapper


    public abstract class TextUIWrapper<UI extends javax.swing.plaf.TextUI>
    extends java.lang.Object
    TODO:
    • 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.
      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.
      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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • install

        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.

        Parameters:
        textComponent -
        stayOnUIChange - if true, a PropertyChangeListener is 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 given TextUI.
        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 calls JComponent.updateUI() on the textComponent to set the UI object provided by the current UIDefaults.

        Parameters:
        textComponent -

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.