ccl.util
Class History

java.lang.Object
  |
  +--ccl.util.History

public class History
extends java.lang.Object

A collection class to store history objects like url objects in a web browser or commands in a shell.


Constructor Summary
History()
           
 
Method Summary
 void add(java.lang.Object oNext_)
           
 java.lang.Object back()
           
 boolean canBack()
          Philosophy is, you can't get back from first object to start status.
 boolean canForward()
           
 java.lang.Object forward()
           
 java.lang.Object getBackElement()
          What the name says.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

History

public History()
Method Detail

add

public void add(java.lang.Object oNext_)

back

public java.lang.Object back()

forward

public java.lang.Object forward()

canForward

public boolean canForward()

canBack

public boolean canBack()
Philosophy is, you can't get back from first object to start status. Like you can't go back from first netscape page to empty page.


getBackElement

public java.lang.Object getBackElement()
What the name says. Does not pop it, so it remains on the stack.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object