public final class PopupMenuLayout extends BoxLayout implements UIResource
maxTextWidth and maxAccWidth in
the method invalidateLayout(Container) and not in the method
BoxLayout.preferredLayoutSize(Container).| Constructor and Description |
|---|
PopupMenuLayout(Container target,
int axis)
Creates a layout manager that will lay out components along
the given axis.
|
| Modifier and Type | Method and Description |
|---|---|
void |
invalidateLayout(Container target)
Indicates that a child has changed its layout related information,
and thus any cached calculations should be flushed.
|
addLayoutComponent, addLayoutComponent, getAxis, getLayoutAlignmentX, getLayoutAlignmentY, getTarget, layoutContainer, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, removeLayoutComponentpublic PopupMenuLayout(Container target, int axis)
target - the container that needs to be laid outaxis - the axis to lay out components alongpublic void invalidateLayout(Container target)
In case the target is an instance of JPopupMenu it flushes the values of
the client properties maxTextWidth and maxAccWidth.
invalidateLayout in interface LayoutManager2invalidateLayout in class BoxLayouttarget - the affected containerCopyright © 2001-2014 JGoodies Software GmbH. All Rights Reserved.