Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.ScrolledWindow
public class ScrolledWindow
extends Bin
Adjustment
objects.
For Widgets that lack native scrolling support the Viewport
Widget
acts as an adaptor class, implementing scrollability for child Widgets that
lack their own scrolling capability.
If a Widget has native scrolling capabilities it can be added with the
add
method. If a Widget does not, you must first add the
Widget to a Viewport
and then add the Viewport
to the ScrolledWindow. The convenience method
addWithViewport
does exactly this, so you can ignore the presence of the
Viewport
.
The position of the scrollbars is controlled by the scroll adjustments. See
Adjustment
for details on how to determine the position of the
layout.
Constructor Summary | |
| |
| |
|
Method Summary | |
void |
|
Adjustment |
|
HScrollBar |
|
static ScrolledWindow |
|
static Type |
|
Adjustment |
|
VScrollBar |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Container | |
add , addListener , getBooleanChildProperty , getBorderWidth , getChildProperty , getChildren , getEventListenerClass , getEventType , getIntChildProperty , getResizeMode , getType , remove , removeListener , resizeChildren , setBooleanChildProperty , setBorderWidth , setChildProperty , setIntChildProperty , setResizeMode |
public ScrolledWindow()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Creates a new ScrolledWindow object. This constuctor generatesAdjustment
s automatically.
public ScrolledWindow(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Construct a ScrolledWindow using a handle to a native resource.
public ScrolledWindow(Adjustment hadj, Adjustment vadj)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Create a new ScrolledWindow object. The two arguments are the ScrolledWindow'sAdjustments
; these will be shared with the scrollbars and the child widgets to keep the bars in sync with the child.
- Parameters:
hadj
- The horizontal Adjustment.vadj
- The vertical Adjustment.
public void addWithViewport(Widget child)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Used to add children without native scrolling capability. This is simply a convenience method, it is equivalent to adding the unscrollable child to a Viewport, then adding the Viewport to the ScrolledWindow.
- Parameters:
child
- The Widget to add to the ScrolledWindow.
public Adjustment getHAdjustment()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the horizontal Scrollbar's Adjustment. This can be used to connect the horizontal Scrollbar to the child Widget's horizontal scroll functionality.
- Returns:
- The horizontal Scrollbar's Adjustment.
public HScrollBar getHScrollBar()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Return the horizontal ScrollBar.
public static ScrolledWindow getScrolledWindow(Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Internal static factory method to be used by Java-Gnome only.
public static Type getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Retrieve the runtime type used by the GLib library.
public Adjustment getVAdjustment()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the vertical Scrollbar's Adjustment. This can be used to connect the vertical Scrollbar to the child Widget's vertical scroll functionality.
- Returns:
- The vertical Scrollbar's Adjustment.
public VScrollBar getVScrollBar()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Return the vertical ScrollBar.
public void setHAdjustment(Adjustment hadj)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the horizontal Scrollbar's Adjustment.
- Parameters:
hadj
- The horizontal Adjustment.
public void setPlacement(CornerType windowPlacement)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Determines the location of the child widget with respect to the scrollbars. The default is CORNER_TOP_LEFT, meaning the child is in the top left, with the scrollbar underneath and to the right.
- Parameters:
windowPlacement
- The placement for the child widget.
public void setPolicy(PolicyType hScrollBarPolicy, PolicyType vScrollBarPolicy)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the scrollbar policy for the horizontal and vertical scrollbars. The policy determines when the scrollbar should appear.
- Parameters:
hScrollBarPolicy
- The policy for the horizontal ScrollBar.vScrollBarPolicy
- The policy for the vertical ScrollBar.
public void setShadowType(ShadowType type)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Changes the type of shadow drawn around the contents of the ScrolledWindow.
- Parameters:
type
- The type of shadow to draw.
public void setVAdjustment(Adjustment vadj)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the vertical Scrollbar's Adjustment.
- Parameters:
vadj
- The vertical Adjustment.