|
|||||||||
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.gnu.gtk.Paned
public class Paned
Paned is the base class for widgets with two panes arranged either horizontally (HPaned) or vertically (VPaned). The division between the two children is set by default from the size request of the children but can be adjusted by the user.
HPaned
,
VPaned
Method Summary | |
---|---|
void |
add1(Widget child)
Add a child to the top or left pane with default parameters. |
void |
add2(Widget child)
Add a child to the bottom or right pane with default parameters. |
Widget |
getChild1()
|
Widget |
getChild2()
|
static Paned |
getPaned(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only. |
int |
getPosition()
Get the position of the divider between the two panes. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
void |
pack1(Widget child,
boolean resize,
boolean shrink)
Adds a child to the top or left pane. |
void |
pack2(Widget child,
boolean resize,
boolean shrink)
Adds a child to the bottom or right pane. |
void |
setPosition(int position)
Set the position of the divider between the two panes. |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
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 static Paned getPaned(org.gnu.glib.Handle handle)
public void add1(Widget child)
child
- The child Widget to add.public void add2(Widget child)
child
- The child Widget to add.public void pack1(Widget child, boolean resize, boolean shrink)
child
- The child Widget to add.resize
- Should this child expand when the widget is resized.shrink
- can this child be made smaller than its request.public void pack2(Widget child, boolean resize, boolean shrink)
child
- The child Widget to add.resize
- Should this child expand when the widget is resized.shrink
- can this child be made smaller than its request.public void setPosition(int position)
position
- The pixel position of the divider; a negative value means that
the position is unset.public int getPosition()
public Widget getChild1()
public Widget getChild2()
public static Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |