Package hec.client

Class Shortcut

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable, Comparable, Observer, Modifiable

public class Shortcut extends WatershedLocation
This class defines a shortcut object in the list.
See Also:
  • Constructor Details

    • Shortcut

      public Shortcut(String alias, String path, String color, boolean isDirectory)
      Create a new Shortcut object
      Parameters:
      alias - Description
      path - Description
      color - Description
  • Method Details

    • hasAlias

      public boolean hasAlias()
      Method Description
      Returns:
      Description
    • getAlias

      public String getAlias()
      Gets the Alias attribute of the Shortcut object
      Returns:
      The Alias value
    • setAlias

      public void setAlias(String newAlias)
      Sets the Alias attribute of the Shortcut object
      Parameters:
      newAlias - The new Alias value
    • getPath

      public String getPath()
      Gets the Path attribute of the Shortcut object
      Returns:
      The Path value
    • getName

      public String getName()
      Gets the Name attribute of the Shortcut object
      Overrides:
      getName in class NamedType
      Returns:
      The Name value
    • getDisplayName

      public String getDisplayName()
      Formats shortcut's name for display. This method can be modified to meet other display format expectations.
      Overrides:
      getDisplayName in class NamedType
      Returns:
      The DisplayName value
    • toString

      public String toString()
      Method Description
      Overrides:
      toString in class WatershedLocation
      Returns:
      Description