org.gnu.gtk
public class ScrolledWindow extends Bin
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.ScrolledWindow
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
The ScrolledWindow works in two ways. Some Widgets have native scrolling support; these widgets have "slots" for 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 | |
---|---|
ScrolledWindow(Adjustment hadj, Adjustment vadj)
Create a new ScrolledWindow object. | |
ScrolledWindow()
Creates a new ScrolledWindow object. | |
ScrolledWindow(Handle handle)
Construct a ScrolledWindow using a handle to a native resource. |
Method Summary | |
---|---|
void | addWithViewport(Widget child)
Used to add children without native scrolling capability. |
Adjustment | getHAdjustment()
Returns the horizontal Scrollbar's Adjustment. |
HScrollBar | getHScrollBar()
Return the horizontal ScrollBar. |
static ScrolledWindow | getScrolledWindow(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
static Type | getType()
Retrieve the runtime type used by the GLib library. |
Adjustment | getVAdjustment()
Returns the vertical Scrollbar's Adjustment. |
VScrollBar | getVScrollBar()
Return the vertical ScrollBar. |
void | setHAdjustment(Adjustment hadj)
Sets the horizontal Scrollbar's Adjustment.
|
void | setPlacement(CornerType windowPlacement)
Determines the location of the child widget with respect to the
scrollbars. |
void | setPolicy(PolicyType hScrollBarPolicy, PolicyType vScrollBarPolicy)
Sets the scrollbar policy for the horizontal and vertical scrollbars. |
void | setShadowType(ShadowType type)
Changes the type of shadow drawn around the contents of the
ScrolledWindow.
|
void | setVAdjustment(Adjustment vadj)
Sets the vertical Scrollbar's Adjustment.
|
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.
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 generates Adjustments automatically.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.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.
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.
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.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.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.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.
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.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.
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.
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.
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.
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.