|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.layout.AbstractLayoutManager com.alee.extended.layout.StackLayout
public class StackLayout
This layout manager allows you to stack components atop of each other. It also allows to hide some of components.
Field Summary | |
---|---|
protected java.util.Map<java.awt.Component,java.lang.String> |
constraints
Saved layout constraints. |
static java.lang.String |
CONTENT
Visible component constraint. |
static java.lang.String |
HIDDEN
Hidden component constraint. |
Constructor Summary | |
---|---|
StackLayout()
Constructs new StackLayout. |
Method Summary | |
---|---|
void |
addComponent(java.awt.Component component,
java.lang.Object constraints)
Caled when component added into container with this layout. |
void |
layoutContainer(java.awt.Container parent)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
|
void |
removeComponent(java.awt.Component component)
Called when component removed from container with this layout. |
Methods inherited from class com.alee.extended.layout.AbstractLayoutManager |
---|
addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, minimumLayoutSize, removeLayoutComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONTENT
public static final java.lang.String HIDDEN
protected java.util.Map<java.awt.Component,java.lang.String> constraints
Constructor Detail |
---|
public StackLayout()
Method Detail |
---|
public void addComponent(java.awt.Component component, java.lang.Object constraints)
addComponent
in class AbstractLayoutManager
component
- added componentconstraints
- component constraintspublic void removeComponent(java.awt.Component component)
removeComponent
in class AbstractLayoutManager
component
- removed componentpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
public void layoutContainer(java.awt.Container parent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |