pluginCore
Class AdminPlugin.FileListModel
java.lang.Object
javax.swing.AbstractListModel
pluginCore.AdminPlugin.FileListModel
- All Implemented Interfaces:
- Serializable, ListModel
- Enclosing class:
- AdminPlugin
private class AdminPlugin.FileListModel
- extends AbstractListModel
The FileListModel builds a list of .class files from the directory
declared by AdminPlugin.pluginDirectoryPath excluding internal classes
by ignoring every file with a $ in the name.
- Since:
- April, 2006.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
listOfDir
File[] listOfDir
- The list of available plugin files.
AdminPlugin.FileListModel
public AdminPlugin.FileListModel(File dir)
getElementAt
public Object getElementAt(int i)
- This will return a string with the name of the file chosen.
getSize
public int getSize()
- gets the lenght of listOfDir
- Returns:
- listOfDir.length
getSelectedFile
public File getSelectedFile()
- This returns the File object that is selected.
- Returns:
- The selected File object.
isValidIndex
private boolean isValidIndex(int i)