com.jgoodies.looks.common
Class PopupMenuLayout
BoxLayout
com.jgoodies.looks.common.PopupMenuLayout
- 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 client
properties
maxTextWidth
and
maxAccWidth
in
the method
invalidateLayout(Container)
and not in the method
preferredLayoutSize(Container)
.
PopupMenuLayout(Container target, int axis) - Creates a layout manager that will lay out components along
the given axis.
|
void | invalidateLayout(Container target) - Indicates that a child has changed its layout related information,
and thus any cached calculations should be flushed.
|
PopupMenuLayout
public PopupMenuLayout(Container target,
int axis)
Creates a layout manager that will lay out components along
the given axis.
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.
In case the target is an instance of JPopupMenu it flushes the values of
the client properties
maxTextWidth
and
maxAccWidth
.
target
- the affected container
Copyright © 2001-2008 JGoodies Karsten Lentzsch. All Rights Reserved.