edu.washington.cs.supple.render.shortcut
Class NavShortcut

java.lang.Object
  extended byedu.washington.cs.supple.render.shortcut.NavShortcut
All Implemented Interfaces:
java.io.Serializable, Shortcut

public class NavShortcut
extends java.lang.Object
implements Shortcut

Author:
kgajos Used to describe navigational shortcuts
See Also:
Serialized Form

Field Summary
protected  UiObject source
           
protected  UiObject target
           
 
Fields inherited from interface edu.washington.cs.supple.render.shortcut.Shortcut
serialVersionUID
 
Constructor Summary
NavShortcut(UiObject source, UiObject target)
          Initializes a navigational shortcut
 
Method Summary
 boolean equals(java.lang.Object o)
          Two shortcuts are considered equal if their sources and targets are the same
 UiObject getSource()
          returns the source (or context) for this shortcut
 UiObject getTarget()
          Returns the UiObject that the shortcut points to
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

source

protected UiObject source

target

protected UiObject target
Constructor Detail

NavShortcut

public NavShortcut(UiObject source,
                   UiObject target)
Initializes a navigational shortcut

Parameters:
source - the source (context) for this shortcut
target - the target for this shortcut
Method Detail

getTarget

public UiObject getTarget()
Description copied from interface: Shortcut
Returns the UiObject that the shortcut points to

Specified by:
getTarget in interface Shortcut
Returns:
the UiObject that the shortcut points to

getSource

public UiObject getSource()
returns the source (or context) for this shortcut

Returns:
the source (or context) for this shortcut

toString

public java.lang.String toString()

hashCode

public int hashCode()

equals

public boolean equals(java.lang.Object o)
Two shortcuts are considered equal if their sources and targets are the same

Parameters:
o - an object to compare this shortcut to