Package com.inductiveautomation.rm.app
Class AttributesPanel
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.app.AttributesPanel
This class manages the attributes panel which holds the color panel, font panel, formatter panel and keys panel.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
This inner class is a RJColorPanel suitable for manipulating colors in current RMEditor. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
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 TypeMethodDescriptionprotected JComponent
createUI()
Returns the UI panel for the attributes panel.int
Returns the index of the currently visible tab (or -1 if attributes panel not visible).protected void
initUI()
Initializes the UI panel.boolean
Returns whether the attributes panel is visible.void
resetUI()
Updates the attributes panel UI (forwards on to inspector at selected tab).void
setVisible
(boolean aValue) Sets the attributes panel visible.void
setVisible
(int anIndex) Sets the attributes panel visible, specifying a specific tab by the given index.Methods inherited from class com.inductiveautomation.snap.swing.SwingOwner
addKeyActionEvent, createTimer, 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, respondUI, runLaterDelayed, runLaterOnce, sendEvent, sendNodeAction, setBindingModelValue, setBindingNodeValue, setFirstFocus, setModelValue, setNodeAction, setNodeEnabled, setNodeItemDisplayKey, setNodeItems, setNodeItems, setNodeSelectedIndex, setNodeSelectedItem, setNodeText, setNodeValue, setSendEventDisabled
-
Field Details
-
KEYS
public static final int KEYS- See Also:
-
COLOR
public static final int COLOR- See Also:
-
FONT
public static final int FONT- See Also:
-
FORMAT
public static final int FORMAT- See Also:
-
GALLERY
public static final int GALLERY- See Also:
-
-
Constructor Details
-
AttributesPanel
public AttributesPanel()
-
-
Method Details
-
createUI
Returns the UI panel for the attributes panel.- Overrides:
createUI
in classSwingOwner
-
initUI
protected void initUI()Initializes the UI panel.- Overrides:
initUI
in classUIOwner<SwingEvent,
JComponent>
-
resetUI
public void resetUI()Updates the attributes panel UI (forwards on to inspector at selected tab).- Overrides:
resetUI
in classUIOwner<SwingEvent,
JComponent>
-
isVisible
public boolean isVisible()Returns whether the attributes panel is visible. -
setVisible
public void setVisible(boolean aValue) Sets the attributes panel visible. -
getVisible
public int getVisible()Returns the index of the currently visible tab (or -1 if attributes panel not visible). -
setVisible
public void setVisible(int anIndex) Sets the attributes panel visible, specifying a specific tab by the given index.
-