fi.hut.tml.xsmiles.gui.ftv
Class History

java.lang.Object
  extended byfi.hut.tml.xsmiles.gui.ftv.History

public class History
extends java.lang.Object


Constructor Summary
History()
          Creates a new History object using a Enumeration.
History(int size)
          The size of the history can also be speicified
 
Method Summary
 void addURL(java.net.URL url)
          Adds an url to history
 java.net.URL get(int pos)
          Gets the N:th url from the history (For history-menu)
 java.net.URL getFirst()
          The last page visited (For back-functionality)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

History

public History()
Creates a new History object using a Enumeration.


History

public History(int size)
The size of the history can also be speicified

Parameters:
size -
Method Detail

addURL

public void addURL(java.net.URL url)
Adds an url to history

Parameters:
url - The URL to add to history. (goes on top)

get

public java.net.URL get(int pos)
Gets the N:th url from the history (For history-menu)

Returns:
The URL!

getFirst

public java.net.URL getFirst()
The last page visited (For back-functionality)

Returns:
The last visited URL


X-Smiles 1.2