com.pietschy.command.file
Interface RecentFileListModel

All Known Implementing Classes:
DefaultRecentFileListModel

public interface RecentFileListModel

Defines the files to be displayed by RecentFileList instances and provides basic change notification. The main implementing class is DefaultRecentFileListModel.

See Also:
DefaultRecentFileListModel

Method Summary
 void addFileListModelListener(RecentFileListModeListener listener)
          Adds the specified listener to the model.
 void clear()
          Clears the model of all files.
 java.io.File get(int i)
          Gets the file at the specified index.
 void removeFileListModelListener(RecentFileListModeListener listener)
          Removes the specified listener from the model.
 int size()
          Returns the size of the model.
 

Method Detail

size

int size()
Returns the size of the model.

Returns:
the size of the model.

get

java.io.File get(int i)
Gets the file at the specified index.

Parameters:
i - the index
Returns:
the file at the specfied index in the model.

clear

void clear()
Clears the model of all files.


addFileListModelListener

void addFileListModelListener(RecentFileListModeListener listener)
Adds the specified listener to the model.

Parameters:
listener - the listener to add.

removeFileListModelListener

void removeFileListModelListener(RecentFileListModeListener listener)
Removes the specified listener from the model.

Parameters:
listener - the listener to remove.


Copyright © 2006 - 2007 Andrew Pietsch