Package com.hp.lft.sdk.uiapro
Interface WindowPattern
public interface WindowPattern
The methods and properties used to interact with a window control.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
close()
Attempts to close the current window.boolean
boolean
boolean
isModal()
boolean
void
maximize()
Sets the window visual state to WindowVisualState.Maximizedvoid
minimize()
Sets the window visual state to WindowVisualState.Minimizedvoid
restore()
Sets the window visual state to WindowVisualState.Normalvoid
waitForInputIdle
(int milliseconds) Causes the calling code to block for the specified time or until the associated process enters an idle state, whichever completes first.
-
Method Details
-
canMaximize
- Returns:
- Indicates whether the UIA Pro element can be maximized.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
canMinimize
- Returns:
- Indicates whether the UIA Pro element can be minimized.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
isModal
- Returns:
- Indicates whether the UIA Pro element is modal.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
isTopmost
- Returns:
- Indicates whether the UIA Pro element is the topmost element in the z-order.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getWindowInteractionState
- Returns:
- The WindowInteractionState of the UIA Pro element.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getWindowVisualState
- Returns:
- Gets the WindowVisualState of the UIA Pro element.
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
isMaximized
- Returns:
- Indicates whether the UIA Pro visual state is WindowVisualState.Maximized
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
isMinimized
- Returns:
- Indicates whether the UIA Pro visual state is WindowVisualState.Minimized
- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
maximize
Sets the window visual state to WindowVisualState.Maximized- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
minimize
Sets the window visual state to WindowVisualState.Minimized- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
restore
Sets the window visual state to WindowVisualState.Normal- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
close
Attempts to close the current window.- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
waitForInputIdle
Causes the calling code to block for the specified time or until the associated process enters an idle state, whichever completes first.- Parameters:
milliseconds
- The amount of time, in milliseconds, to wait for the associated process to become idle. The maximum is int.MaxValue- Throws:
GeneralLeanFtException
- if error occurs during execution.
-