com.appperfect.devcommon.script.javaelement
Interface SwingCheckBoxMenuItem

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

public interface SwingCheckBoxMenuItem
extends SwingComponent

SwingCheckBoxMenuItem is created to represent javax.swing.JCheckBoxMenuItem component

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

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


Method Summary
 boolean check()
 To set the selection state of the checkbox menu item
 boolean getState()
 To get the current selection state of the checkbox menu item
 boolean select()
 To select the checkbox menu item.
 boolean unCheck()
 To unset the selection state of the checkbox menu item
 
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 the checkbox menu item

Returns:
true if successful, false otherwise

getState

boolean getState()
To get the current selection state of the checkbox menu item

Returns:
true if successful, false otherwise

select

boolean select()
To select the checkbox menu item.

Returns:
true if successful, false otherwise

unCheck

boolean unCheck()
To unset the selection state of the checkbox menu item

Returns:
true if successful, false otherwise


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