|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Box
org.gnu.gtk.ButtonBox
This is the base class that holds the common functions for GtkHButtonBox and GtkVButtonBox. These are container widgets specifically designed to manage a collection of buttons. GtkButtonBox has a number of control functions that you can use to set the sizes and positions of the buttons.
HButtonBox
,
VButtonBox
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
protected |
ButtonBox(Handle handle)
|
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. |
protected static boolean |
gtk_button_box_get_child_secondary(Handle widget,
Handle child)
|
protected static int |
gtk_button_box_get_layout(Handle widget)
|
protected static int |
gtk_button_box_get_type()
|
protected static void |
gtk_button_box_set_child_secondary(Handle widget,
Handle child,
boolean isSecondary)
|
protected static void |
gtk_button_box_set_layout(Handle widget,
int layoutStyle)
|
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. |
Methods inherited from class org.gnu.gtk.GtkObject |
getFlags, gtk_object_destroy, gtk_object_get_type, gtk_object_sink, setFlags, sink |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ButtonBox(Handle handle)
Method Detail |
public ButtonBoxStyle getLayout()
public void setLayout(ButtonBoxStyle layout)
layout
- The new layout style.public void setChildSecondary(Widget child, boolean isSecondary)
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.
child
- A child widget of this button box.isSecondary
- If TRUE, the child appears in a secondary group of the button box.public boolean getChildSecondary(Widget child)
public static Type getType()
protected static final int gtk_button_box_get_type()
protected static final int gtk_button_box_get_layout(Handle widget)
protected static final void gtk_button_box_set_layout(Handle widget, int layoutStyle)
protected static final void gtk_button_box_set_child_secondary(Handle widget, Handle child, boolean isSecondary)
protected static final boolean gtk_button_box_get_child_secondary(Handle widget, Handle child)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |