|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SwingSpinner
SwingSpinner is created to represent javax.swing.JSpinner component
The following code fragment illustrates how to create an
SwingSpinner
element.
var element = engine.createSwingSpinner(1, 5);where engine is object of
IScriptEngine
Method Summary | |
---|---|
java.lang.String |
getCurrentValue()
Returns the current value of the model, typically this value is displayed by the editor. |
java.lang.String |
getNextValue()
Returns the object in the sequence that comes after the object returned by getCurrentValue() . |
java.lang.String |
getPreviousValue()
Returns the object in the sequence that comes before the object returned by getCurrentValue() . |
boolean |
next(int count)
To set the next value after specified index count. |
boolean |
prev(int count)
To set the previous value before specified index count. |
boolean |
setCurrentValue(java.lang.String value)
set the current value of the model, typically this value is displayed by the editor. |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.AwtContainer |
---|
getComponentCount |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.JavaComponent |
---|
activate, addAttribute, captureImage, click, close, dblClick, drag, drop, getName, getText, getToolTipText, maximize, minimize, mouseMove, restore, rightClick, set, setBreakPoint, setIgnored, setImagePath, setName, setThinkTime, setTitle, type |
Methods inherited from interface com.appperfect.devcommon.script.IScript |
---|
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout |
Method Detail |
---|
java.lang.String getCurrentValue()
java.lang.String getNextValue()
getCurrentValue()
. If the end of the sequence has been
reached then return null
.
null
if one doesn't existjava.lang.String getPreviousValue()
getCurrentValue()
. If the end of the sequence has been
reached then return null
.
null
if one doesn't
existboolean next(int count)
count
- count after current value
boolean prev(int count)
count
- count before current value
boolean setCurrentValue(java.lang.String value)
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |