public class FileHistory extends Object implements 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(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() |
public static final int DEFAULT_FILE_HISTORY_SIZE
public void addChangeAction(Runnable action)
action
- The action.public void removeChangeAction(Runnable action)
action
- public void addHistory(File file)
file
- public int size()
public File get(int i)
public int getListSize()
public void setListSize(int listSize)