|
||||||||||
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.MultiLayout
public class MultiLayout
Custom layout that allows multiply layout strategies to be applied to single container.
Field Summary | |
---|---|
protected java.util.List<java.awt.LayoutManager> |
layoutManagers
Applied layout managers list. |
Constructor Summary | |
---|---|
MultiLayout()
Constructs new MultiLayout. |
Method Summary | |
---|---|
void |
addComponent(java.awt.Component component,
java.lang.Object constraints)
Caled when component added into container with this layout. |
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
void |
addLayoutManager(java.awt.LayoutManager layoutManager)
Adds applied layout manager. |
java.util.List<java.awt.LayoutManager> |
getLayoutManagers()
Returns applied layout managers. |
void |
invalidateLayout(java.awt.Container parent)
|
void |
layoutContainer(java.awt.Container parent)
|
java.awt.Dimension |
maximumLayoutSize(java.awt.Container parent)
|
java.awt.Dimension |
minimumLayoutSize(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. |
void |
removeLayoutComponent(java.awt.Component comp)
|
void |
removeLayoutManager(java.awt.LayoutManager layoutManager)
Removes applied layout manager. |
void |
setLayoutManagers(java.util.List<java.awt.LayoutManager> layoutManagers)
Sets applied layout managers. |
Methods inherited from class com.alee.extended.layout.AbstractLayoutManager |
---|
getLayoutAlignmentX, getLayoutAlignmentY |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<java.awt.LayoutManager> layoutManagers
Constructor Detail |
---|
public MultiLayout()
Method Detail |
---|
public java.util.List<java.awt.LayoutManager> getLayoutManagers()
public void setLayoutManagers(java.util.List<java.awt.LayoutManager> layoutManagers)
layoutManagers
- new applied layout managerspublic void addLayoutManager(java.awt.LayoutManager layoutManager)
layoutManager
- applied layout manager to addpublic void removeLayoutManager(java.awt.LayoutManager layoutManager)
layoutManager
- applied layout manager to removepublic void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
addLayoutComponent
in class AbstractLayoutManager
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
addLayoutComponent
in class AbstractLayoutManager
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
removeLayoutComponent
in class AbstractLayoutManager
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 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
minimumLayoutSize
in class AbstractLayoutManager
public java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
maximumLayoutSize
in interface java.awt.LayoutManager2
maximumLayoutSize
in class AbstractLayoutManager
public void invalidateLayout(java.awt.Container parent)
invalidateLayout
in interface java.awt.LayoutManager2
invalidateLayout
in class AbstractLayoutManager
public void layoutContainer(java.awt.Container parent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |