|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
pluginCore.Plugin
pluginCore.AdminPlugin
public class AdminPlugin
Nested Class Summary | |
---|---|
private class |
AdminPlugin.FileListModel
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. |
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private JFrame |
adminFrame
|
private JList |
fileList
|
private AdminPlugin.FileListModel |
fileListModel
|
private DefaultListModel |
listModel
|
private JList |
loadedPlugList
|
private static String |
myHomePath
This should be the path to the plugin you keep the plugins in. |
private static String |
pluginDirectoryPath
This should be the path to the plugin you keep the plugins in. |
private static String |
pluginPrefix
This is also a bit of a hack for this, you need to spesify the full package name of the plugin you want to load. |
Fields inherited from class pluginCore.Plugin |
---|
DEBUG, frameworkCore, pluginID, pluginName, TRACE |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
AdminPlugin()
|
Method Summary | |
---|---|
private JList |
buildFileList()
Creates the file list. |
private JPanel |
buildSwapMenue()
This build the swap menue on the interface. |
private void |
fillLoadedPlugList()
This method will get the list of plugins that are loaded and fill out the list in the interface. |
private JButton |
getLoadButton()
Creates the load plugin button. |
private JButton |
getReloadListButton()
Builds a button labled "Refresh Loaded Plugin List" and calls fillLoadedPlugList() |
private JButton |
getSwapButton()
Creates the swap button. |
private void |
loadSelected()
|
int |
receive(Message msgIn)
Hands a message to the plug-in from another plug-in via the PluginCore. |
void |
run()
The main loop of the plug-in. |
Object[] |
savePluginState()
Saves the current state of the object in a Vector. |
boolean |
setPluginState(Object[] stateVec)
Sets the current state of the object using a vector of objects. |
void |
shutdown()
Called by the PluginCore, allows plug-ins to exit in a tidy and controlled manner. |
private void |
swapSelected()
This is called to swap the plugins that are selected. |
Methods inherited from class pluginCore.Plugin |
---|
debugStatus, getID, getPluginName, loadNewState, printDebug, printError, printTrace, safeJoin, safeJoin, safeSleep, setCoreHandeler, setID, toString |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final String myHomePath
private static final String pluginPrefix
private static final String pluginDirectoryPath
private JFrame adminFrame
private AdminPlugin.FileListModel fileListModel
private JList fileList
private JList loadedPlugList
private DefaultListModel listModel
Constructor Detail |
---|
AdminPlugin()
Method Detail |
---|
private void fillLoadedPlugList()
private JPanel buildSwapMenue()
public void run()
Plugin
run
in interface Runnable
run
in class Plugin
public void shutdown()
Plugin
shutdown
in class Plugin
public int receive(Message msgIn)
Plugin
receive
in class Plugin
msgIn
- The message that is being delivered.
private void swapSelected()
private void loadSelected()
private JButton getReloadListButton()
private JButton getSwapButton()
private JButton getLoadButton()
private JList buildFileList()
public Object[] savePluginState()
Plugin
savePluginState
in class Plugin
public boolean setPluginState(Object[] stateVec)
Plugin
setPluginState
in class Plugin
stateVec
- This Vector object will hold the objects to load from.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |