public class DateTimeFormatManager extends java.lang.Object implements PersistentStateComponent<Element>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_DATE_FORMAT |
Constructor and Description |
---|
DateTimeFormatManager() |
Modifier and Type | Method and Description |
---|---|
java.text.DateFormat |
getDateFormat() |
java.lang.String |
getDateFormatPattern() |
java.util.Set<java.lang.String> |
getIds() |
static DateTimeFormatManager |
getInstance() |
Element |
getState() |
boolean |
isOverrideSystemDateFormat() |
boolean |
isPrettyFormattingAllowed() |
boolean |
isUse24HourTime() |
void |
loadState(Element state)
This method is called when new component state is loaded.
|
void |
setDateFormatPattern(java.lang.String pattern) |
void |
setOverrideSystemDateFormat(boolean overrideSystemDateFormat) |
void |
setPrettyFormattingAllowed(boolean prettyFormattingAllowed) |
void |
setUse24HourTime(boolean use24HourTime) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static final java.lang.String DEFAULT_DATE_FORMAT
public Element getState()
getState
in interface PersistentStateComponent<Element>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(Element state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public boolean isOverrideSystemDateFormat()
public void setOverrideSystemDateFormat(boolean overrideSystemDateFormat)
public boolean isUse24HourTime()
public void setUse24HourTime(boolean use24HourTime)
public void setPrettyFormattingAllowed(boolean prettyFormattingAllowed)
public java.text.DateFormat getDateFormat()
public java.util.Set<java.lang.String> getIds()
public java.lang.String getDateFormatPattern()
public void setDateFormatPattern(java.lang.String pattern)
public boolean isPrettyFormattingAllowed()
public static DateTimeFormatManager getInstance()