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.LocaleListenerLOCAL_CHANGE_EVENT
 
- 
 - 
Constructor SummaryConstructors Constructor Description MutableDateFormat()MutableDateFormat(java.lang.String formatText)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringformat(java.util.Date date)java.text.SimpleDateFormatget_format()java.lang.StringgetFormatText()voidlocaleChanged(java.util.Locale newLocale)java.util.Dateparse(java.lang.String source)voidsetFormatText(java.lang.String formatText)
 
- 
- 
- 
Method Detail- 
getFormatTextpublic java.lang.String getFormatText() 
 - 
setFormatTextpublic void setFormatText(java.lang.String formatText) throws java.lang.IllegalArgumentException- Throws:
- java.lang.IllegalArgumentException
 
 - 
get_formatpublic java.text.SimpleDateFormat get_format() 
 - 
formatpublic final java.lang.String format(java.util.Date date) 
 - 
parsepublic java.util.Date parse(java.lang.String source) throws java.text.ParseException- Throws:
- java.text.ParseException
 
 - 
localeChangedpublic void localeChanged(java.util.Locale newLocale) - Specified by:
- localeChangedin interface- LocaleListener
 
 
- 
 
-