java-gnome version 4.0.19

org.gnome.gtk
Class VBox

Object
  extended by org.freedesktop.bindings.Pointer
      extended by org.freedesktop.bindings.Proxy
          extended by org.gnome.glib.Object
              extended by org.gnome.gtk.Object
                  extended by org.gnome.gtk.Widget
                      extended by org.gnome.gtk.Container
                          extended by org.gnome.gtk.Box
                              extended by org.gnome.gtk.VBox
Direct Known Subclasses:
ColorSelection, FileChooserWidget, FontSelection, RecentChooserWidget

public class VBox
extends Box

A Container which holds a variable number of Widgets in a single vertical row. All the children of this VBox are allocated the same width - that of the widest Widget packed into the VBox.

A VBox is almost always the first thing (and only thing, of course) added to a new Window; doing so gives you a natural mechanism to layout the contents of a Window in logical sequence from Menu through to Buttons and Statusbar.

All the methods you need add widgets to VBoxes and to manipulate their characteristics are on parent class Box. See its packStart() as a good first step.

Since:
4.0.1
Author:
Andrew Cowie
See Also:
HBox

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gnome.gtk.Widget
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.EnterNotifyEvent, Widget.ExposeEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.ScrollEvent, Widget.UnmapEvent, Widget.VisibilityNotifyEvent
 
Nested classes/interfaces inherited from class org.gnome.gtk.Object
Object.Destroy
 
Constructor Summary
VBox(boolean homogeneous, int spacing)
          Creates a new VBox.
 
Method Summary
 
Methods inherited from class org.gnome.gtk.Box
getSpacing, packEnd, packStart, reorderChild, setSpacing
 
Methods inherited from class org.gnome.gtk.Container
add, getChildren, remove, setBorderWidth
 
Methods inherited from class org.gnome.gtk.Widget
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getRequisition, getSensitive, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, realize, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll
 
Methods inherited from class org.gnome.gtk.Object
connect, destroy
 
Methods inherited from class org.freedesktop.bindings.Pointer
toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VBox

public VBox(boolean homogeneous,
            int spacing)
Creates a new VBox.

Parameters:
homogeneous - If true, all children will be given equal space allotments.
spacing - the number of pixels to place (by default) between children.


java-gnome