com.usefullittlethings.saw.model
Class PluginCollection
java.lang.Object
|
+--java.util.Observable
|
+--com.usefullittlethings.saw.model.PluginCollection
- All Implemented Interfaces:
- java.util.Observer
- public class PluginCollection
- extends java.util.Observable
- implements java.util.Observer
Convenience class for maintaining a collection of filter or
action plug-ins.
Method Summary |
void |
add(int index,
PluginIfc plugin)
|
void |
add(PluginIfc plugin)
|
PluginIfc |
get(int index)
|
PluginIfc |
get(java.lang.String name)
|
void |
move(int oldIndex,
int newIndex)
Moves the plug-in at the specified old index to the specified new index. |
void |
remove(int index)
|
void |
remove(PluginIfc plugin)
|
int |
size()
|
void |
update(java.util.Observable o,
java.lang.Object arg)
This class simply passes on messages to its observers. |
Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginCollection
public PluginCollection()
PluginCollection
public PluginCollection(PluginIfc[] plugins)
add
public void add(PluginIfc plugin)
add
public void add(int index,
PluginIfc plugin)
remove
public void remove(PluginIfc plugin)
remove
public void remove(int index)
get
public PluginIfc get(int index)
get
public PluginIfc get(java.lang.String name)
size
public int size()
move
public void move(int oldIndex,
int newIndex)
- Moves the plug-in at the specified old index to the specified new index.
- Parameters:
oldIndex
- The current index of the plug-in in the collectionnewIndex
- The new index the plug-in should occupy in the collection
update
public void update(java.util.Observable o,
java.lang.Object arg)
- This class simply passes on messages to its observers.
- Specified by:
update
in interface java.util.Observer