|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.matthiasmann.twl.DialogLayout.Group
public abstract class DialogLayout.Group
| Constructor Summary | |
|---|---|
DialogLayout.Group()
|
|
| Method Summary | |
|---|---|
void |
addDefaultGap()
Add a default gap between all children except if the neighbour is already a Gap. |
DialogLayout.Group |
addGap()
Adds a flexible gap with no minimum size. |
DialogLayout.Group |
addGap(int size)
Adds a fixed sized gap. |
DialogLayout.Group |
addGap(int min,
int pref,
int max)
Adds a generic gap. |
DialogLayout.Group |
addGap(java.lang.String name)
Adds a named gap. |
DialogLayout.Group |
addGroup(DialogLayout.Group g)
Adds another group. |
DialogLayout.Group |
addGroups(DialogLayout.Group... groups)
Adds several groups. |
DialogLayout.Group |
addMinGap(int minSize)
Adds a gap with minimum size. |
DialogLayout.Group |
addWidget(Widget w)
Adds a widget to this group. |
DialogLayout.Group |
addWidget(Widget w,
Alignment alignment)
Adds a widget to this group. |
DialogLayout.Group |
addWidgets(Widget... widgets)
Adds several widgets to this group. |
DialogLayout.Group |
addWidgetsWithGap(java.lang.String gapName,
Widget... widgets)
Adds several widgets to this group, inserting the specified gap in between. |
void |
clear(boolean removeWidgets)
Removes all elements from this group |
void |
removeDefaultGaps()
Remove all default gaps from this and child groups |
boolean |
removeGroup(DialogLayout.Group g,
boolean removeWidgets)
Removes the specified group from this group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DialogLayout.Group()
| Method Detail |
|---|
public DialogLayout.Group addGroup(DialogLayout.Group g)
g - the child Group
public DialogLayout.Group addGroups(DialogLayout.Group... groups)
groups - the groups to add
public DialogLayout.Group addWidget(Widget w)
If the widget is already a child widget of the DialogLayout then it
keeps it current settings, otherwise it is added the alignment is set
to Alignment.FILL.
w - the child widget.
Widget.add(de.matthiasmann.twl.Widget)
public DialogLayout.Group addWidget(Widget w,
Alignment alignment)
If the widget is already a child widget of the DialogLayout then it it's alignment is set to the specified value overwriting any current alignment setting, otherwise it is added to the DialogLayout.
w - the child widget.alignment - the alignment of the child widget.
Widget.add(de.matthiasmann.twl.Widget),
DialogLayout.setWidgetAlignment(de.matthiasmann.twl.Widget, de.matthiasmann.twl.Alignment)public DialogLayout.Group addWidgets(Widget... widgets)
widgets - The widgets which should be added.
public DialogLayout.Group addWidgetsWithGap(java.lang.String gapName,
Widget... widgets)
gapName - the name of the gap to insert between widgetswidgets - The widgets which should be added.
public DialogLayout.Group addGap(int min,
int pref,
int max)
min - the minimum size in pixels or a symbolic constantpref - the preferred size in pixels or a symbolic constantmax - the maximum size in pixels or a symbolic constant
DialogLayout.SMALL_GAP,
DialogLayout.MEDIUM_GAP,
DialogLayout.LARGE_GAP,
DialogLayout.DEFAULT_GAPpublic DialogLayout.Group addGap(int size)
size - the size in pixels or a symbolic constant
DialogLayout.SMALL_GAP,
DialogLayout.MEDIUM_GAP,
DialogLayout.LARGE_GAP,
DialogLayout.DEFAULT_GAPpublic DialogLayout.Group addMinGap(int minSize)
minSize - the minimum size in pixels or a symbolic constant
DialogLayout.SMALL_GAP,
DialogLayout.MEDIUM_GAP,
DialogLayout.LARGE_GAP,
DialogLayout.DEFAULT_GAPpublic DialogLayout.Group addGap()
This is equivalent to addGap(0, 0, Short.MAX_VALUE)
public DialogLayout.Group addGap(java.lang.String name)
Named gaps are configured via the theme parameter "namedGaps" which maps from names to <gap> objects.
They behave equal to addGap(int, int, int).
name - the name of the gap (vcase sensitive)
public void removeDefaultGaps()
public void addDefaultGap()
public boolean removeGroup(DialogLayout.Group g,
boolean removeWidgets)
g - the group to removeremoveWidgets - if true all widgets in the specified group
should be removed from the DialogLayout
public void clear(boolean removeWidgets)
removeWidgets - if true all widgets in this group are removed
from the DialogLayout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||