Please note that this translation of the specification is the result of a java.net community project ( https://jdk5-api-pt-br.dev.java.net/ ). The official version of the specification is the US English language version which can be found at http://java.sun.com/j2se/1.5.0/docs/api/. In case of disputes, the authoritative version of the specification is the original, English document.
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.BoxLayout
javax.swing.plaf.basic.DefaultMenuLayout
public class DefaultMenuLayout
The default layout manager for Popup menus and menubars. This class is an extension of BoxLayout which adds the UIResource tag so that plauggable L&Fs can distinguish it from user-installed layout managers on menus.
| Field Summary |
|---|
| Fields inherited from class javax.swing.BoxLayout |
|---|
LINE_AXIS, PAGE_AXIS, X_AXIS, Y_AXIS |
| Constructor Summary | |
|---|---|
DefaultMenuLayout(Container target,
int axis)
|
|
| Method Summary | |
|---|---|
Dimension |
preferredLayoutSize(Container target)
Returns the preferred dimensions for this layout, given the components in the specified target container. |
| Methods inherited from class javax.swing.BoxLayout |
|---|
addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, layoutContainer, maximumLayoutSize, minimumLayoutSize, removeLayoutComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMenuLayout(Container target,
int axis)
| Method Detail |
|---|
public Dimension preferredLayoutSize(Container target)
BoxLayout
preferredLayoutSize in interface LayoutManagerpreferredLayoutSize in class BoxLayouttarget - the container that needs to be laid out
Container,
BoxLayout.minimumLayoutSize(java.awt.Container),
BoxLayout.maximumLayoutSize(java.awt.Container)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
Copyright 2006 Sun Microsystems, Inc. Todos os direitos reservados. O uso está sujeito aos termos da licensa.