public class ButtonRowLayout extends Object implements LayoutManager
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 and Description |
---|
ButtonRowLayout()
Constructor for ButtonRowLayout.
|
ButtonRowLayout(int hGap)
Constructor for ButtonRowLayout.
|
ButtonRowLayout(int hGap,
int top,
int left,
int bottom,
int right)
Constructor for ButtonRowLayout.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(String name,
Component comp) |
void |
layoutContainer(Container parent) |
Dimension |
minimumLayoutSize(Container parent) |
Dimension |
preferredLayoutSize(Container parent) |
void |
removeLayoutComponent(Component comp) |
@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 margin@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)
Copyright © 2024 levigo holding gmbh. All rights reserved.