Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
Struct
public abstract class ButtonBox
extends Box
HButtonBox
, VButtonBox
Method Summary | |
boolean |
|
ButtonBoxStyle |
|
static Type |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Box | |
getHomogeneous , getSpacing , getType , packEnd , packEnd , packStart , packStart , reorderChild , setHomogeneous , setSpacing |
Methods inherited from class org.gnu.gtk.Container | |
add , addListener , getBorderWidth , getChildren , getEventListenerClass , getEventType , getResizeMode , getType , remove , removeListener , resizeChildren , setBorderWidth , setResizeMode |
public boolean getChildSecondary(Widget child)
Gets whether the child appears in a secondary group of children.
public ButtonBoxStyle getLayout()
Returns the layout which is used to dictate how the buttons are organised.
public void setChildSecondary(Widget child, boolean isSecondary)
Sets whether child should appear in a secondary group of children. A typical use of a secondary child is the help button in a dialog. This group appears after the other children if the style is ButtonBoxStyle.START, ButtonBoxStyle.SPREAD or ButtonBoxStyle.EDGE, and before the the other children if the style is ButtonBoxStyle.END. For horizontal button boxes, the definition of before/after depends on direction of the widget (see widget.setDirection). If the style is ButtonBoxStyle.START or ButtonBoxStyle.END, then the secondary children are aligned at the other end of the button box from the main children. For the other styles, they appear immediately next to the main children.
- Parameters:
child
- A child widget of this button box.isSecondary
- If TRUE, the child appears in a secondary group of the button box.
public void setLayout(ButtonBoxStyle layout)
Changes the way buttons are arranged in their container.
- Parameters:
layout
- The new layout style.