|
||||||||||
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.Bin
org.gnu.gtk.Viewport
A Viewport is a container that does not resize to fit in the space allocated to it. Instead, it adds scrollbars as necessary so you can view any part of the window.
Constructor Summary | |
Viewport(Adjustment hadj,
Adjustment vadj)
Construct a new Viewport with the given Adjustments. |
|
Viewport(org.gnu.glib.Handle handle)
Construct a Viewport using a handle to a native resource. |
Method Summary | |
Adjustment |
getHAdjustment()
Returns the horizontal Viewport's Adjustment. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
Adjustment |
getVAdjustment()
Returns the vertical Viewport's Adjustment. |
static Viewport |
getViewport(org.gnu.glib.Handle handle)
Internal static factory method to be used by Java-Gnome only. |
void |
setHAdjustment(Adjustment hadj)
Sets the horizontal Viewport's Adjustment. |
void |
setVAdjustment(Adjustment vadj)
Sets the vertical Viewport's Adjustment. |
Methods inherited from class org.gnu.gtk.Bin |
getChild |
Methods inherited from class org.gnu.gtk.Container |
add, addListener, getBorderWidth, getChildren, getEventListenerClass, getEventType, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, 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 |
Constructor Detail |
public Viewport(Adjustment hadj, Adjustment vadj)
hadj
- The horizontal Adjustment to use for the Viewport.vadj
- The vertical Adjustment to use for the Viewport.public Viewport(org.gnu.glib.Handle handle)
Method Detail |
public static Viewport getViewport(org.gnu.glib.Handle handle)
public Adjustment getHAdjustment()
public void setHAdjustment(Adjustment hadj)
hadj
- The horizontal Adjustment.public Adjustment getVAdjustment()
public void setVAdjustment(Adjustment vadj)
vadj
- The vertical Adjustment.public static Type getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |