org.gnu.gtk
Class Container

java.lang.Object
  |
  +--org.gnu.glib.GObject
        |
        +--org.gnu.gtk.GtkObject
              |
              +--org.gnu.gtk.Widget
                    |
                    +--org.gnu.gtk.Container
Direct Known Subclasses:
Bin, Box, Fixed, Layout, MenuShell, Notebook, Paned, Table, TextView, ToolBar, TreeView

public class Container
extends Widget

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.
 java.lang.Class getEventListenerClass(java.lang.String signal)
           
 GtkEventType 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.Widget
activate, addListener, addListener, addListener, addListener, addListener, addListener, createContext, createLayout, destroy, draw, drawArea, drawArea, getAccessible, getColormap, getContext, getModifierStyle, getName, getParent, getParentWindow, getPointer, getSensitive, getStyle, getToplevel, grabDefault, grabFocus, hasFocus, hide, hideAll, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setColormap, setDoubleBuffered, setDragDestination, setDragSource, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public void add(Widget widget)
Adds widget to the Container.

Parameters:
widget - The Widget to be added to this Container.

remove

public void remove(Widget widget)
Remove a Widget from the Container.

Parameters:
widget - The Widget to remove from the Container.

getResizeMode

public ResizeMode getResizeMode()
Returns the ResizeMode for the Container.

Returns:
The ResizeMode for the Container.

setResizeMode

public void setResizeMode(ResizeMode mode)
Sets the ResizeMode for the Container.

Parameters:
mode - The ResizeMode.

getBorderWidth

public int getBorderWidth()
Retrieves the border width for the Container.

Returns:
The border width.

setBorderWidth

public void setBorderWidth(int width)
Sets the border width for the Container.

Parameters:
width - The border width.

resizeChildren

public void resizeChildren()
Informs the container to resize all of its' children based on the size requirements of the children.


getType

public static Type getType()
Retrieve the runtime type used by the GLib library.


addListener

public void addListener(ContainerListener listener)
Register an object to handle container events.

See Also:
ContainerListener

removeListener

public void removeListener(ContainerListener listener)
Removes a listener

See Also:
addListener(ContainerListener)

getEventListenerClass

public java.lang.Class getEventListenerClass(java.lang.String signal)
Overrides:
getEventListenerClass in class Widget

getEventType

public GtkEventType getEventType(java.lang.String signal)
Overrides:
getEventType in class Widget

Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net