Package com.inductiveautomation.rm.app
Class KeysPanel
- java.lang.Object
- 
- com.inductiveautomation.snap.ui.UIOwner<SwingEvent,javax.swing.JComponent>
- 
- com.inductiveautomation.snap.swing.SwingOwner
- 
- com.inductiveautomation.rm.app.KeysPanel
 
 
 
- 
 public class KeysPanel extends SwingOwner This class shows the current set of keys relative to the current editor selection in a browser and lets users drag and drop them to the editor.
- 
- 
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 KeysPanel()Creates a new keys panel.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddropDragKey(RMShape aShape, java.awt.dnd.DropTargetDropEvent anEvent)Drops a drag key.static java.lang.StringgetDragKey()Returns the current drag key.RMShapegetSelectedShape()Returns the current editor's selected shape.java.lang.StringgetWindowTitle()Returns the window title for this panel.protected voidinitUI()Initialize UI panel.static booleanisSelectedToMany()Returns whether selected key path is to-many.voidresetUI()Updates the UI from the current selection.voidrespondUI(SwingEvent anEvent)Updates the current selection from the UI controls.static voidsetDragKey(java.lang.String aKey)Sets the current drag key.- 
Methods inherited from class com.inductiveautomation.snap.swing.SwingOwneraddKeyActionEvent, createTimer, createUI, createUI, createWindow, getNode, getNode, getNodeHelper, getTimer, getTimer, getUI, getWindow, isEventThread, isWindowVisible, requestFocus, requestFocusImpl, runLater, sendEvent, setWindowVisible
 - 
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, isNodeEnabled, isNodeValueAdjusting, isSendEventDisabled, isUISet, processResetUI, processRespondUI, resetLater, resetNodeBindings, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
 
- 
 
- 
- 
- 
Method Detail- 
getDragKeypublic static java.lang.String getDragKey() Returns the current drag key.
 - 
setDragKeypublic static void setDragKey(java.lang.String aKey) Sets the current drag key.
 - 
isSelectedToManypublic static boolean isSelectedToMany() Returns whether selected key path is to-many.
 - 
dropDragKeypublic static void dropDragKey(RMShape aShape, java.awt.dnd.DropTargetDropEvent anEvent) Drops a drag key.
 - 
initUIprotected void initUI() Initialize UI panel.- Overrides:
- initUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
resetUIpublic void resetUI() Updates the UI from the current selection.- Overrides:
- resetUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
respondUIpublic void respondUI(SwingEvent anEvent) Updates the current selection from the UI controls.- Overrides:
- respondUIin class- UIOwner<SwingEvent,javax.swing.JComponent>
 
 - 
getSelectedShapepublic RMShape getSelectedShape() Returns the current editor's selected shape.
 - 
getWindowTitlepublic java.lang.String getWindowTitle() Returns the window title for this panel.
 
- 
 
-