| |
|
| java.lang.Object javax.swing.AbstractSpinnerModel com.jidesoft.spinner.SpinnerPointModel
Field Summary | |
final public static int | FIELD_X | final public static int | FIELD_Y |
Method Summary | |
public int | getField() | public Object | getNextValue() Return the object in the sequence that comes after the object returned
by getValue() . | public Point | getPoint() The current element of the sequence. | public Object | getPreviousValue() Return the object in the sequence that comes before the object returned
by getValue() . | public Object | getValue() The current element of the sequence. | public void | setField(int field) | public void | setPoint(Point point) | public void | setValue(Object value) Changes current value of the model, typically this value is displayed
by the editor part of a JSpinner .
If the SpinnerModel implementation doesn't support
the specified value then an IllegalArgumentException
is thrown. |
FIELD_X | final public static int FIELD_X(Code) | | |
FIELD_Y | final public static int FIELD_Y(Code) | | |
SpinnerPointModel | public SpinnerPointModel()(Code) | | Create a default SpinnerPointModel
|
SpinnerPointModel | public SpinnerPointModel(Point point)(Code) | | Create a SpinnerPointModel with a specified Point
Parameters: point - this specifiedPoint |
getField | public int getField()(Code) | | |
getNextValue | public Object getNextValue()(Code) | | Return the object in the sequence that comes after the object returned
by getValue() . If the end of the sequence has been reached
then return null. Calling this method does not effect value .
the next legal value or null if one doesn't exist See Also: SpinnerPointModel.getValue See Also: SpinnerPointModel.getPreviousValue |
getPreviousValue | public Object getPreviousValue()(Code) | | Return the object in the sequence that comes before the object returned
by getValue() . If the end of the sequence has been reached then
return null. Calling this method does not effect value .
the previous legal value or null if one doesn't exist See Also: SpinnerPointModel.getValue See Also: SpinnerPointModel.getNextValue |
getValue | public Object getValue()(Code) | | The current element of the sequence. This element is usually
displayed by the editor part of a JSpinner .
the current spinner value. See Also: SpinnerPointModel.setValue |
setField | public void setField(int field)(Code) | | Parameters: field - |
setPoint | public void setPoint(Point point)(Code) | | Parameters: point - |
setValue | public void setValue(Object value)(Code) | | Changes current value of the model, typically this value is displayed
by the 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.
Parameters: value - new value throws: IllegalArgumentException - if value isn't allowed See Also: SpinnerPointModel.getValue |
|
|
|