Package com.jgoodies.looks.plastic
Class PlasticPopupMenuUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.PopupMenuUI
-
- javax.swing.plaf.basic.BasicPopupMenuUI
-
- com.jgoodies.looks.plastic.PlasticPopupMenuUI
-
public final class PlasticPopupMenuUI extends javax.swing.plaf.basic.BasicPopupMenuUIThe JGoodies Plastic look&feel implementation ofPopMenuUI. It differs from the superclass in that it provides an option to get a narrow border. You can set a client propertyOptions.NO_MARGIN_KEYto indicate that this popup menu has a border without margin. That is useful in the special case where the popup contains only a single component, for example a JScrollPane.- Version:
- $Revision: 1.10 $
- See Also:
Options.NO_MARGIN_KEY
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classPlasticPopupMenuUI.BorderStyleChangeHandler
-
Field Summary
Fields Modifier and Type Field Description private java.beans.PropertyChangeListenerborderListener
-
Constructor Summary
Constructors Constructor Description PlasticPopupMenuUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent b)private voidinstallBorder()Installs a border without margin, iff the client propertyOptions.NO_MARGIN_KEYis set toBoolean.TRUE.voidinstallDefaults()protected voidinstallListeners()protected voiduninstallListeners()-
Methods inherited from class javax.swing.plaf.basic.BasicPopupMenuUI
installKeyboardActions, installUI, isPopupTrigger, uninstallDefaults, uninstallKeyboardActions, uninstallUI
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
-
installDefaults
public void installDefaults()
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicPopupMenuUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicPopupMenuUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classjavax.swing.plaf.basic.BasicPopupMenuUI
-
installBorder
private void installBorder()
Installs a border without margin, iff the client propertyOptions.NO_MARGIN_KEYis set toBoolean.TRUE.
-
-