Package com.jgoodies.looks.common
Class PopupMenuLayout
- java.lang.Object
-
- javax.swing.BoxLayout
-
- com.jgoodies.looks.common.PopupMenuLayout
-
- All Implemented Interfaces:
java.awt.LayoutManager,java.awt.LayoutManager2,java.io.Serializable,javax.swing.plaf.UIResource
public final class PopupMenuLayout extends javax.swing.BoxLayout implements javax.swing.plaf.UIResourceThe JGoodies implementation of a layout manager for Popup menus. In comparison to the JDK's implementation it flushes the values of the client propertiesmaxTextWidthandmaxAccWidthin the methodinvalidateLayout(Container)and not in the methodBoxLayout.preferredLayoutSize(Container).- Version:
- $Revision: 1.8 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PopupMenuLayout(java.awt.Container target, int axis)Creates a layout manager that will lay out components along the given axis.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvalidateLayout(java.awt.Container target)Indicates that a child has changed its layout related information, and thus any cached calculations should be flushed.
-
-
-
Method Detail
-
invalidateLayout
public void invalidateLayout(java.awt.Container target)
Indicates that a child has changed its layout related information, and thus any cached calculations should be flushed.In case the target is an instance of JPopupMenu it flushes the values of the client properties
maxTextWidthandmaxAccWidth.- Specified by:
invalidateLayoutin interfacejava.awt.LayoutManager2- Overrides:
invalidateLayoutin classjavax.swing.BoxLayout- Parameters:
target- the affected container
-
-