Package com.hp.lft.sdk.powerbuilder
Interface Window
- All Superinterfaces:
Clickable
,DoubleClickable
,EnabledProvider
,LocationInfoProvider
,SupportDragAndDrop
,SupportSendKeys
,TestObject
,TestObjectDescriber
,TopLevelObject
,UiObjectBase
,UiObjectBase
,UiObjectWithLayoutInfo
,VisibleProvider
,WaitUntilEnabledProvider
,WaitUntilVisibleProvider
A PowerBuilder window.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate()
Activates the window.void
activate
(MouseButton button) Activates the window using the specified mouse button.void
close()
Closes the window.The current window state.boolean
Indicates whether the window has a thin-line border.boolean
Indicates whether the window has a title bar.boolean
Indicates whether the window has a sizing border.boolean
Indicates whether the window has a window menu on its title bar.boolean
isActive()
Indicates whether the window is the foreground object (currently active).boolean
Indicates whether the window is a child window.boolean
Indicates whether the window can be maximized.boolean
Indicates whether the window is a multiple-document interface (MDI) child window.boolean
Indicates whether the window can be minimized.boolean
Indicates whether the window has an owner window.boolean
Indicates whether the window is a pop-up window.boolean
Indicates whether the window is a tool window (a floating toolbar).boolean
Indicates whether the window is placed above all non-topmost windows and remains in place, even when the window is deactivated.void
maximize()
Maximizes the window.void
minimize()
Minimizes the window to an icon.void
move
(int x, int y) Moves the window to the specified absolute location on the screen with X,Y coordinates.void
Moves the window to the specified absolute location on the screen with a Point object.void
resize
(int width, int height) Resizes the window to the specified dimensions by width and height values.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.SupportDragAndDrop
dragAndDropOn, dragAndDropOn
Methods inherited from interface com.hp.lft.sdk.SupportSendKeys
sendKeys, sendKeys
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.powerbuilder.UiObjectBase
getAttachedText, getObjectName, getText, getWindowClassRegExp, getWindowExtendedStyle, getWindowId, getWindowStyle
Methods inherited from interface com.hp.lft.sdk.UiObjectBase
getHandle, getNativeClass, getWindowTitleRegExp, isFocused, mouseMove
Methods inherited from interface com.hp.lft.sdk.powerbuilder.UiObjectWithLayoutInfo
isRightAligned, isRightToLeftLayout, isRightToLeftReading
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
-
isActive
Indicates whether the window is the foreground object (currently active).- Returns:
- true when the window is the foreground object (currently active).
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
hasBorder
Indicates whether the window has a thin-line border.- Returns:
- true when the window has a thin-line border.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
hasCaption
Indicates whether the window has a title bar.- Returns:
- true when the window has a title bar.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
hasSizebox
Indicates whether the window has a sizing border.- Returns:
- true when the window has a sizing border.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
hasSystemMenu
Indicates whether the window has a window menu on its title bar.- Returns:
- true when the window has a window menu on its title bar.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isOwnedWindow
Indicates whether the window has an owner window.- Returns:
- true when the window has an owner window.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isChildWindow
Indicates whether the window is a child window.- Returns:
- true when the window is a child window.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isMdiChildWindow
Indicates whether the window is a multiple-document interface (MDI) child window.- Returns:
- true when the window is a multiple-document interface (MDI) child window.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isPopupWindow
Indicates whether the window is a pop-up window.- Returns:
- true when the window is a pop-up window..
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isToolWindow
Indicates whether the window is a tool window (a floating toolbar).- Returns:
- indicates whether the window is a tool window (a floating toolbar).
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isMaximizable
Indicates whether the window can be maximized.- Returns:
- true when the window can be maximized.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
isMinimizable
Indicates whether the window can be minimized.- Returns:
- true when the window can be minimized.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getWindowState
The current window state. Possible values:WindowState
.- Returns:
- the current window state. Possible values:
WindowState
. - Throws:
GeneralLeanFtException
- if error occurs during execution
-
isTopmost
Indicates whether the window is placed above all non-topmost windows and remains in place, even when the window is deactivated.- Returns:
- true when the window is placed above all non-topmost windows and remains in place, even when the window is deactivated..
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
activate
Activates the window.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
activate
Activates the window using the specified mouse button.- Parameters:
button
- the mouse button used to click the window. Possible values:MouseButton
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
close
Closes the window.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
maximize
Maximizes the window.- 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 absolute location on the screen with a Point object.- Parameters:
point
- absolute pixel location (X,Y) on the screen- Throws:
GeneralLeanFtException
- if error occurs during execution
-
move
Moves the window to the specified absolute location on the screen with X,Y coordinates.- Parameters:
x
- the X coordinate to move to.y
- the Y coordinate to move to.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
resize
Resizes the window to the specified dimensions.- Parameters:
size
- the size to resize to (in pixels).- Throws:
GeneralLeanFtException
- if error occurs during execution
-
resize
Resizes the window to the specified dimensions by width and height values.- Parameters:
width
- the width value (in pixels).height
- the height value (in pixels).- Throws:
GeneralLeanFtException
- if error occurs during execution
-
restore
Restores the window to its previous size.- Throws:
GeneralLeanFtException
- if error occurs during execution
-