|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pavlov.pluglets.PlugletLoader net.sourceforge.pavlov.pluglets.strategy.StrategyLoader
public class StrategyLoader
A plugin loader for question selection strategies.
Field Summary | |
---|---|
protected Vector<StrategyListener> |
strategyListeners
Objects that want to be notified when user selects a new strategy. |
Fields inherited from class net.sourceforge.pavlov.pluglets.PlugletLoader |
---|
cat, pluglets |
Constructor Summary | |
---|---|
StrategyLoader(String baseClassName,
String directory)
Creates a new StrategyLoader instance. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent evt)
User has clicked a JRadioButtonMenuItem on my menu. |
void |
addStrategyListener(StrategyListener l)
Adds a listener. |
ButtonGroup |
addToJMenuAsRadioButtons(JMenu menu)
Describe addToJMenuAsRadioButtons method here. |
AbstractStrategy |
getCurrentStrategy()
Lets a non-listener know what current strategy is. |
void |
notify(AbstractStrategy newStrategy)
Notify all my listeners that the strategy has changed. |
Methods inherited from class net.sourceforge.pavlov.pluglets.PlugletLoader |
---|
addToAnswerEventProducer, addToContainer, addToJMenuAsCheckboxes, getPluginByName, isAJarFile, mungeName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Vector<StrategyListener> strategyListeners
Constructor Detail |
---|
public StrategyLoader(String baseClassName, String directory)
StrategyLoader
instance.
baseClassName
- a String
valuedirectory
- a String
valueMethod Detail |
---|
public void addStrategyListener(StrategyListener l)
l
- a StrategyListener
valuepublic void notify(AbstractStrategy newStrategy)
newStrategy
- an AbstractStrategy
valuepublic AbstractStrategy getCurrentStrategy()
AbstractStrategy
valuepublic ButtonGroup addToJMenuAsRadioButtons(JMenu menu)
addToJMenuAsRadioButtons
method here.
addToJMenuAsRadioButtons
in class PlugletLoader
menu
- a JMenu
value
ButtonGroup
valuepublic void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
evt
- an ActionEvent
value
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |