Package com.inductiveautomation.rm.app
Class AttributesPanel
- java.lang.Object
-
- com.inductiveautomation.snap.ui.UIOwner<SwingEvent,javax.swing.JComponent>
-
- com.inductiveautomation.snap.swing.SwingOwner
-
- com.inductiveautomation.rm.app.AttributesPanel
-
public class AttributesPanel extends SwingOwner
This class manages the attributes panel which holds the color panel, font panel, formatter panel and keys panel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AttributesPanel.APColorPanel
This inner class is a RJColorPanel suitable for manipulating colors in current RMEditor.
-
Field Summary
Fields Modifier and Type Field Description static int
COLOR
static int
FONT
static int
FORMAT
static int
GALLERY
static int
KEYS
-
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 AttributesPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.swing.JComponent
createUI()
Returns the UI panel for the attributes panel.int
getVisible()
Returns the index of the currently visible tab (or -1 if attributes panel not visible).protected void
initUI()
Initializes the UI panel.boolean
isVisible()
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 Detail
-
KEYS
public static final int KEYS
- See Also:
- Constant Field Values
-
COLOR
public static final int COLOR
- See Also:
- Constant Field Values
-
FONT
public static final int FONT
- See Also:
- Constant Field Values
-
FORMAT
public static final int FORMAT
- See Also:
- Constant Field Values
-
GALLERY
public static final int GALLERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
createUI
protected javax.swing.JComponent 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,javax.swing.JComponent>
-
resetUI
public void resetUI()
Updates the attributes panel UI (forwards on to inspector at selected tab).- Overrides:
resetUI
in classUIOwner<SwingEvent,javax.swing.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.
-
-