Package adams.core
Class MicroSecondFormatString
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.AbstractBaseString
-
- adams.core.MicroSecondFormatString
-
- All Implemented Interfaces:
CloneHandler<BaseObject>,Serializable,Comparable
public class MicroSecondFormatString extends AbstractBaseString
Wrapper for microsecond format strings.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
MicroSecondFormat, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULTthe default value.-
Fields inherited from class adams.core.base.BaseObject
m_Internal, m_Properties, SUFFIX_DISPLAY, SUFFIX_VALUE
-
-
Constructor Summary
Constructors Constructor Description MicroSecondFormatString()Initializes the string with "0".MicroSecondFormatString(String s)Initializes the object with the string to parse.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTipText()Returns a tool tip for the GUI editor (ignored if null is returned).booleanhasFavoritesSupport()Whether this object should have favorites support.protected voidinitialize()Initializes the internal object.booleanisValid(String value)Checks whether the string value is a valid presentation for this class.MicroSecondFormattoMicroSecondFormat()Returns a configuredMicroSecondFormatobject.-
Methods inherited from class adams.core.base.AbstractBaseString
convert, getValue, isEmpty, length, setValue, stringValue
-
Methods inherited from class adams.core.base.BaseObject
compareTo, equals, getClone, getInternal, getTemplates, getUnicode, hashCode, isValidUnicode, newInstance, setUnicode, toObjectArray, toObjectArray, toString, toStringArray, toStringList
-
-
-
-
Field Detail
-
DEFAULT
public static final String DEFAULT
the default value.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MicroSecondFormatString
public MicroSecondFormatString()
Initializes the string with "0".
-
MicroSecondFormatString
public MicroSecondFormatString(String s)
Initializes the object with the string to parse.- Parameters:
s- the string to parse
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the internal object.- Overrides:
initializein classAbstractBaseString
-
isValid
public boolean isValid(String value)
Checks whether the string value is a valid presentation for this class.- Overrides:
isValidin classAbstractBaseString- Parameters:
value- the string value to check- Returns:
- always true
-
getTipText
public String getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).- Specified by:
getTipTextin classAbstractBaseString- Returns:
- the tool tip
-
toMicroSecondFormat
public MicroSecondFormat toMicroSecondFormat()
Returns a configuredMicroSecondFormatobject.- Returns:
- the configured object
-
hasFavoritesSupport
public boolean hasFavoritesSupport()
Whether this object should have favorites support.- Overrides:
hasFavoritesSupportin classBaseObject- Returns:
- true if to support favorites
-
-