pluginCore
Class AdminPlugin.FileListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by 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.

Field Summary
(package private)  File[] listOfDir
          The list of available plugin files.
static long serialVersionUID
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
AdminPlugin.FileListModel(File dir)
           
 
Method Summary
 Object getElementAt(int i)
          This will return a string with the name of the file chosen.
 File getSelectedFile()
          This returns the File object that is selected.
 int getSize()
          gets the lenght of listOfDir
private  boolean isValidIndex(int i)
           
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

listOfDir

File[] listOfDir
The list of available plugin files.

Constructor Detail

AdminPlugin.FileListModel

public AdminPlugin.FileListModel(File dir)
Method Detail

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)