java-gnome version 4.0.7

org.gnome.gtk
Class Range

java.lang.Object
  extended by org.freedesktop.bindings.Proxy
      extended by org.gnome.glib.Object
          extended by org.gnome.gtk.Object
              extended by org.gnome.gtk.Widget
                  extended by org.gnome.gtk.Range
Direct Known Subclasses:
Scale, Scrollbar

public abstract class Range
extends Widget

Base class for Widgets which present an adjustable quantity in some form of slider. The most obvious feature of this class is the ability to manage the "value" being shown by the Widget, but there are also facilities for exercising fine-grained control over the behaviour of the Widget when the user attempts to adjust the slider.

Since:
4.0.6
Author:
Andrew Cowie

Nested Class Summary
static interface Range.VALUE_CHANGED
          The value showing in the Range instance has changed.
 
Nested classes/interfaces inherited from class org.gnome.gtk.Widget
Widget.BUTTON_PRESS_EVENT, Widget.BUTTON_RELEASE_EVENT, Widget.ENTER_NOTIFY_EVENT, Widget.EXPOSE_EVENT, Widget.FOCUS_IN_EVENT, Widget.FOCUS_OUT_EVENT, Widget.HIDE, Widget.KEY_PRESS_EVENT, Widget.KEY_RELEASE_EVENT, Widget.LEAVE_NOTIFY_EVENT, Widget.UNMAP_EVENT, Widget.VISIBILITY_NOTIFY_EVENT
 
Method Summary
 void connect(Range.VALUE_CHANGED handler)
          Connect a VALUE_CHANGED handler to this Range instance.
 double getValue()
          Retreive the value currently indicated by this Range instance.
 void setValue(double value)
          Change the value showingin the Range.
 
Methods inherited from class org.gnome.gtk.Widget
activate, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getHasFocus, getParent, getRequisition, getToplevel, getWindow, grabFocus, hide, modifyBackground, modifyText, setCanFocus, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll
 
Methods inherited from class org.freedesktop.bindings.Proxy
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

connect

public void connect(Range.VALUE_CHANGED handler)
Connect a VALUE_CHANGED handler to this Range instance.

Since:
4.0.6

getValue

public double getValue()
Retreive the value currently indicated by this Range instance.

Since:
4.0.6

setValue

public void setValue(double value)
Change the value showingin the Range. As you would expect, the VALUE_CHANGED signal will be emitted if the new value is different from the present setting.

Since:
4.0.6


java-gnome