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, YYYYFields 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 TypeMethodDescriptionvoidbuildElement(org.jdom.Element element) Populates the element with data from this object.booleanbooleanGets the active.Gets the display value.Gets the tooltip.inthashCode()booleanisValid()Check if the object is valid for compute.voidsetActive(boolean active) Sets the active.voidsetActiveString(String active) voidsetDisplayValue(String displayValue) Sets the display value.voidsetOfficeId(String officeId) voidsetTooltip(String tooltip) Sets the tooltip.Methods inherited from class hec.data.AbstractJDomDataObject
buildElementOrRemove, camelCaseToLowerUnderbar, getDefaultElementName, getXmlDate, getXmlValue, parseDouble, parseFormattedDouble, parseInt, setXmlDate, setXmlValue, toXmlStringMethods 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, useRecursiveModifiedTestMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
getOfficeIdin interfaceILookupType
-
setOfficeId
- Specified by:
setOfficeIdin interfaceILookupType
-
getActiveString
- Specified by:
getActiveStringin interfaceILookupType
-
setActiveString
- Specified by:
setActiveStringin interfaceILookupType
-
getActive
public boolean getActive()Description copied from interface:ILookupTypeGets the active.- Specified by:
getActivein interfaceILookupType- Returns:
- the active
-
setActive
public void setActive(boolean active) Description copied from interface:ILookupTypeSets the active.- Specified by:
setActivein interfaceILookupType- Parameters:
active- the new active
-
getDisplayValue
Description copied from interface:ILookupTypeGets the display value.- Specified by:
getDisplayValuein interfaceILookupType- Returns:
- the display value
-
getTooltip
Description copied from interface:ILookupTypeGets the tooltip.- Specified by:
getTooltipin interfaceILookupType- Returns:
- the tooltip
-
setDisplayValue
Description copied from interface:ILookupTypeSets the display value.- Specified by:
setDisplayValuein interfaceILookupType- Parameters:
displayValue- the new display value
-
setTooltip
Description copied from interface:ILookupTypeSets the tooltip.- Specified by:
setTooltipin interfaceILookupType- Parameters:
tooltip- the new tooltip
-
buildElement
public void buildElement(org.jdom.Element element) Description copied from class:AbstractJDomDataObjectPopulates the element with data from this object.- Specified by:
buildElementin classAbstractJDomDataObject
-
hashCode
public int hashCode() -
equals
-
isValid
public boolean isValid()Description copied from class:NamedTypeCheck if the object is valid for compute. Override this method where needed- Specified by:
isValidin interfaceILookupType- Overrides:
isValidin classNamedType
-