Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.bean
Class Crumb  view Crumb download Crumb.java

java.lang.Object
  extended bycom.RuntimeCollective.webapps.bean.Crumb

public class Crumb
extends java.lang.Object

A single crumb of the crumb trail.

Version:
$Id: Crumb.java,v 1.3 2003/09/30 15:13:09 joe Exp $

Field Summary
protected  java.lang.String forward
          The name of the action forward that this crumb should take the user to.
protected  java.lang.String label
          The label of this crumb.
 
Constructor Summary
Crumb(java.lang.String label, java.lang.String forward)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Override the equals method.
 java.lang.String getForward()
          Get the name of the action forward that this crumb should take the user to.
 java.lang.String getLabel()
          Get the label of this crumb.
 void setForward(java.lang.String forward)
          Set the name of the action forward that this crumb should take the user to.
 void setLabel(java.lang.String label)
          Set the label of this crumb.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

protected java.lang.String label
The label of this crumb.


forward

protected java.lang.String forward
The name of the action forward that this crumb should take the user to.

Constructor Detail

Crumb

public Crumb(java.lang.String label,
             java.lang.String forward)
Method Detail

getLabel

public java.lang.String getLabel()
Get the label of this crumb.


setLabel

public void setLabel(java.lang.String label)
Set the label of this crumb.


getForward

public java.lang.String getForward()
Get the name of the action forward that this crumb should take the user to.


setForward

public void setForward(java.lang.String forward)
Set the name of the action forward that this crumb should take the user to.


equals

public boolean equals(java.lang.Object other)
Override the equals method. Two crumbs are considered equal if they have identical forwards.


toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).