|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Entry
org.gnu.gtk.SpinButton
org.gnome.gtk.SpinButton
.
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.
public class SpinButton
A SpinButton widget displays a single numeric value that you can change by using the two arrow buttons to its right, or by editing the number directly.
Constructor Summary | |
---|---|
SpinButton(Adjustment adjustment,
double climbRate,
int digits)
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. |
|
SpinButton(double min,
double max,
double step)
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. |
|
SpinButton(org.gnu.glib.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. |
Method Summary | |
---|---|
void |
addListener(SpinListener listener)
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. |
void |
configure(Adjustment adjustment,
double climbRate,
int digits)
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. |
Adjustment |
getAdjustment()
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. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
Deprecated. |
org.gnu.glib.EventType |
getEventType(java.lang.String signal)
Deprecated. |
int |
getIntValue()
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. |
static SpinButton |
getSpinButton(org.gnu.glib.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. |
static org.gnu.glib.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. |
double |
getValue()
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. |
void |
removeListener(SpinListener listener)
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. |
void |
setAdjustment(Adjustment 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. |
void |
setIncrements(double step,
double page)
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. |
void |
setNumeric(boolean numeric)
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. |
void |
setPrecision(int digits)
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. |
void |
setRange(double min,
double max)
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. |
void |
setSnap(boolean snapToTicks)
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. |
void |
setUpdatePolicy(SpinButtonUpdatePolicy policy)
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. |
void |
setValue(double value)
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. |
void |
setWrap(boolean wrap)
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. |
void |
spin(SpinType direction,
double increment)
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. |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpinButton(Adjustment adjustment, double climbRate, int digits)
adjustment
- The Adjustment
object that this spin button should
use.climbRate
- Specifies how much the spin button changes when an arrow is
clicked on.digits
- The number of decimal places to display.public SpinButton(double min, double max, double step)
min
- Minimum allowable valuemax
- Maximum allowable valuestep
- Increment added or subtracted by spinning the widgetpublic SpinButton(org.gnu.glib.Handle handle)
Method Detail |
---|
public static SpinButton getSpinButton(org.gnu.glib.Handle handle)
public void configure(Adjustment adjustment, double climbRate, int digits)
adjustment
- An Adjustment
object to use.climbRate
- The new climb rate.digits
- The number of decimal places to display in the spin button.public void setAdjustment(Adjustment adjustment)
adjustment
- New adjustment object to usepublic Adjustment getAdjustment()
public void setPrecision(int digits)
digits
- Number of digits to be displayedpublic void setIncrements(double step, double page)
step
- Increment applied for a button 1 press.page
- Increment applied for a button 2 press.public void setRange(double min, double max)
min
- Minimum allowable value.max
- Maximum allowable value.public int getIntValue()
getValue()
.
public void setValue(double value)
value
- The value for the SpinButtonpublic void setUpdatePolicy(SpinButtonUpdatePolicy policy)
policy
- An update Policypublic void spin(SpinType direction, double increment)
direction
- A SpinType
indicating the direction to spin.increment
- Step increment to apply in the specified direction.public void setWrap(boolean wrap)
wrap
- If true, the value will wrappublic void setSnap(boolean snapToTicks)
snapToTicks
- A flag indicating if invalid values should be corrected.public double getValue()
public void setNumeric(boolean numeric)
numeric
- Set the flag to true or false.public void addListener(SpinListener listener)
SpinListener
public void removeListener(SpinListener listener)
addListener(SpinListener)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class Entry
public org.gnu.glib.EventType getEventType(java.lang.String signal)
getEventType
in class Entry
public static org.gnu.glib.Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |