com.appperfect.devcommon.script.javaelement
Interface SwingSpinner

All Superinterfaces:
AwtComponent, AwtContainer, IScript, JavaComponent, SwingComponent

public interface SwingSpinner
extends SwingComponent

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

getCurrentValue

java.lang.String getCurrentValue()
Returns the current value of the model, typically this value is displayed by the editor.

Returns:
the current value of the model

getNextValue

java.lang.String getNextValue()
Returns the object in the sequence that comes after the object returned by getCurrentValue(). If the end of the sequence has been reached then return null.

Returns:
the next legal value or null if one doesn't exist

getPreviousValue

java.lang.String getPreviousValue()
Returns the object in the sequence that comes before the object returned by getCurrentValue(). If the end of the sequence has been reached then return null.

Returns:
the previous legal value or null if one doesn't exist

next

boolean next(int count)
To set the next value after specified index count.

Parameters:
count - count after current value
Returns:
true if event was executed successfully, returns false if there is any failure during execution

prev

boolean prev(int count)
To set the previous value before specified index count.

Parameters:
count - count before current value
Returns:
true if event was executed successfully, returns false if there is any failure during execution

setCurrentValue

boolean setCurrentValue(java.lang.String value)
set the current value of the model, typically this value is displayed by the editor.

Returns:
true if event was executed successfully, returns false if there is any failure during execution


Copyright © 2003-2011 AppPerfect Corporation. All Rights Reserved.