Package com.hp.lft.sdk.java
Interface Window
- All Superinterfaces:
Clickable,DoubleClickable,EnabledProvider,LocationInfoProvider,SupportsNativeObject,TestObject,TestObjectDescriber,TopLevelObject,UiObjectBase,VisibleProvider,WaitUntilEnabledProvider,WaitUntilVisibleProvider
- All Known Subinterfaces:
Dialog,InternalFrame
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Activates the window.voidclose()Closes the window.getTitle()Returns the window title.Returns the window state.booleanIndicates whether the object is a Java window.booleanIndicates whether the window can be maximized.booleanIndicates whether the window can be minimized.booleanIndicates whether the window is resizable.voidmaximize()Maximizes the window to fill the screen.voidminimize()Minimizes the window to an icon.voidmove(int x, int y) Moves the window to the specified location on the screen.voidMoves the window to the specified location relative to the screen.voidresize(int width, int height) Resizes the window to the specified dimensions.voidResizes the window to the specified dimensions.voidrestore()Restores the window to its previous size.Methods inherited from interface com.hp.lft.sdk.DoubleClickable
doubleClick, doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describeMethods inherited from interface com.hp.lft.sdk.java.UiObjectBase
createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
-
Method Details
-
activate
Activates the window.- Throws:
GeneralLeanFtException- if error occurs during execution
-
close
Closes the window.- Throws:
GeneralLeanFtException- if error occurs during execution
-
maximize
Maximizes the window to fill the screen.- Throws:
GeneralLeanFtException- if error occurs during execution
-
minimize
Minimizes the window to an icon.- Throws:
GeneralLeanFtException- if error occurs during execution
-
move
Moves the window to the specified location relative to the screen.- Parameters:
point- pixel location relative to the screen.- Throws:
GeneralLeanFtException- if error occurs during execution
-
move
Moves the window to the specified location on the screen.- Parameters:
x- in pixels.y- in pixels.- Throws:
GeneralLeanFtException- if error occurs during execution
-
resize
Resizes the window to the specified dimensions.- Parameters:
size- a Dimension object.- Throws:
GeneralLeanFtException- if error occurs during execution
-
resize
Resizes the window to the specified dimensions.- Parameters:
width- in pixels.height- in pixels.- Throws:
GeneralLeanFtException- if error occurs during execution
-
restore
Restores the window to its previous size.- Throws:
GeneralLeanFtException- if error occurs during execution
-
isJavaWindow
Indicates whether the object is a Java window.- Returns:
- true if a Java window.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
isMaximizable
Indicates whether the window can be maximized.- Returns:
- true if can be maximized.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getWindowState
Returns the window state.- Returns:
- the window state.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
isMinimizable
Indicates whether the window can be minimized.- Returns:
- true if can be minimized.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
isResizable
Indicates whether the window is resizable.- Returns:
- true if resizable.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getTitle
Returns the window title.- Returns:
- the window title.
- Throws:
GeneralLeanFtException- if error occurs during execution
-