All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ccl.util.History

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

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

Version:
$Id: History.java,v 1.3 1999/11/22 13:48:40 clemens Exp clemens $
Author:
Chr. Clemens Lee < clemens@kclee.com >

Variable Index

 o _lastIndex
 o _maxIndex
 o _nextIndex
 o _vHistory
 o MAX_SIZE

Constructor Index

 o History()

Method Index

 o add(Object)
 o back()
 o canBack()
Philosophy is, you can't get back from first object to start status.
 o canForward()
 o forward()
 o getBackElement()
What the name says.
 o toString()

Variables

 o MAX_SIZE
 private static final int MAX_SIZE
 o _vHistory
 private Vector _vHistory
 o _nextIndex
 private int _nextIndex
 o _maxIndex
 private int _maxIndex
 o _lastIndex
 private int _lastIndex

Constructors

 o History
 public History()

Methods

 o add
 public void add(Object oNext_)
 o back
 public Object back()
 o forward
 public Object forward()
 o canForward
 public boolean canForward()
 o 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.

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

 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index