Package com.inductiveautomation.rm.app
Class InspectorPanel
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.app.InspectorPanel
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the inspector (owner) of the inspector pane.protected JComponent
Returns the inspector pane.void
initUI()
Initializes UI panel for the inspector.boolean
Returns whether the inspector is showing the datasource inspector.boolean
Returns whether the inspector is visible.void
popSelection
(ActionEvent anEvent) Changes the selection path selection to the level of the string index in the action event.void
Updates the selection path UI.void
resetUI()
Refreshes the inspector for the current editor selection.void
respondUI
(SwingEvent anEvent) Handles changes to the inspector Swing UI controls.void
setInspector
(SwingOwner anOwner) Sets the inspector in the inspector pane.protected void
setInspectorPane
(JComponent aPanel) Sets the inspector panel UI to given panel.void
setVisible
(boolean aValue) Sets whether the inspector is visible.void
setVisible
(int anIndex) Sets the inspector to be visible, showing the specific sub-inspector at the given index.void
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
-
Constructor Details
-
InspectorPanel
public InspectorPanel()
-
-
Method Details
-
initUI
public void initUI()Initializes UI panel for the inspector.- Overrides:
initUI
in classUIOwner<SwingEvent,
JComponent>
-
resetUI
public void resetUI()Refreshes the inspector for the current editor selection.- Overrides:
resetUI
in classUIOwner<SwingEvent,
JComponent>
-
respondUI
Handles changes to the inspector Swing UI controls.- Overrides:
respondUI
in classUIOwner<SwingEvent,
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
Returns the inspector (owner) of the inspector pane. -
setInspector
Sets the inspector in the inspector pane. -
getInspectorPane
Returns the inspector pane. -
setInspectorPane
Sets the inspector panel UI to given panel. -
resetSelectionPathMatrix
public void resetSelectionPathMatrix()Updates the selection path UI. -
popSelection
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.
-