public final class PopupMenuLayout
extends javax.swing.BoxLayout
implements javax.swing.plaf.UIResource
maxTextWidth
and maxAccWidth
in
the method invalidateLayout(Container)
and not in the method
BoxLayout.preferredLayoutSize(Container)
.Constructor and Description |
---|
PopupMenuLayout(java.awt.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(java.awt.Container target)
Indicates that a child has changed its layout related information,
and thus any cached calculations should be flushed.
|
public PopupMenuLayout(java.awt.Container target, int axis)
target
- the container that needs to be laid outaxis
- the axis to lay out components alongpublic void invalidateLayout(java.awt.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 java.awt.LayoutManager2
invalidateLayout
in class javax.swing.BoxLayout
target
- the affected containerCopyright © 2001-2009 JGoodies Karsten Lentzsch. All Rights Reserved.