|
JUICe | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lafros.juice.app.DialogLayout
public class DialogLayout
layout-manager featuring the ability to position GUI-components depending on their type.
AbstractButton
s are layed out in a
single, centred row, and given equal size.
JPanel
s, JScrollPane
s and
JSeparator
s are each given the full width of the
Container
.
Note that this class is based on one described in the book 'Swing' (first edition) by Matthew Robinson and Pavel Vorobiev. (See http://www.manning.com.)
Constructor Summary | |
---|---|
DialogLayout()
creates new instance. |
|
DialogLayout(int hGap,
int vGap)
creates new instance. |
Method Summary | |
---|---|
void |
addLayoutComponent(String name,
Component comp)
impl'ts LayoutManager . |
int |
getHGap()
horizontal gap between Component s/pixels. |
int |
getVGap()
vertical gap between Component s/pixels. |
void |
layoutContainer(Container parent)
impl'ts LayoutManager . |
Dimension |
minimumLayoutSize(Container parent)
impl'ts LayoutManager . |
Dimension |
preferredLayoutSize(Container parent)
impl'ts LayoutManager . |
void |
removeLayoutComponent(Component comp)
impl'ts LayoutManager . |
String |
toString()
overrides Object . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DialogLayout()
public DialogLayout(int hGap, int vGap)
hGap
- horizontal gap between Component
s/pixelsvGap
- vertical gap between Component
s/pixelsMethod Detail |
---|
public void addLayoutComponent(String name, Component comp)
LayoutManager
.
addLayoutComponent
in interface LayoutManager
public void removeLayoutComponent(Component comp)
LayoutManager
.
removeLayoutComponent
in interface LayoutManager
public Dimension preferredLayoutSize(Container parent)
LayoutManager
.
preferredLayoutSize
in interface LayoutManager
public Dimension minimumLayoutSize(Container parent)
LayoutManager
.
minimumLayoutSize
in interface LayoutManager
public void layoutContainer(Container parent)
LayoutManager
.
layoutContainer
in interface LayoutManager
public int getHGap()
Component
s/pixels.
public int getVGap()
Component
s/pixels.
public String toString()
Object
.
toString
in class Object
|
JUICe | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |