|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.gtk.GtkObject | +--org.gnu.gtk.Widget | +--org.gnu.gtk.Container | +--org.gnu.gtk.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. |
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, getBorderWidth, getEventListenerClass, getEventType, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode |
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 |
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 static Type getType()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |