edu.washington.cs.supple.render.shortcut
Class NavShortcut
java.lang.Object
edu.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
|
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 |
source
protected UiObject source
target
protected UiObject target
NavShortcut
public NavShortcut(UiObject source,
UiObject target)
- Initializes a navigational shortcut
- Parameters:
source - the source (context) for this shortcuttarget - the target for this shortcut
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