|
jrworkspace by jTEM |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Controller
The Controller interface of the jRWorkspace plug-in mechanism. It manages the communication between plug-ins through the getPlugin() methods. A plug-in that needs another plug-in to work with should call getPlugin() with the plug-ins class as argument.
Method Summary | ||
---|---|---|
|
deleteProperty(Class<?> context,
String key)
Deletes a property from this controller |
|
|
getPlugin(Class<T> clazz)
Returns an instance of the plug-in class clazz, if there is a plug-in of this class available. |
|
|
getPlugins(Class<T> pClass)
Returns all plug-ins for which the following expression evaluates to true pClass.isAssignableFrom(plug-in) |
|
|
getProperty(Class<?> context,
String key,
T defaultValue)
Retrieves a property from this Controller. |
|
boolean |
isActive(Plugin p)
Returns true if the controller believes this plug-in is active |
|
Object |
storeProperty(Class<?> context,
String key,
Object property)
Stores the property with the given key and context class |
Method Detail |
---|
<T> T deleteProperty(Class<?> context, String key)
T
- The property typecontext
- A contextkey
- The key name of the property to delete
<T extends Plugin> T getPlugin(Class<T> clazz)
T
- the class type of the plug-in to getclazz
- the class
<T> List<T> getPlugins(Class<T> pClass)
T
- the plug-in class typepClass
- the class of type T
<T> T getProperty(Class<?> context, String key, T defaultValue)
T
- The property typecontext
- A contextkey
- the key name of the property to retrievedefaultValue
- a default value, which is returned if the
property was not saved before
boolean isActive(Plugin p)
p
- the plug-in
Object storeProperty(Class<?> context, String key, Object property)
context
- the context class e.g. the plug-in class which stores the valuekey
- a key stringproperty
- the property to save
|
jrworkspace by jTEM |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |