com.appperfect.devcommon.script.javaelement
Interface SwingSlider

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

public interface SwingSlider
extends SwingComponent

SwingSlider is created to represent javax.swing.JSlider component

The following code fragment illustrates how to create an SwingSlider element.

 var element = engine.createSwingSlider(1, 5);
 
where engine is object of IScriptEngine


Method Summary
 int getMaximum()
 Returns the maximum value supported by the slider.
 int getMinimum()
 Returns the minimum value supported by the slider.
 int getValue()
 Returns the sliders value.
 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 setValue(int value)
 To set the sliders value.
 
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

getMaximum

int getMaximum()
Returns the maximum value supported by the slider.

Returns:
the value of the models maximum property

getMinimum

int getMinimum()
Returns the minimum value supported by the slider.

Returns:
the value of the models minimum property

getValue

int getValue()
Returns the sliders value.

Returns:
the models value property

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

setValue

boolean setValue(int value)
To set the sliders value.

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


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