Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class MultiBorderLayout extends BorderLayout
BorderLayout to 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.| Modifier and Type | Field and Description |
|---|---|
protected Component |
center |
protected List<Component> |
eastComponents |
protected List<Component> |
northComponents |
protected List<Component> |
southComponents |
protected List<Component> |
westComponents |
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 and Description |
|---|
MultiBorderLayout() |
MultiBorderLayout(int hgap,
int vgap) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component component,
Object name) |
void |
addLayoutComponent(String name,
Component component)
Deprecated.
replaced by
addLayoutComponent(Component, Object). |
protected Dimension |
getLayoutSize(Container target,
boolean minimum) |
void |
layoutContainer(Container target) |
Dimension |
minimumLayoutSize(Container target) |
Dimension |
preferredLayoutSize(Container target) |
static boolean |
remove(Object O,
List<Component> V) |
void |
removeLayoutComponent(Component component) |
getConstraints, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getLayoutComponent, getLayoutComponent, getVgap, invalidateLayout, maximumLayoutSize, setHgap, setVgap, toStringprotected Component center
public MultiBorderLayout()
public MultiBorderLayout(int hgap,
int vgap)
public void addLayoutComponent(Component component, Object name)
addLayoutComponent in interface LayoutManager2addLayoutComponent in class BorderLayout@Deprecated public void addLayoutComponent(String name, Component component)
addLayoutComponent(Component, Object).addLayoutComponent in interface LayoutManageraddLayoutComponent in class BorderLayoutpublic void layoutContainer(Container target)
layoutContainer in interface LayoutManagerlayoutContainer in class BorderLayoutpublic Dimension minimumLayoutSize(Container target)
minimumLayoutSize in interface LayoutManagerminimumLayoutSize in class BorderLayoutpublic Dimension preferredLayoutSize(Container target)
preferredLayoutSize in interface LayoutManagerpreferredLayoutSize in class BorderLayoutpublic void removeLayoutComponent(Component component)
removeLayoutComponent in interface LayoutManagerremoveLayoutComponent in class BorderLayoutCopyright © 2000–2016 AO Industries, Inc.. All rights reserved.