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 TypeMethodDescriptionbooleanbooleanvoidclose()Attempts to close the current window.booleanbooleanbooleanisModal()booleanvoidmaximize()Sets the window visual state to WindowVisualState.Maximizedvoidminimize()Sets the window visual state to WindowVisualState.Minimizedvoidrestore()Sets the window visual state to WindowVisualState.NormalbooleantryWaitForInputIdle(int milliseconds) Waits until the object is ready for input or the timeout expires.
Note: This method is not supported when you enable the legacy UIA Pro Add-invoidwaitForInputIdle(int milliseconds) Deprecated.
-
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.
-
tryWaitForInputIdle
Waits until the object is ready for input or the timeout expires.
Note: This method is not supported when you enable the legacy UIA Pro Add-in- Parameters:
milliseconds- The number of milliseconds to wait for the object to become ready. The maximum is int.MaxValue- Returns:
- True if the window is ready for input, False if the timeout expired
- Throws:
GeneralLeanFtException- if error occurs during execution.
-
waitForInputIdle
Deprecated.Waits until the object is ready for input or the timeout expires.
Note: This method is only supported when you enable the legacy UIA Pro Add-in- Parameters:
milliseconds- The number of milliseconds to wait for the object to become ready. The maximum is int.MaxValue- Throws:
GeneralLeanFtException- if error occurs during execution.
-