Package com.inductiveautomation.rm.app
Class KeysPanel
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.app.KeysPanel
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.UIOwner
DragDrop, DragEnter, DragEvents, DragExit, DragOver, KeyEvents, KeyFinished, KeyPressed, KeyReleased, KeyTyped, MouseClicked, MouseDragged, MouseEntered, MouseEvents, MouseExited, MouseFinished, MouseMoved, MousePressed, MouseReleased
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
dropDragKey
(RMShape aShape, DropTargetDropEvent anEvent) Drops a drag key.static String
Returns the current drag key.Returns the current editor's selected shape.Returns the window title for this panel.protected void
initUI()
Initialize UI panel.static boolean
Returns whether selected key path is to-many.void
resetUI()
Updates the UI from the current selection.void
respondUI
(SwingEvent anEvent) Updates the current selection from the UI controls.static void
setDragKey
(String aKey) Sets the current drag key.Methods inherited from class com.inductiveautomation.snap.swing.SwingOwner
addKeyActionEvent, 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.UIOwner
addNodeBinding, 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
-
Constructor Details
-
KeysPanel
public KeysPanel()Creates a new keys panel.
-
-
Method Details
-
getDragKey
Returns the current drag key. -
setDragKey
Sets the current drag key. -
isSelectedToMany
public static boolean isSelectedToMany()Returns whether selected key path is to-many. -
dropDragKey
Drops a drag key. -
initUI
protected void initUI()Initialize UI panel.- Overrides:
initUI
in classUIOwner<SwingEvent,
JComponent>
-
resetUI
public void resetUI()Updates the UI from the current selection.- Overrides:
resetUI
in classUIOwner<SwingEvent,
JComponent>
-
respondUI
Updates the current selection from the UI controls.- Overrides:
respondUI
in classUIOwner<SwingEvent,
JComponent>
-
getSelectedShape
Returns the current editor's selected shape. -
getWindowTitle
Returns the window title for this panel.
-