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 TypeMethodDescriptionvoid
activate()
Activates the window.void
close()
Closes the window.getTitle()
Returns the window title.Returns the window state.boolean
Indicates whether the object is a Java window.boolean
Indicates whether the window can be maximized.boolean
Indicates whether the window can be minimized.boolean
Indicates whether the window is resizable.void
maximize()
Maximizes the window to fill the screen.void
minimize()
Minimizes the window to an icon.void
move
(int x, int y) Moves the window to the specified location on the screen.void
Moves the window to the specified location relative to the screen.void
resize
(int width, int height) Resizes the window to the specified dimensions.void
Resizes the window to the specified dimensions.void
restore()
Restores the window to its previous size.Methods inherited from interface com.hp.lft.sdk.DoubleClickable
doubleClick, doubleClick, doubleClick
Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabled
Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSize
Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObject
Methods 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, waitUntilExists
Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
Methods inherited from interface com.hp.lft.sdk.java.UiObjectBase
createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeys
Methods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisible
Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
Methods 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
-