Package com.reportmill.panels
Class FormatPanel
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.panels.FormatPanel
-
- All Implemented Interfaces:
RMArchiver.Archiving
,java.lang.Cloneable
public class FormatPanel extends RMObject
This class provides GUI for showing the formatter from the currently selected shape and editing or changing it.
-
-
Constructor Summary
Constructors Constructor Description FormatPanel()
Creates a FormatPanel instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RMDateFormat
getDateFormat(int anIndex)
Returns the preset date format at the given index.static int
getDateFormatCount()
Returns the number of preset date formats available to the format panel.static int
getDateFormatIndex(java.lang.String aPattern)
Returns the index of the preset date format for a given date format pattern.static java.lang.String
getDateFormatsString()
Returns the Format panel's current date format strings as a single newline separated string.static java.lang.String
getDefaultDateFormatsString()
Returns ReportMill's default date format strings as a single newline delimited String.static java.lang.String
getDefaultNumberFormatsString()
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
getNumberFormatCount()
Returns the number of preset number formats available to the format panel.static java.lang.String
getNumberFormatsString()
Returns the Format panel's current number format strings as a single newline separated string.javax.swing.JPanel
getUI()
Returns the Swing GUI panel containing format inspector controls.java.lang.String
getWindowTitle()
Returns the name for the attributes panel window.void
resetUI()
Refreshes the format panel from the current editor selection.void
respondUI(java.lang.Object anObj)
Responds to changes from format panel GUI controls.static void
setDateFormatsString(java.lang.String aString)
Sets the FormatPanel's current date formats from a single newline separated string.static void
setNumberFormatsString(java.lang.String aString)
Sets the FormatPanel's current number formats from a single newline separated string.-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
Method Detail
-
getWindowTitle
public java.lang.String getWindowTitle()
Returns the name for the attributes panel window.
-
getUI
public javax.swing.JPanel getUI()
Returns the Swing GUI panel containing format inspector controls.
-
resetUI
public void resetUI()
Refreshes the format panel from the current editor selection.
-
respondUI
public void respondUI(java.lang.Object anObj)
Responds to changes from format panel GUI controls.
-
getNumberFormatCount
public static int getNumberFormatCount()
Returns the number of preset number formats available to the format panel.
-
getNumberFormat
public static RMNumberFormat getNumberFormat(int anIndex)
Returns the preset number format at the given index.
-
getNumberFormatsString
public static java.lang.String getNumberFormatsString()
Returns the Format panel's current number format strings as a single newline separated string.
-
setNumberFormatsString
public static void setNumberFormatsString(java.lang.String aString)
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
public static RMDateFormat getDateFormat(int anIndex)
Returns the preset date format at the given index.
-
getDateFormatIndex
public static int getDateFormatIndex(java.lang.String aPattern)
Returns the index of the preset date format for a given date format pattern.
-
getDateFormatsString
public static java.lang.String getDateFormatsString()
Returns the Format panel's current date format strings as a single newline separated string.
-
setDateFormatsString
public static void setDateFormatsString(java.lang.String aString)
Sets the FormatPanel's current date formats from a single newline separated string.
-
getDefaultNumberFormatsString
public static java.lang.String getDefaultNumberFormatsString()
Returns ReportMill's default number format strings as a single newline delimited string.
-
getDefaultDateFormatsString
public static java.lang.String getDefaultDateFormatsString()
Returns ReportMill's default date format strings as a single newline delimited String.
-
-