|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.BoxLayout
com.jgoodies.looks.common.PopupMenuLayout
public final class PopupMenuLayout
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
BoxLayout.preferredLayoutSize(Container)
.
Field Summary |
---|
Fields inherited from class javax.swing.BoxLayout |
---|
LINE_AXIS, PAGE_AXIS, X_AXIS, Y_AXIS |
Constructor Summary | |
---|---|
PopupMenuLayout(java.awt.Container target,
int axis)
Creates a layout manager that will lay out components along the given axis. |
Method Summary | |
---|---|
void |
invalidateLayout(java.awt.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 |
Constructor Detail |
---|
public PopupMenuLayout(java.awt.Container target, int axis)
target
- the container that needs to be laid outaxis
- the axis to lay out components alongMethod Detail |
---|
public 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 container
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |