|
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.ScrolledWindow
public class ScrolledWindow
Add scrollbars to a Widget. There are times when you have a Widget which is larger than the area you wish to constrain it to, and the usual way to deal with this is to enhance the Widget with scrollbars. ScrolledWindow is a Bin which enables you to control the scrollbars added in such cases.
Some Widgets have built in support for scrolling; in such cases you add
them directly with the usual add() method;
however, if other Widgets need to be enhanced to support scrolling; in such
cases you must nest it inside a Viewport; use
addWithViewport() as a quick way to
achieve this.
This is very poorly named. It is not a subclass of Window; it refers instead to a viewport scrolling around on an underlying canvas.
| 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 | |
|---|---|
ScrolledWindow()
Construct a ScrolledWindow. |
|
| Method Summary | |
|---|---|
void |
add(Widget child)
Add a child Widget to this Container. |
void |
addWithViewport(Widget child)
Create a new Viewport and embeds the child Widget in it before adding it to the ScrolledWindow. |
Adjustment |
getHAdjustment()
Get the Adjustment that is being used to drive the horizontal position of the scroll bar on the bottom edge of this ScrolledWindow. |
Scrollbar |
getHScrollbar()
Get the Scrollbar Widget that is being used to draw the horizontal scroll bar on the bottom edge of this ScrolledWindow. |
ShadowType |
getShadowType()
Get the decoration currently set for this ScrolledWindow. |
Adjustment |
getVAdjustment()
Get the Adjustment that is being used to drive the vertical position of the scroll bar on the right hand side of this ScrolledWindow. |
Scrollbar |
getVScrollbar()
Get the Scrollbar Widget that is being used to draw the vertical scroll bar on the right hand side of this ScrolledWindow. |
void |
setPolicy(PolicyType hscrollbarPolicy,
PolicyType vscrollbarPolicy)
Set the scrollbar policy for the horizontal and vertical scrollbars. |
void |
setShadowType(ShadowType type)
Set the type of decoration you want around the child Widget in the ScrolledWindow. |
| Methods inherited from class org.gnome.gtk.Bin |
|---|
getChild |
| Methods inherited from class org.gnome.gtk.Container |
|---|
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 ScrolledWindow()
| Method Detail |
|---|
public void add(Widget child)
Container
add in class Containerpublic void addWithViewport(Widget child)
add() directly for those
Widgets that do.
As a convienience, calling this method will set the ShadowType of the
created Viewport to NONE, meaning that if you do want a
decoration, you can achieve it in a single place here with a call to
ScrolledWindow's setShadowType().
public Adjustment getHAdjustment()
public Scrollbar getHScrollbar()
public ShadowType getShadowType()
public Adjustment getVAdjustment()
public Scrollbar getVScrollbar()
public void setPolicy(PolicyType hscrollbarPolicy,
PolicyType vscrollbarPolicy)
public void setShadowType(ShadowType type)
NONE.
|
![]() java-gnome |
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||