Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
public class Container
extends Widget
Method Summary | |
void | |
void |
|
boolean |
|
int |
|
Value |
|
Widget[] |
|
Class |
|
EventType |
|
int |
|
ResizeMode |
|
static Type |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public void add(Widget widget)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Adds widget to the Container.
- Parameters:
widget
- The Widget to be added to this Container.
public void addListener(ContainerListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Register an object to handle container events.
- See Also:
ContainerListener
public boolean getBooleanChildProperty(Widget child, String name)
Deprecated.
Convenience method for retrieving boolean child properties.
- 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.
public int getBorderWidth()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieves the border width for the Container.
- Returns:
- The border width.
public Value getChildProperty(Widget child, String name)
Get theorg.gnu.glib.Value
of the given child property (name). Container introduces child properties - these are object properties that are not specific to either the container or the contained widget, but rather to their relation. Typical examples of child properties are the position or pack-type of a widget which is contained in a Box. 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.
public Widget[] getChildren()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Get an array of all children of this container.
- Returns:
- An array contain all children of this container or null.
public Class getEventListenerClass(String signal)
- Overrides:
- getEventListenerClass in interface Widget
public int getIntChildProperty(Widget child, String name)
Deprecated.
Convenience method for retrieving int child properties.
- 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.
public ResizeMode getResizeMode()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the ResizeMode for the Container.
- Returns:
- The ResizeMode for the Container.
public static Type getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.
public void remove(Widget widget)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Remove a Widget from the Container.
- Parameters:
widget
- The Widget to remove from the Container.
public void removeListener(ContainerListener listener)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Removes a listener
- See Also:
addListener(ContainerListener)
public void resizeChildren()
Deprecated.
Informs the container to resize all of its' children based on the size requirements of the children.
public void setBooleanChildProperty(Widget child, String name, boolean value)
Deprecated.
Convenience method for setting boolean child properties.
- 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.
public void setBorderWidth(int width)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the border width for the Container.
- Parameters:
width
- The border width.
public void setChildProperty(Widget child, String name, Value val)
Deprecated.
Set the given child property (name) with the givenorg.gnu.glib.Value
in this container. Container introduces child properties - these are object properties that are not specific to either the container or the contained widget, but rather to their relation. Typical examples of child properties are the position or pack-type of a widget which is contained in a Box. 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.
public void setIntChildProperty(Widget child, String name, int value)
Deprecated.
Convenience method for setting int child properties.
- 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.
public void setResizeMode(ResizeMode mode)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the ResizeMode for the Container.
- Parameters:
mode
- The ResizeMode.