public class FileHistory
extends java.lang.Object
implements java.io.Serializable
File history size isn't parameterised via a property but maybe it should.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FILE_HISTORY_SIZE |
Constructor and Description |
---|
FileHistory() |
Modifier and Type | Method and Description |
---|---|
void |
addChangeAction(java.lang.Runnable action)
Add an action to be taken when the file menu changes, such as
updating the File menu.
|
void |
addHistory(java.io.File file)
Add a file to the history.
|
java.io.File |
get(int i) |
int |
getListSize() |
void |
removeChangeAction(java.lang.Runnable action)
Remove an action.
|
void |
setListSize(int listSize) |
int |
size() |
public static final int DEFAULT_FILE_HISTORY_SIZE
public void addChangeAction(java.lang.Runnable action)
action
- The action.public void removeChangeAction(java.lang.Runnable action)
action
- public void addHistory(java.io.File file)
file
- public int size()
public java.io.File get(int i)
public int getListSize()
public void setListSize(int listSize)