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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classAn object that is used to let the windowing system know when a popup is about to be shown, and when it has hidden.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionchooseColor(Color initial) chooseColor(Color initial, String title) voidcloseDesktop(String handle) static Colorcolor(int r, int g, int b) static Colorcolor(int r, int g, int b, int alpha) static Colorstatic org.python.core.PyTupleconvertPointToScreen(int x, int y, EventObject event) static WindowUtilities.PopupContextstatic JPopupMenucreatePopupMenu(org.python.core.PyDictionary dict) Deprecated.static JPopupMenucreatePopupMenu(org.python.core.PySequence keys, org.python.core.PySequence functions) desktop()desktop(int screen) voidvoidstatic WindowUtilitiesfind(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.PySequenceorg.python.core.PyTupleorg.python.core.PyTuplestatic org.python.core.PyObjectgetParentWindow(EventObject event) getQuality(JComponent comp, String propertyName) intstatic org.python.core.PySequencestatic org.python.core.PyObjectgetSibling(EventObject event, String name) org.python.core.PyObjectorg.python.core.PyTuplestatic booleanDeprecated.booleanvoidmessageBox(String message) voidmessageBox(String message, String title) static voidmoveComponent(JComponent comp, int x, int y) Deprecated.openDesktop(org.python.core.PyObject[] values, String[] keywords) voidpasswordBox(String message) passwordBox(String message, String title) passwordBox(String message, String title, String echoChar) static voidreshapeComponent(JComponent comp, int x, int y, int w, int h) Deprecated.static voidresizeComponent(JComponent comp, int w, int h) Deprecated.voidsetScreenIndex(int index) voidsetTouchscreenMode(boolean b) Deprecated.voidsetTouchscreenModeEnabled(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.PyObjectvoidwarningBox(String message) voidwarningBox(String message, String title) 
- 
Field Details- 
ACCL_NONEpublic static final int ACCL_NONE- See Also:
 
- 
ACCL_CONSTANTpublic static final int ACCL_CONSTANT- See Also:
 
- 
ACCL_FAST_TO_SLOWpublic static final int ACCL_FAST_TO_SLOW- See Also:
 
- 
ACCL_SLOW_TO_FASTpublic static final int ACCL_SLOW_TO_FAST- See Also:
 
- 
ACCL_EASEpublic static final int ACCL_EASE- See Also:
 
- 
COORD_SCREENpublic static final int COORD_SCREEN- See Also:
 
- 
COORD_DESIGNERpublic static final int COORD_DESIGNER- See Also:
 
 
- 
- 
Constructor Details- 
WindowUtilities
 
- 
- 
Method Details- 
findFinds 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
- 
getDesktopHandlespublic org.python.core.PySequence getDesktopHandles()
- 
moveComponentDeprecated.
- 
resizeComponentDeprecated.
- 
reshapeComponentDeprecated.
- 
transform
- 
chooseColor
- 
chooseColor
- 
color
- 
color
- 
color
- 
getSibling
- 
getWindow
- 
getOpenedWindowspublic org.python.core.PyTuple getOpenedWindows()
- 
getOpenedWindowNamespublic org.python.core.PyTuple getOpenedWindowNames()
- 
getWindowNamespublic org.python.core.PyTuple getWindowNames()
- 
findWindowSearches 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
- 
isTouchscreenModeDeprecated.
- 
isTouchscreenModeEnabledpublic boolean isTouchscreenModeEnabled()
- 
setTouchscreenModeDeprecated.
- 
setTouchscreenModeEnabledpublic void setTouchscreenModeEnabled(boolean b) 
- 
convertPointToScreen
- 
createPopupMenuDeprecated.
- 
createPopupMenupublic static JPopupMenu createPopupMenu(org.python.core.PySequence keys, org.python.core.PySequence functions) 
- 
setScreenIndexpublic void setScreenIndex(int index) 
- 
getScreenIndexpublic int getScreenIndex()
- 
getQuality
- 
getScreenspublic static org.python.core.PySequence getScreens()
- 
openDiagnosticspublic void openDiagnostics()
 
-