Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.ViewportLayout
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Method Summary | |
void | addLayoutComponent(java.lang.String name,
java.awt.Component c)
Adds the specified component to the layout. |
void | layoutContainer(java.awt.Container parent)
Called by the AWT when the specified container needs to be laid out. |
java.awt.Dimension | minimumLayoutSize(java.awt.Container parent)
Returns the minimum dimensions needed to layout the components contained in the specified target container. |
java.awt.Dimension | preferredLayoutSize(java.awt.Container parent)
Returns the preferred dimensions for this layout given the components in the specified target container. |
void | removeLayoutComponent(java.awt.Component c)
Removes the specified component from the layout. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Method Detail |
public void addLayoutComponent(java.lang.String name, java.awt.Component c)
name
- the name of the component
comp
- the the component to be addedpublic void removeLayoutComponent(java.awt.Component c)
comp
- the component to removepublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
target
- the component which needs to be laid outpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
target
- the component which needs to be laid outpublic void layoutContainer(java.awt.Container parent)
parent
- the container to lay outOverview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |