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 TypeClassDescriptionclassThis inner class is a RJColorPanel suitable for manipulating colors in current RMEditor. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields 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 JComponentcreateUI()Returns the UI panel for the attributes panel.intReturns the index of the currently visible tab (or -1 if attributes panel not visible).protected voidinitUI()Initializes the UI panel.booleanReturns whether the attributes panel is visible.voidresetUI()Updates the attributes panel UI (forwards on to inspector at selected tab).voidsetVisible(boolean aValue) Sets the attributes panel visible.voidsetVisible(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, setWindowVisibleMethods 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:
createUIin classSwingOwner
-
initUI
protected void initUI()Initializes the UI panel.- Overrides:
initUIin classUIOwner<SwingEvent,JComponent>
-
resetUI
public void resetUI()Updates the attributes panel UI (forwards on to inspector at selected tab).- Overrides:
resetUIin 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.
-