|
|||||||||
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
org.gnome.gtk.Container
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
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)
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. |
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. |
boolean |
getBooleanChildProperty(Widget child,
java.lang.String name)
Deprecated. |
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. |
org.gnu.glib.Value |
getChildProperty(Widget child,
java.lang.String name)
Deprecated. Get the Value of the given child property (name). |
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. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
Deprecated. |
org.gnu.glib.EventType |
getEventType(java.lang.String signal)
Deprecated. |
int |
getIntChildProperty(Widget child,
java.lang.String name)
Deprecated. |
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. |
static org.gnu.glib.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. |
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. |
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. |
void |
resizeChildren()
Deprecated. |
void |
setBooleanChildProperty(Widget child,
java.lang.String name,
boolean value)
Deprecated. |
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. |
void |
setChildProperty(Widget child,
java.lang.String name,
org.gnu.glib.Value val)
Deprecated. |
void |
setIntChildProperty(Widget child,
java.lang.String name,
int value)
Deprecated. |
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. |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify |
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 setChildProperty(Widget child, java.lang.String name, org.gnu.glib.Value val)
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.
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, java.lang.String name, int value)
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.setChildProperty( Widget, String, Value )
public void setBooleanChildProperty(Widget child, java.lang.String name, boolean value)
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.setChildProperty( Widget, String, Value )
public org.gnu.glib.Value getChildProperty(Widget child, java.lang.String name)
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.
child
- A widget which is a child of container.name
- The name of the child property to retrieve.
public int getIntChildProperty(Widget child, java.lang.String name)
child
- A widget which is a child of container.name
- The name of the property to retrieve.
public boolean getBooleanChildProperty(Widget child, java.lang.String name)
child
- A widget which is a child of container.name
- The name of the property to retrieve.
public void resizeChildren()
public Widget[] getChildren()
public static org.gnu.glib.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 org.gnu.glib.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 |