Class SwingOwner
- java.lang.Object
- 
- com.inductiveautomation.snap.ui.UIOwner<SwingEvent,javax.swing.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
 
 public abstract class SwingOwner extends UIOwner<SwingEvent,javax.swing.JComponent> A base controller class class that manages a JComponent usually loaded from a rib file.
- 
- 
Field Summary- 
Fields 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 Constructor Description SwingOwner()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKeyActionEvent(java.lang.String aName, java.lang.String aKey)Configures an ActionEvent to be sent to owner for given name and key description (in KeyStroke string format).protected SwingTimercreateTimer()Override to return SwingTimer.protected javax.swing.JComponentcreateUI()Creates the UI panel.protected javax.swing.JComponentcreateUI(java.lang.Class aClass)Creates the UI panel.protected SwingWindowcreateWindow()Creates a window for this panel from window class.javax.swing.JComponentgetNode(java.lang.String aName)Override to include Window MenuBar.<T extends javax.swing.JComponent>
 TgetNode(java.lang.String aName, java.lang.Class<T> aClass)Returns the specific UI child node with the given name as the given class.SwingHelpergetNodeHelper(java.lang.Object anObj)Returns the helper for a given object.SwingTimergetTimer(java.lang.String aName)Returns a timer for given name.SwingTimergetTimer(java.lang.String aName, int aPeriod)Returns a timer for given name and interval (in milliseconds).javax.swing.JComponentgetUI()Returns the main UI node.SwingWindowgetWindow()Returns the SwingWindow to manage this SwingOwner's window.protected booleanisEventThread()Returns whether current thread is event thread.booleanisWindowVisible()Returns whether window is visible.voidrequestFocus(java.lang.Object anObj)Focuses given component.protected voidrequestFocusImpl(java.lang.Object anObj)Actual request focus implementation.voidrunLater(java.lang.Runnable aRunnable)Runs the given runnable in the next event.voidsendEvent(java.lang.Object anObj)Sends 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
 
- 
 
- 
- 
- 
Method Detail- 
getUIpublic javax.swing.JComponent getUI() Returns the main UI node.- Overrides:
- getUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
createUIprotected javax.swing.JComponent createUI() Creates the UI panel.- Specified by:
- createUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
createUIprotected javax.swing.JComponent createUI(java.lang.Class aClass) Creates the UI panel.
 - 
getNodepublic javax.swing.JComponent getNode(java.lang.String aName) Override to include Window MenuBar.- Overrides:
- getNodein class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
getNodepublic <T extends javax.swing.JComponent> T getNode(java.lang.String aName, java.lang.Class<T> aClass)Returns the specific UI child node with the given name as the given class.- Overrides:
- getNodein class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
getNodeHelperpublic SwingHelper getNodeHelper(java.lang.Object anObj) Returns the helper for a given object.- Specified by:
- getNodeHelperin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
requestFocuspublic void requestFocus(java.lang.Object anObj) Focuses given component.- Specified by:
- requestFocusin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
requestFocusImplprotected void requestFocusImpl(java.lang.Object anObj) Actual request focus implementation.
 - 
addKeyActionEventpublic void addKeyActionEvent(java.lang.String aName, java.lang.String aKey)Configures an ActionEvent to be sent to owner for given name and key description (in KeyStroke string format).- Specified by:
- addKeyActionEventin class- UIOwner<SwingEvent,javax.swing.JComponent>
- See Also:
- KeyStroke
 
 - 
getWindowpublic SwingWindow getWindow() Returns the SwingWindow to manage this SwingOwner's window.
 - 
createWindowprotected SwingWindow createWindow() Creates 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.
 - 
getTimerpublic SwingTimer getTimer(java.lang.String aName) Returns a timer for given name.
 - 
getTimerpublic SwingTimer getTimer(java.lang.String aName, int aPeriod) Returns a timer for given name and interval (in milliseconds).
 - 
createTimerprotected SwingTimer createTimer() Override to return SwingTimer.
 - 
runLaterpublic void runLater(java.lang.Runnable aRunnable) Runs the given runnable in the next event.- Specified by:
- runLaterin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
isEventThreadprotected boolean isEventThread() Returns whether current thread is event thread.- Specified by:
- isEventThreadin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
sendEventpublic void sendEvent(java.lang.Object anObj) Sends an event for a component.- Specified by:
- sendEventin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 
- 
 
-