org.oddjob.monitor.model
Class FileHistory

java.lang.Object
  extended by org.oddjob.monitor.model.FileHistory
All Implemented Interfaces:
Serializable

public class FileHistory
extends Object
implements Serializable

Used to Track File history between multiple versions of Oddjob Explorer.

File history size isn't parameterised via a property but maybe it should.

See Also:
Serialized Form
Author:
rob

Field Summary
static int DEFAULT_FILE_HISTORY_SIZE
           
 
Constructor Summary
FileHistory()
           
 
Method Summary
 void addChangeAction(Runnable action)
          Add an action to be taken when the file menu changes, such as updating the File menu.
 void addHistory(File file)
          Add a file to the history.
 File get(int i)
           
 int getListSize()
           
 void removeChangeAction(Runnable action)
          Remove an action.
 void setListSize(int listSize)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FILE_HISTORY_SIZE

public static final int DEFAULT_FILE_HISTORY_SIZE
See Also:
Constant Field Values
Constructor Detail

FileHistory

public FileHistory()
Method Detail

addChangeAction

public void addChangeAction(Runnable action)
Add an action to be taken when the file menu changes, such as updating the File menu.

Parameters:
action - The action.

removeChangeAction

public void removeChangeAction(Runnable action)
Remove an action.

Parameters:
action -

addHistory

public void addHistory(File file)
Add a file to the history.

Parameters:
file -

size

public int size()

get

public File get(int i)

getListSize

public int getListSize()

setListSize

public void setListSize(int listSize)