|
java-gnome version 4.0.15 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
Objectorg.freedesktop.bindings.Pointer
org.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Object
org.gnome.gtk.Widget
org.gnome.gtk.Container
org.gnome.gtk.Bin
org.gnome.gtk.Viewport
public class Viewport
An adapter that allows a large Widget to only have a limited view be
presented. Specifically, Viewports are for scrolling. Generally you don't
need to create one of these yourself; you can add your Widget to a
ScrolledWindow in one step with
addWithViewport().
| 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 |
| Constructor Summary | |
|---|---|
Viewport(Adjustment hadjustment,
Adjustment vadjustment)
Construct a Viewport, specifying the Adjustment objects used to control the panning. |
|
| Method Summary | |
|---|---|
Adjustment |
getHAdjustment()
Get the Adjustment that is being used to drive the horizontal extent of the region of the child Widget being shown. |
ShadowType |
getShadowType()
Get the decorationc currently set for this Viewport. |
Adjustment |
getVAdjustment()
Get the Adjustment that is being used to drive the vertical extent of the region of the child Widget being shown. |
void |
setShadowType(ShadowType type)
Set the type of decoration you want around the Viewport. |
| Methods inherited from class org.gnome.gtk.Bin |
|---|
getChild |
| 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, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll |
| Methods inherited from class org.freedesktop.bindings.Pointer |
|---|
toString |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Viewport(Adjustment hadjustment,
Adjustment vadjustment)
addWithViewport() instead of constructing a Viewport manually.
| Method Detail |
|---|
public Adjustment getHAdjustment()
public ShadowType getShadowType()
public Adjustment getVAdjustment()
public void setShadowType(ShadowType type)
The default value is IN. This is quite unheplful,
since you're usually using these transparently care of ScrolledWindow's
addWithViewport() and ScrolledWindow's also have a
ShadowType setting. So, as a convenience, if you created this Viewport
that way, it will set this Viewport's ShadowType to
NONE to hide it, and you can just use a single
call to ScrolledWindow's
setShadowType() on the
local variable of that type you'll already have.
|
![]() java-gnome |
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||