|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
public class 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.
Method Summary | |
---|---|
void |
add(Widget widget)
Adds widget to the Container. |
void |
addListener(ContainerListener listener)
Register an object to handle container events. |
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. |
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 |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
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)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Widget
public EventType getEventType(java.lang.String signal)
getEventType
in class Widget
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |