Package hec.data.lookup
Class JDomLookupTypeImpl
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.data.AbstractJDomDataObject
hec.data.lookup.JDomLookupTypeImpl
- All Implemented Interfaces:
ILookupType
,XmlString
,AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
- See Also:
-
Field Summary
FieldsFields inherited from class hec.data.AbstractJDomDataObject
DD_MM_MYYYY, DD_MM_MYYYY_HHMM, DD_MM_MYYYY_HHMMZ, MM_MYYYY, UNIT, YYYY
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT
-
Constructor Summary
ConstructorsConstructorDescriptionJDomLookupTypeImpl
(ILookupType lookup) JDomLookupTypeImpl
(String officeId, boolean active, String displayValue, String tooltip) JDomLookupTypeImpl
(org.jdom.Element element) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildElement
(org.jdom.Element element) Populates the element with data from this object.boolean
boolean
Gets the active.Gets the display value.Gets the tooltip.int
hashCode()
boolean
isValid()
Check if the object is valid for compute.void
setActive
(boolean active) Sets the active.void
setActiveString
(String active) void
setDisplayValue
(String displayValue) Sets the display value.void
setOfficeId
(String officeId) void
setTooltip
(String tooltip) Sets the tooltip.Methods inherited from class hec.data.AbstractJDomDataObject
buildElementOrRemove, camelCaseToLowerUnderbar, getDefaultElementName, getXmlDate, getXmlValue, parseDouble, parseFormattedDouble, parseInt, setXmlDate, setXmlValue, toXmlString
Methods inherited from class hec.lang.NamedType
addModifiableListener, clone, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getFieldObject, getIgnoreModifiedEvents, getIndex, getName, isModified, readResolve, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, toString, update, useRecursiveModifiedTest
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface hec.data.XmlString
toXmlString
-
Field Details
-
ATTR_TOOLTIP
- See Also:
-
ATTR_ACTIVE
- See Also:
-
-
Constructor Details
-
JDomLookupTypeImpl
public JDomLookupTypeImpl() -
JDomLookupTypeImpl
-
JDomLookupTypeImpl
public JDomLookupTypeImpl(org.jdom.Element element) -
JDomLookupTypeImpl
-
-
Method Details
-
getOfficeId
- Specified by:
getOfficeId
in interfaceILookupType
-
setOfficeId
- Specified by:
setOfficeId
in interfaceILookupType
-
getActiveString
- Specified by:
getActiveString
in interfaceILookupType
-
setActiveString
- Specified by:
setActiveString
in interfaceILookupType
-
getActive
public boolean getActive()Description copied from interface:ILookupType
Gets the active.- Specified by:
getActive
in interfaceILookupType
- Returns:
- the active
-
setActive
public void setActive(boolean active) Description copied from interface:ILookupType
Sets the active.- Specified by:
setActive
in interfaceILookupType
- Parameters:
active
- the new active
-
getDisplayValue
Description copied from interface:ILookupType
Gets the display value.- Specified by:
getDisplayValue
in interfaceILookupType
- Returns:
- the display value
-
getTooltip
Description copied from interface:ILookupType
Gets the tooltip.- Specified by:
getTooltip
in interfaceILookupType
- Returns:
- the tooltip
-
setDisplayValue
Description copied from interface:ILookupType
Sets the display value.- Specified by:
setDisplayValue
in interfaceILookupType
- Parameters:
displayValue
- the new display value
-
setTooltip
Description copied from interface:ILookupType
Sets the tooltip.- Specified by:
setTooltip
in interfaceILookupType
- Parameters:
tooltip
- the new tooltip
-
buildElement
public void buildElement(org.jdom.Element element) Description copied from class:AbstractJDomDataObject
Populates the element with data from this object.- Specified by:
buildElement
in classAbstractJDomDataObject
-
hashCode
public int hashCode() -
equals
-
isValid
public boolean isValid()Description copied from class:NamedType
Check if the object is valid for compute. Override this method where needed- Specified by:
isValid
in interfaceILookupType
- Overrides:
isValid
in classNamedType
-