Package com.inductiveautomation.rm.app
Class FormatPanel
java.lang.Object
com.inductiveautomation.snap.ui.UIOwner<SwingEvent,JComponent>
com.inductiveautomation.snap.swing.SwingOwner
com.inductiveautomation.rm.app.FormatPanel
This class provides UI for showing the formatter from the currently selected shape and editing or changing it.
-
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 TypeMethodDescriptionstatic RMDateFormat
getDateFormat
(int anIndex) Returns the preset date format at the given index.static int
Returns the number of preset date formats available to the format panel.static int
getDateFormatIndex
(String aPattern) Returns the index of the preset date format for a given date format pattern.static String
Returns the Format panel's current date format strings as a single newline separated string.static String
Returns ReportMill's default date format strings as a single newline delimited String.static String
Returns ReportMill's default number format strings as a single newline delimited string.static RMNumberFormat
getNumberFormat
(int anIndex) Returns the preset number format at the given index.static int
Returns the number of preset number formats available to the format panel.static String
Returns the Format panel's current number format strings as a single newline separated string.Returns the name for the attributes panel window.protected void
initUI()
Initialize UI panel.void
resetUI()
Reset UI panel.void
respondUI
(SwingEvent anEvent) Responds to changes from format panel UI controls.static void
setDateFormatsString
(String aString) Sets the FormatPanel's current date formats from a single newline separated string.static void
setNumberFormatsString
(String aString) Sets the FormatPanel's current number formats from a single newline separated string.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
-
FormatPanel
public FormatPanel()
-
-
Method Details
-
initUI
protected void initUI()Initialize UI panel.- Overrides:
initUI
in classUIOwner<SwingEvent,
JComponent>
-
resetUI
public void resetUI()Reset UI panel.- Overrides:
resetUI
in classUIOwner<SwingEvent,
JComponent>
-
respondUI
Responds to changes from format panel UI controls.- Overrides:
respondUI
in classUIOwner<SwingEvent,
JComponent>
-
getNumberFormatCount
public static int getNumberFormatCount()Returns the number of preset number formats available to the format panel. -
getNumberFormat
Returns the preset number format at the given index. -
getNumberFormatsString
Returns the Format panel's current number format strings as a single newline separated string. -
setNumberFormatsString
Sets the FormatPanel's current number formats from a single newline separated string. -
getDateFormatCount
public static int getDateFormatCount()Returns the number of preset date formats available to the format panel. -
getDateFormat
Returns the preset date format at the given index. -
getDateFormatIndex
Returns the index of the preset date format for a given date format pattern. -
getDateFormatsString
Returns the Format panel's current date format strings as a single newline separated string. -
setDateFormatsString
Sets the FormatPanel's current date formats from a single newline separated string. -
getWindowTitle
Returns the name for the attributes panel window. -
getDefaultNumberFormatsString
Returns ReportMill's default number format strings as a single newline delimited string. -
getDefaultDateFormatsString
Returns ReportMill's default date format strings as a single newline delimited String.
-