|
||||||||||
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
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.
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
protected |
Container(Handle handle)
|
Method Summary | |
void |
add(Widget widget)
Adds widget to the Container. |
void |
addListener(ContainerListener listener)
Register an object to handle container events. |
protected void |
fireContainerEvent(ContainerEvent event)
|
int |
getBorderWidth()
Retrieves the border width for the Container. |
Widget[] |
getChildren()
Get an array of all children of this container. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
EventType |
getEventType(java.lang.String signal)
|
ResizeMode |
getResizeMode()
Returns the ResizeMode for the Container. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
protected static void |
gtk_container_add(Handle container,
Handle widget)
|
protected static void |
gtk_container_check_resize(Handle container)
|
protected static int |
gtk_container_child_type(Handle container)
|
protected static int |
gtk_container_get_border_width(Handle container)
|
protected static Handle[] |
gtk_container_get_children(Handle container)
|
protected static boolean |
gtk_container_get_focus_chain(Handle container,
Handle focusableWidgets)
|
protected static Handle |
gtk_container_get_focus_hadjustment(Handle container)
|
protected static Handle |
gtk_container_get_focus_vadjustment(Handle container)
|
protected static int |
gtk_container_get_resize_mode(Handle container)
|
protected static int |
gtk_container_get_type()
|
protected static void |
gtk_container_propagate_expose(Handle container,
Handle child,
Handle event)
|
protected static void |
gtk_container_remove(Handle container,
Handle widget)
|
protected static void |
gtk_container_resize_children(Handle container)
|
protected static void |
gtk_container_set_border_width(Handle container,
int borderWidth)
|
protected static void |
gtk_container_set_focus_chain(Handle container,
Handle focusableWidgets)
|
protected static void |
gtk_container_set_focus_child(Handle container,
Handle child)
|
protected static void |
gtk_container_set_focus_hadjustment(Handle container,
Handle adjustment)
|
protected static void |
gtk_container_set_focus_vadjustment(Handle container,
Handle adjustment)
|
protected static void |
gtk_container_set_reallocate_redraws(Handle container,
boolean needsRedraws)
|
protected static void |
gtk_container_set_resize_mode(Handle container,
int mode)
|
protected static void |
gtk_container_unset_focus_chain(Handle container)
|
void |
remove(Widget widget)
Remove a Widget from the Container. |
void |
removeListener(ContainerListener listener)
Removes a listener |
void |
resizeChildren()
Informs the container to resize all of its' children based on the size requirements of the children. |
void |
setBorderWidth(int width)
Sets the border width for the Container. |
void |
setResizeMode(ResizeMode mode)
Sets the ResizeMode for the 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 Container(Handle handle)
Method Detail |
public void add(Widget widget)
widget
- The Widget to be added to this Container.public void remove(Widget widget)
widget
- The Widget to remove from the Container.public ResizeMode getResizeMode()
public void setResizeMode(ResizeMode mode)
mode
- The ResizeMode.public int getBorderWidth()
public void setBorderWidth(int width)
width
- The border width.public void resizeChildren()
public Widget[] getChildren()
public static Type getType()
public void addListener(ContainerListener listener)
ContainerListener
public void removeListener(ContainerListener listener)
addListener(ContainerListener)
protected void fireContainerEvent(ContainerEvent event)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Widget
public EventType getEventType(java.lang.String signal)
getEventType
in class Widget
protected static final int gtk_container_get_type()
protected static final void gtk_container_set_border_width(Handle container, int borderWidth)
protected static final int gtk_container_get_border_width(Handle container)
protected static final void gtk_container_add(Handle container, Handle widget)
protected static final void gtk_container_remove(Handle container, Handle widget)
protected static final void gtk_container_set_resize_mode(Handle container, int mode)
protected static final int gtk_container_get_resize_mode(Handle container)
protected static final void gtk_container_check_resize(Handle container)
protected static final Handle[] gtk_container_get_children(Handle container)
protected static final void gtk_container_propagate_expose(Handle container, Handle child, Handle event)
protected static final void gtk_container_set_focus_chain(Handle container, Handle focusableWidgets)
protected static final boolean gtk_container_get_focus_chain(Handle container, Handle focusableWidgets)
protected static final void gtk_container_unset_focus_chain(Handle container)
protected static final void gtk_container_set_reallocate_redraws(Handle container, boolean needsRedraws)
protected static final void gtk_container_set_focus_child(Handle container, Handle child)
protected static final void gtk_container_set_focus_vadjustment(Handle container, Handle adjustment)
protected static final Handle gtk_container_get_focus_vadjustment(Handle container)
protected static final void gtk_container_set_focus_hadjustment(Handle container, Handle adjustment)
protected static final Handle gtk_container_get_focus_hadjustment(Handle container)
protected static final void gtk_container_resize_children(Handle container)
protected static final int gtk_container_child_type(Handle container)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |