org.gnu.gtk
public abstract class ButtonBox extends Box
See Also: HButtonBox VButtonBox
Method Summary | |
---|---|
boolean | getChildSecondary(Widget child)
Gets whether the child appears in a secondary group of children. |
ButtonBoxStyle | getLayout()
Returns the layout which is used to dictate how the buttons are
organised. |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | setChildSecondary(Widget child, boolean isSecondary)
Sets whether child should appear in a secondary group of children. |
void | setLayout(ButtonBoxStyle layout)
Changes the way buttons are arranged in their container.
|
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.
Parameters: layout The new layout style.