|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.swing.ButtonRowLayout
public class ButtonRowLayout
This Layout Manager could be used to comfotably layout button rows or similar containers.
It behaves in a similar manner to FlowLayout. All components will be layed out from left to right, but flushed right. All components will have the same size, the largest preferred width.
Constructor Summary | |
---|---|
ButtonRowLayout()
Constructor for ButtonRowLayout. |
|
ButtonRowLayout(int hGap)
Constructor for ButtonRowLayout. |
|
ButtonRowLayout(int hGap,
int top,
int left,
int bottom,
int right)
Constructor for ButtonRowLayout. |
Method Summary | |
---|---|
void |
addLayoutComponent(String name,
Component comp)
|
void |
layoutContainer(Container parent)
|
Dimension |
minimumLayoutSize(Container parent)
|
Dimension |
preferredLayoutSize(Container parent)
|
void |
removeLayoutComponent(Component comp)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@CallOnEDT public ButtonRowLayout()
@CallOnEDT public ButtonRowLayout(int hGap)
hGap
- horizontal gap between the child components@CallOnEDT public ButtonRowLayout(int hGap, int top, int left, int bottom, int right)
hGap
- horizontal gap between the child componentstop
- extra top marginleft
- extra left marginbottom
- extra bottom marginright
- extra right marginMethod Detail |
---|
@CallOnEDT public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
LayoutManager.addLayoutComponent(String, Component)
@CallOnEDT public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
LayoutManager.removeLayoutComponent(Component)
@CallOnEDT public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
LayoutManager.preferredLayoutSize(Container)
@CallOnEDT public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
LayoutManager.minimumLayoutSize(Container)
@CallOnEDT public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
LayoutManager.layoutContainer(Container)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |