Class MutableDateFormat
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.components.util.MutableDateFormat
-
- All Implemented Interfaces:
LocaleListener
public class MutableDateFormat extends java.lang.Object implements LocaleListener
A simple wrapper around a SimpleDateFormat that simplifies the interface for altering and retrieving the format.
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.client.model.LocaleListener
LOCAL_CHANGE_EVENT
-
-
Constructor Summary
Constructors Constructor Description MutableDateFormat()
MutableDateFormat(java.lang.String formatText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.util.Date date)
java.text.SimpleDateFormat
get_format()
java.lang.String
getFormatText()
void
localeChanged(java.util.Locale newLocale)
java.util.Date
parse(java.lang.String source)
void
setFormatText(java.lang.String formatText)
-
-
-
Method Detail
-
getFormatText
public java.lang.String getFormatText()
-
setFormatText
public void setFormatText(java.lang.String formatText) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
get_format
public java.text.SimpleDateFormat get_format()
-
format
public final java.lang.String format(java.util.Date date)
-
parse
public java.util.Date parse(java.lang.String source) throws java.text.ParseException
- Throws:
java.text.ParseException
-
localeChanged
public void localeChanged(java.util.Locale newLocale)
- Specified by:
localeChanged
in interfaceLocaleListener
-
-