org.gnu.gtk
public class Container extends Widget
Method Summary | |
---|---|
void | add(Widget widget)
Adds widget to the Container.
|
void | addListener(ContainerListener listener)
Register an object to handle container events.
|
boolean | getBooleanChildProperty(Widget child, String name)
Convenience method for retrieving boolean child properties.
|
int | getBorderWidth()
Retrieves the border width for the Container.
|
Value | getChildProperty(Widget child, String name)
Get the Value of the given child property (name).
|
Widget[] | getChildren()
Get an array of all children of this container.
|
Class | getEventListenerClass(String signal) |
EventType | getEventType(String signal) |
int | getIntChildProperty(Widget child, String name)
Convenience method for retrieving int child properties.
|
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 | setBooleanChildProperty(Widget child, String name, boolean value)
Convenience method for setting boolean child properties.
|
void | setBorderWidth(int width)
Sets the border width for the Container.
|
void | setChildProperty(Widget child, String name, Value val)
Set the given child property (name) with the given Value in this container. |
void | setIntChildProperty(Widget child, String name, int value)
Convenience method for setting int child properties.
|
void | setResizeMode(ResizeMode mode)
Sets the ResizeMode for the Container.
|
Parameters: widget The Widget to be added to this Container.
See Also: ContainerListener
Parameters: child A widget which is a child of container. name The name of the property to retrieve.
Returns: The value of the given child property.
Returns: The border width.
NOTE: Prefer using one of the convenience methods over using this method directly.
Parameters: child A widget which is a child of container. name The name of the child property to retrieve.
Returns: The value of the given child property.
Returns: An array contain all children of this container or null.
Parameters: child A widget which is a child of container. name The name of the property to retrieve.
Returns: The value of the given child property.
Returns: The ResizeMode for the Container.
Parameters: widget The Widget to remove from the Container.
See Also: addListener
Parameters: child A widget which is a child of container. name The name of the property to set. value The value to set in the property.
See Also: Container
Parameters: width The border width.
NOTE: Prefer using one of the convenience methods over using this method directly.
Parameters: child a widget which is a child of container. name The name of the property to set. val The value to set in the property.
Parameters: child A widget which is a child of container. name The name of the property to set. value The value to set in the property.
See Also: Container
Parameters: mode The ResizeMode.