Package com.aoindustries.awt
Class MultiBorderLayout
- java.lang.Object
-
- java.awt.BorderLayout
-
- com.aoindustries.awt.MultiBorderLayout
-
- All Implemented Interfaces:
LayoutManager,LayoutManager2,Serializable
public class MultiBorderLayout extends BorderLayout
OverridesBorderLayoutto support multiple components in all of the four borders. Only one component is allowed in the Center. Components are added from North to South and West to East.- Author:
- AO Industries, Inc.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Componentcenterprotected List<Component>eastComponentsprotected List<Component>northComponentsprotected List<Component>southComponentsprotected List<Component>westComponents-
Fields inherited from class java.awt.BorderLayout
AFTER_LAST_LINE, AFTER_LINE_ENDS, BEFORE_FIRST_LINE, BEFORE_LINE_BEGINS, CENTER, EAST, LINE_END, LINE_START, NORTH, PAGE_END, PAGE_START, SOUTH, WEST
-
-
Constructor Summary
Constructors Constructor Description MultiBorderLayout()MultiBorderLayout(int hgap, int vgap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddLayoutComponent(Component component, Object name)voidaddLayoutComponent(String name, Component component)Deprecated.replaced byaddLayoutComponent(Component, Object).protected DimensiongetLayoutSize(Container target, boolean minimum)voidlayoutContainer(Container target)DimensionminimumLayoutSize(Container target)DimensionpreferredLayoutSize(Container target)static booleanremove(Object O, List<Component> V)voidremoveLayoutComponent(Component component)-
Methods inherited from class java.awt.BorderLayout
getConstraints, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getLayoutComponent, getLayoutComponent, getVgap, invalidateLayout, maximumLayoutSize, setHgap, setVgap, toString
-
-
-
-
Method Detail
-
addLayoutComponent
public void addLayoutComponent(Component component, Object name)
- Specified by:
addLayoutComponentin interfaceLayoutManager2- Overrides:
addLayoutComponentin classBorderLayout
-
addLayoutComponent
@Deprecated public void addLayoutComponent(String name, Component component)
Deprecated.replaced byaddLayoutComponent(Component, Object).- Specified by:
addLayoutComponentin interfaceLayoutManager- Overrides:
addLayoutComponentin classBorderLayout
-
layoutContainer
public void layoutContainer(Container target)
- Specified by:
layoutContainerin interfaceLayoutManager- Overrides:
layoutContainerin classBorderLayout
-
minimumLayoutSize
public Dimension minimumLayoutSize(Container target)
- Specified by:
minimumLayoutSizein interfaceLayoutManager- Overrides:
minimumLayoutSizein classBorderLayout
-
preferredLayoutSize
public Dimension preferredLayoutSize(Container target)
- Specified by:
preferredLayoutSizein interfaceLayoutManager- Overrides:
preferredLayoutSizein classBorderLayout
-
removeLayoutComponent
public void removeLayoutComponent(Component component)
- Specified by:
removeLayoutComponentin interfaceLayoutManager- Overrides:
removeLayoutComponentin classBorderLayout
-
-