Class SwingOwner
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
 
com.inductiveautomation.snap.swing.SwingOwner
- Direct Known Subclasses:
- Animation,- AttributesPanel,- DatasetKeyPanel,- DataSourcePanel,- ExceptionReporter,- FeedbackPanel,- FlowLayoutPane,- FontPanel,- FormatPanel,- FormBuilder,- Gallery,- InspectorPanel,- KeysPanel,- PreferencesPanel,- RJColorPanel,- RMCrossTabAutoFormatPanel,- RMEditorPaneMenuBar,- RMEditorPaneToolBar,- RMEffectTool,- RMFillTool,- RMRecentFilesMenu,- RMSortPanel,- RMTextPane,- RMTool,- RMViewerBottomToolBar,- RMViewerPane,- RMViewerTopToolBar,- ShapeFills,- ShapeLayout,- ShapeLocationSize,- ShapePlacement,- ShapeRollScaleSkew,- SpellCheckPanel,- SpringsLayoutPane,- SwingFills,- TextPane,- UndoInspector,- Welcome
A base controller class class that manages a JComponent usually loaded from a rib file.
- 
Field SummaryFields inherited from class com.inductiveautomation.snap.ui.UIOwnerDragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddKeyActionEvent(String aName, String aKey) Configures an ActionEvent to be sent to owner for given name and key description (in KeyStroke string format).protected SwingTimerOverride to return SwingTimer.protected JComponentcreateUI()Creates the UI panel.protected JComponentCreates the UI panel.protected SwingWindowCreates a window for this panel from window class.Override to include Window MenuBar.<T extends JComponent>
 TReturns the specific UI child node with the given name as the given class.getNodeHelper(Object anObj) Returns the helper for a given object.Returns a timer for given name.Returns a timer for given name and interval (in milliseconds).getUI()Returns the main UI node.Returns the SwingWindow to manage this SwingOwner's window.protected booleanReturns whether current thread is event thread.booleanReturns whether window is visible.voidrequestFocus(Object anObj) Focuses given component.protected voidrequestFocusImpl(Object anObj) Actual request focus implementation.voidRuns the given runnable in the next event.voidSends an event for a component.voidsetWindowVisible(boolean aValue) Sets whether window is visible.Methods inherited from class com.inductiveautomation.snap.ui.UIOwneraddNodeBinding, disableEvents, enableEvents, getBindingModelValue, getBindingNodeValue, getConversionMap, getConversionMapKey, getConversionMaps, getConversionMapValue, getFirstFocus, getModelValue, getNode, getNodeAction, getNodeBoolValue, getNodeFloatValue, getNodeIntValue, getNodeItemDisplayKey, getNodeItems, getNodeSelectedIndex, getNodeSelectedItem, getNodeStringValue, getNodeText, getNodeValue, getUI, getUIHpr, initUI, initUI, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, resetUI, respondUI, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
- 
Constructor Details- 
SwingOwnerpublic SwingOwner()
 
- 
- 
Method Details- 
getUIReturns the main UI node.- Overrides:
- getUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
createUICreates the UI panel.- Specified by:
- createUIin class- UIOwner<SwingEvent,- JComponent> 
 
- 
createUICreates the UI panel.
- 
getNodeOverride to include Window MenuBar.- Overrides:
- getNodein class- UIOwner<SwingEvent,- JComponent> 
 
- 
getNodeReturns the specific UI child node with the given name as the given class.- Overrides:
- getNodein class- UIOwner<SwingEvent,- JComponent> 
 
- 
getNodeHelperReturns the helper for a given object.- Specified by:
- getNodeHelperin class- UIOwner<SwingEvent,- JComponent> 
 
- 
requestFocusFocuses given component.- Specified by:
- requestFocusin class- UIOwner<SwingEvent,- JComponent> 
 
- 
requestFocusImplActual request focus implementation.
- 
addKeyActionEventConfigures an ActionEvent to be sent to owner for given name and key description (in KeyStroke string format).- Specified by:
- addKeyActionEventin class- UIOwner<SwingEvent,- JComponent> 
- See Also:
 
- 
getWindowReturns the SwingWindow to manage this SwingOwner's window.
- 
createWindowCreates a window for this panel from window class.
- 
isWindowVisiblepublic boolean isWindowVisible()Returns whether window is visible.
- 
setWindowVisiblepublic void setWindowVisible(boolean aValue) Sets whether window is visible.
- 
getTimerReturns a timer for given name.
- 
getTimerReturns a timer for given name and interval (in milliseconds).
- 
createTimerOverride to return SwingTimer.
- 
runLaterRuns the given runnable in the next event.- Specified by:
- runLaterin class- UIOwner<SwingEvent,- JComponent> 
 
- 
isEventThreadprotected boolean isEventThread()Returns whether current thread is event thread.- Specified by:
- isEventThreadin class- UIOwner<SwingEvent,- JComponent> 
 
- 
sendEventSends an event for a component.- Specified by:
- sendEventin class- UIOwner<SwingEvent,- JComponent> 
 
 
-