|
JIDE Common Layer 2.7.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractSpinnerModel
com.jidesoft.spinner.SpinnerPointModel
public class SpinnerPointModel
| Field Summary | |
|---|---|
static int |
FIELD_X
|
static int |
FIELD_Y
|
| Fields inherited from class javax.swing.AbstractSpinnerModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
SpinnerPointModel()
Create a default SpinnerPointModel |
|
SpinnerPointModel(java.awt.Point point)
Create a SpinnerPointModel with a specified Point |
|
| Method Summary | |
|---|---|
int |
getField()
|
java.lang.Object |
getNextValue()
Return the object in the sequence that comes after the object returned by getValue(). |
java.awt.Point |
getPoint()
The current element of the sequence. |
java.lang.Object |
getPreviousValue()
Return the object in the sequence that comes before the object returned by getValue(). |
java.lang.Object |
getValue()
The current element of the sequence. |
void |
setField(int field)
|
void |
setPoint(java.awt.Point point)
|
void |
setValue(java.lang.Object value)
Changes current value of the model, typically this value is displayed by the editor part of a
JSpinner. |
| Methods inherited from class javax.swing.AbstractSpinnerModel |
|---|
addChangeListener, fireStateChanged, getChangeListeners, getListeners, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FIELD_X
public static final int FIELD_Y
| Constructor Detail |
|---|
public SpinnerPointModel()
SpinnerPointModel
public SpinnerPointModel(java.awt.Point point)
SpinnerPointModel with a specified Point
point - this specifiedPoint| Method Detail |
|---|
public java.lang.Object getValue()
editor part of
a JSpinner.
setValue(java.lang.Object)public void setValue(java.lang.Object value)
editor part of a
JSpinner. If the SpinnerModel implementation doesn't support the specified value then
an IllegalArgumentException is thrown. For example a SpinnerModel for numbers might
only support values that are integer multiples of ten. In that case, model.setValue(new Number(11))
would throw an exception.
value - new value
java.lang.IllegalArgumentException - if value isn't allowedgetValue()public java.awt.Point getPoint()
editor part of
a JSpinner.
setPoint(Point),
getValue()public void setPoint(java.awt.Point point)
point - public int getField()
public void setField(int field)
field - public java.lang.Object getNextValue()
getValue(). If the end of
the sequence has been reached then return null. Calling this method does not effect value.
getValue(),
getPreviousValue()public java.lang.Object getPreviousValue()
getValue(). If the end
of the sequence has been reached then return null. Calling this method does not effect value.
getValue(),
getNextValue()
|
JIDE Common Layer 2.7.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||