Class WindowUtilities
java.lang.Object
com.inductiveautomation.factorypmi.application.script.builtin.WindowUtilities
- Direct Known Subclasses:
WindowUtilitiesForDesktop
These are the scripting functions mounted at system.gui.* Changes to this class must be made carefully, as some of the true implementations actually reside in the subclass, WindowUtilitiesForDesktop. Any method that is relative to a specific desktop needs to be implemented in the subclass, and then the version inside this class must delegate to that one using the WindowUtilites object returned by gui()
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
An object that is used to let the windowing system know when a popup is about to be shown, and when it has hidden. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchooseColor
(Color initial) chooseColor
(Color initial, String title) void
closeDesktop
(String handle) static Color
color
(int r, int g, int b) static Color
color
(int r, int g, int b, int alpha) static Color
static org.python.core.PyTuple
convertPointToScreen
(int x, int y, EventObject event) static WindowUtilities.PopupContext
static JPopupMenu
createPopupMenu
(org.python.core.PyDictionary dict) Deprecated.static JPopupMenu
createPopupMenu
(org.python.core.PySequence keys, org.python.core.PySequence functions) desktop()
desktop
(int screen) void
void
static WindowUtilities
find
(JComponent component) Finds the WindowUtilities for any component within the hierarchy of a Vision Window.findWindow
(String path) Searches through the open windows for windows with the given path.org.python.core.PySequence
org.python.core.PyTuple
org.python.core.PyTuple
static org.python.core.PyObject
getParentWindow
(EventObject event) getQuality
(JComponent comp, String propertyName) int
static org.python.core.PySequence
static org.python.core.PyObject
getSibling
(EventObject event, String name) org.python.core.PyObject
org.python.core.PyTuple
static boolean
Deprecated.boolean
void
messageBox
(String message) void
messageBox
(String message, String title) static void
moveComponent
(JComponent comp, int x, int y) Deprecated.openDesktop
(org.python.core.PyObject[] values, String[] keywords) void
passwordBox
(String message) passwordBox
(String message, String title) passwordBox
(String message, String title, String echoChar) static void
reshapeComponent
(JComponent comp, int x, int y, int w, int h) Deprecated.static void
resizeComponent
(JComponent comp, int w, int h) Deprecated.void
setScreenIndex
(int index) void
setTouchscreenMode
(boolean b) Deprecated.void
setTouchscreenModeEnabled
(boolean b) showNumericKeypad
(Number initial) showNumericKeypad
(Number initial, int fontSize) showNumericKeypad
(Number initial, int fontSize, boolean usePasswordMode) showTouchscreenKeyboard
(String initial) showTouchscreenKeyboard
(String initial, int fontSize) showTouchscreenKeyboard
(String initial, int fontSize, boolean password) showTouchscreenKeyboard
(String initial, int fontSize, boolean password, String layout) showTouchscreenKeyboard
(org.python.core.PyObject[] args, String[] keywords) org.python.core.PyObject
void
warningBox
(String message) void
warningBox
(String message, String title)
-
Field Details
-
ACCL_NONE
public static final int ACCL_NONE- See Also:
-
ACCL_CONSTANT
public static final int ACCL_CONSTANT- See Also:
-
ACCL_FAST_TO_SLOW
public static final int ACCL_FAST_TO_SLOW- See Also:
-
ACCL_SLOW_TO_FAST
public static final int ACCL_SLOW_TO_FAST- See Also:
-
ACCL_EASE
public static final int ACCL_EASE- See Also:
-
COORD_SCREEN
public static final int COORD_SCREEN- See Also:
-
COORD_DESIGNER
public static final int COORD_DESIGNER- See Also:
-
-
Constructor Details
-
WindowUtilities
-
-
Method Details
-
find
Finds the WindowUtilities for any component within the hierarchy of a Vision Window. Returns null if the Vision window hierarchy isn't present in the given component's ancestor tree. -
desktop
-
desktop
-
desktop
-
createPopupContext
-
openDesktop
-
getCurrentDesktop
-
closeDesktop
-
getDesktopHandles
public org.python.core.PySequence getDesktopHandles() -
moveComponent
Deprecated. -
resizeComponent
Deprecated. -
reshapeComponent
Deprecated. -
transform
-
chooseColor
-
chooseColor
-
color
-
color
-
color
-
getSibling
-
getWindow
-
getOpenedWindows
public org.python.core.PyTuple getOpenedWindows() -
getOpenedWindowNames
public org.python.core.PyTuple getOpenedWindowNames() -
getWindowNames
public org.python.core.PyTuple getWindowNames() -
findWindow
Searches through the open windows for windows with the given path. May return none (empty list) or multiple depending on the state of the running client. -
getParentWindow
-
errorBox
-
errorBox
-
warningBox
-
warningBox
-
messageBox
-
messageBox
-
confirm
-
confirm
-
confirm
-
inputBox
-
inputBox
-
passwordBox
-
passwordBox
-
passwordBox
-
showNumericKeypad
-
showNumericKeypad
-
showNumericKeypad
-
showTouchscreenKeyboard
-
showTouchscreenKeyboard
-
showTouchscreenKeyboard
-
showTouchscreenKeyboard
-
showTouchscreenKeyboard
-
isTouchscreenMode
Deprecated. -
isTouchscreenModeEnabled
public boolean isTouchscreenModeEnabled() -
setTouchscreenMode
Deprecated. -
setTouchscreenModeEnabled
public void setTouchscreenModeEnabled(boolean b) -
convertPointToScreen
-
createPopupMenu
Deprecated. -
createPopupMenu
public static JPopupMenu createPopupMenu(org.python.core.PySequence keys, org.python.core.PySequence functions) -
setScreenIndex
public void setScreenIndex(int index) -
getScreenIndex
public int getScreenIndex() -
getQuality
-
getScreens
public static org.python.core.PySequence getScreens() -
openDiagnostics
public void openDiagnostics()
-