com.appperfect.devcommon.script.javaelement
Interface SwingCheckbox

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

public interface SwingCheckbox
extends SwingComponent

SwingCheckbox is created to represent javax.swing.JCheckbox component

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

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


Method Summary
 boolean check()
 To set the selection state of checkbox to true
 boolean getState()
 To get the current state of checkbox
 boolean unCheck()
 To set the selection state of checkbox to false
 
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

check

boolean check()
To set the selection state of checkbox to true

Returns:
true if successful, false otherwise

getState

boolean getState()
To get the current state of checkbox

Returns:
true if selected, false otherwise

unCheck

boolean unCheck()
To set the selection state of checkbox to false

Returns:
true if successful, false otherwise


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