The Container widget is a base class for container widgets.
Widgets that inherit from Container have the ability to contain,
position, size, and display one or more other widgets.
add
public void add(Widget widget)
Adds widget to the Container.
widget
- The Widget to be added to this Container.
fireContainerEvent
protected void fireContainerEvent(ContainerEvent event)
getBorderWidth
public int getBorderWidth()
Retrieves the border width for the Container.
- The border width.
getChildren
public Widget[] getChildren()
Get an array of all children of this container.
- An array contain all children of this container or null.
getEventListenerClass
public Class getEventListenerClass(String signal)
- getEventListenerClass in interface Widget
getEventType
public EventType getEventType(String signal)
- getEventType in interface Widget
getResizeMode
public ResizeMode getResizeMode()
Returns the ResizeMode for the Container.
- The ResizeMode for the Container.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Widget
gtk_container_add
protected static final void gtk_container_add(Handle container,
Handle widget)
gtk_container_check_resize
protected static final void gtk_container_check_resize(Handle container)
gtk_container_child_type
protected static final int gtk_container_child_type(Handle container)
gtk_container_get_border_width
protected static final int gtk_container_get_border_width(Handle container)
gtk_container_get_children
protected static final Handle[] gtk_container_get_children(Handle container)
gtk_container_get_focus_chain
protected static final boolean gtk_container_get_focus_chain(Handle container,
Handle focusableWidgets)
gtk_container_get_focus_hadjustment
protected static final Handle gtk_container_get_focus_hadjustment(Handle container)
gtk_container_get_focus_vadjustment
protected static final Handle gtk_container_get_focus_vadjustment(Handle container)
gtk_container_get_resize_mode
protected static final int gtk_container_get_resize_mode(Handle container)
gtk_container_get_type
protected static final int gtk_container_get_type()
gtk_container_propagate_expose
protected static final void gtk_container_propagate_expose(Handle container,
Handle child,
Handle event)
gtk_container_remove
protected static final void gtk_container_remove(Handle container,
Handle widget)
gtk_container_resize_children
protected static final void gtk_container_resize_children(Handle container)
gtk_container_set_border_width
protected static final void gtk_container_set_border_width(Handle container,
int borderWidth)
gtk_container_set_focus_chain
protected static final void gtk_container_set_focus_chain(Handle container,
Handle focusableWidgets)
gtk_container_set_focus_child
protected static final void gtk_container_set_focus_child(Handle container,
Handle child)
gtk_container_set_focus_hadjustment
protected static final void gtk_container_set_focus_hadjustment(Handle container,
Handle adjustment)
gtk_container_set_focus_vadjustment
protected static final void gtk_container_set_focus_vadjustment(Handle container,
Handle adjustment)
gtk_container_set_reallocate_redraws
protected static final void gtk_container_set_reallocate_redraws(Handle container,
boolean needsRedraws)
gtk_container_set_resize_mode
protected static final void gtk_container_set_resize_mode(Handle container,
int mode)
gtk_container_unset_focus_chain
protected static final void gtk_container_unset_focus_chain(Handle container)
remove
public void remove(Widget widget)
Remove a Widget from the Container.
widget
- The Widget to remove from the Container.
resizeChildren
public void resizeChildren()
Informs the container to resize all of its' children based
on the size requirements of the children.
setBorderWidth
public void setBorderWidth(int width)
Sets the border width for the Container.
width
- The border width.
setResizeMode
public void setResizeMode(ResizeMode mode)
Sets the ResizeMode for the Container.
mode
- The ResizeMode.