com.appperfect.devcommon.script.javaelement
Interface AwtWindow

All Superinterfaces:
AwtComponent, AwtContainer, IScript, JavaComponent
All Known Subinterfaces:
AwtDialog, AwtFileDialog, AwtFrame, SwingDialog, SwingFrame, SwingWindow

public interface AwtWindow
extends AwtContainer

AwtWindow is created to represent java.awt.Window component

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

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


Method Summary
 boolean hide()
 Hide this Window, its subcomponents, and all of its owned children.
 boolean isActive()
 Returns whether this Window is active.
 boolean show()
 Makes the Window visible.
 
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

hide

boolean hide()
Hide this Window, its subcomponents, and all of its owned children. The Window and its subcomponents can be made visible again with a call to show.

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

isActive

boolean isActive()
Returns whether this Window is active. Only a Frame or a Dialog may be active. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

Returns:
whether this is the active Window.

show

boolean show()
Makes the Window visible. If the Window and/or its owner are not yet displayable, both are made displayable. The Window will be validated prior to being made visible. If the Window is already visible, this will bring the Window to the front.

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


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