com.jgoodies.looks.common
Class PopupMenuLayout
java.lang.Object
javax.swing.BoxLayout
com.jgoodies.looks.common.PopupMenuLayout
- All Implemented Interfaces:
- LayoutManager, LayoutManager2, Serializable, UIResource
public final class PopupMenuLayout
- extends BoxLayout
- implements UIResource
The JGoodies implementation of a layout manager for Popup menus
In comparison to the JDK's implementation it flushes the values of the clien
properties maxTextWidth and maxAccWidth i
the method invalidateLayout(Container) and not in the metho
BoxLayout.preferredLayoutSize(Container).
- Version:
- $Revision: 1.8 $
- Author:
- Karsten Lentzsch
- See Also:
- Serialized Form
|
Constructor Summary |
PopupMenuLayout(Container target,
int axis)
Creates a layout manager that will lay out components alon
the given axis. |
|
Method Summary |
void |
invalidateLayout(Container target)
Indicates that a child has changed its layout related information
and thus any cached calculations should be flushed. |
| Methods inherited from class javax.swing.BoxLayout |
addLayoutComponent, addLayoutComponent, getAxis, getLayoutAlignmentX, getLayoutAlignmentY, getTarget, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PopupMenuLayout
public PopupMenuLayout(Container target,
int axis)
- Creates a layout manager that will lay out components alon
the given axis.
- Parameters:
target - the container that needs to be laid outaxis - the axis to lay out components along
invalidateLayout
public void invalidateLayout(Container target)
- Indicates that a child has changed its layout related information
and thus any cached calculations should be flushed
maxTextWidth and maxAccWidth.
- Specified by:
invalidateLayout in interface LayoutManager2- Overrides:
invalidateLayout in class BoxLayout
- Parameters:
target - the affected container
Copyright © 2001-2013 JGoodies Software GmbH. All Rights Reserved.