|
|||||||||||
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.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(int 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. |
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, 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 |
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(int handle)
Method Detail |
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()
|
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 |