Package hec.client
Class Shortcut
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.model.WatershedLocation
hec.client.Shortcut
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
,Comparable
,Observer
,Modifiable
This class defines a shortcut object in the list.
- See Also:
-
Field Summary
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
Gets the Alias attribute of the Shortcut objectFormats shortcut's name for display.getName()
Gets the Name attribute of the Shortcut objectgetPath()
Gets the Path attribute of the Shortcut objectboolean
hasAlias()
Method Descriptionvoid
Sets the Alias attribute of the Shortcut objecttoString()
Method DescriptionMethods inherited from class hec.model.WatershedLocation
clone, equals, equals, getColor, getColorString, getDirectory, hashCode, isDirectory, setColor, setDirectory
Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getFieldObject, getIgnoreModifiedEvents, getIndex, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setFieldObject, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTest
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
Shortcut
Create a new Shortcut object- Parameters:
alias
- Descriptionpath
- Descriptioncolor
- Description
-
-
Method Details
-
hasAlias
public boolean hasAlias()Method Description- Returns:
- Description
-
getAlias
Gets the Alias attribute of the Shortcut object- Returns:
- The Alias value
-
setAlias
Sets the Alias attribute of the Shortcut object- Parameters:
newAlias
- The new Alias value
-
getPath
Gets the Path attribute of the Shortcut object- Returns:
- The Path value
-
getName
Gets the Name attribute of the Shortcut object -
getDisplayName
Formats shortcut's name for display. This method can be modified to meet other display format expectations.- Overrides:
getDisplayName
in classNamedType
- Returns:
- The DisplayName value
-
toString
Method Description- Overrides:
toString
in classWatershedLocation
- Returns:
- Description
-