Package com.inductiveautomation.rm.app
Class InspectorPanel
- java.lang.Object
-
- com.inductiveautomation.snap.ui.UIOwner<SwingEvent,javax.swing.JComponent>
-
- com.inductiveautomation.snap.swing.SwingOwner
-
- com.inductiveautomation.rm.app.InspectorPanel
-
public class InspectorPanel extends SwingOwner
This class is responsible for the Swing UI associated with the inspector window.
-
-
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 Constructor Description InspectorPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SwingOwnergetInspector()Returns the inspector (owner) of the inspector pane.protected javax.swing.JComponentgetInspectorPane()Returns the inspector pane.voidinitUI()Initializes UI panel for the inspector.booleanisShowingDataSource()Returns whether the inspector is showing the datasource inspector.booleanisVisible()Returns whether the inspector is visible.voidpopSelection(java.awt.event.ActionEvent anEvent)Changes the selection path selection to the level of the string index in the action event.voidresetSelectionPathMatrix()Updates the selection path UI.voidresetUI()Refreshes the inspector for the current editor selection.voidrespondUI(SwingEvent anEvent)Handles changes to the inspector Swing UI controls.voidsetInspector(SwingOwner anOwner)Sets the inspector in the inspector pane.protected voidsetInspectorPane(javax.swing.JComponent aPanel)Sets the inspector panel UI to given panel.voidsetVisible(boolean aValue)Sets whether the inspector is visible.voidsetVisible(int anIndex)Sets the inspector to be visible, showing the specific sub-inspector at the given index.voidshowDocumentInspector()Makes the inspector panel show the document inspector.-
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
-
-
-
-
Method Detail
-
initUI
public void initUI()
Initializes UI panel for the inspector.- Overrides:
initUIin classUIOwner<SwingEvent,javax.swing.JComponent>
-
resetUI
public void resetUI()
Refreshes the inspector for the current editor selection.- Overrides:
resetUIin classUIOwner<SwingEvent,javax.swing.JComponent>
-
respondUI
public void respondUI(SwingEvent anEvent)
Handles changes to the inspector Swing UI controls.- Overrides:
respondUIin classUIOwner<SwingEvent,javax.swing.JComponent>
-
isVisible
public boolean isVisible()
Returns whether the inspector is visible.
-
setVisible
public void setVisible(boolean aValue)
Sets whether the inspector is visible.
-
setVisible
public void setVisible(int anIndex)
Sets the inspector to be visible, showing the specific sub-inspector at the given index.
-
isShowingDataSource
public boolean isShowingDataSource()
Returns whether the inspector is showing the datasource inspector.
-
getInspector
public SwingOwner getInspector()
Returns the inspector (owner) of the inspector pane.
-
setInspector
public void setInspector(SwingOwner anOwner)
Sets the inspector in the inspector pane.
-
getInspectorPane
protected javax.swing.JComponent getInspectorPane()
Returns the inspector pane.
-
setInspectorPane
protected void setInspectorPane(javax.swing.JComponent aPanel)
Sets the inspector panel UI to given panel.
-
resetSelectionPathMatrix
public void resetSelectionPathMatrix()
Updates the selection path UI.
-
popSelection
public void popSelection(java.awt.event.ActionEvent anEvent)
Changes the selection path selection to the level of the string index in the action event.
-
showDocumentInspector
public void showDocumentInspector()
Makes the inspector panel show the document inspector.
-
-