|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.rule.handler.VisualNodeDropHandlerRegistry
This class is the registry for node drop handlers. It is used to register and to lookup the handlers by name.
VisualNodeDropHandler| Constructor Summary | |
VisualNodeDropHandlerRegistry()
Constructs a new empty VisualNodeDropHandlerRegistry
instance. |
|
| Method Summary | |
void |
disable()
Disables the registry. |
void |
enable()
Enables the registry. |
VisualNodeDropHandler |
get(java.lang.String name)
Returns the handler with the given name or null if none was registered before. |
boolean |
isEnabled()
Returns true if the registry is enabled, otherwise
false. |
void |
register(java.lang.String name,
VisualNodeDropHandler handler)
Registers a new handler under the given name. |
void |
unregister(java.lang.String name)
Unregisters a new handler under the given name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VisualNodeDropHandlerRegistry()
VisualNodeDropHandlerRegistry
instance.
| Method Detail |
public final VisualNodeDropHandler get(java.lang.String name)
name - id that uniquely identifies the handler,
this value may not be null
null if none was found.
public final void register(java.lang.String name,
VisualNodeDropHandler handler)
A potentially existing previous handler with the same name is overridden by the new handler
.
name - id that uniquely identifies the handler. A previous
handler with the same name is overridden,
this value may not be nullhandler - the handler to register,
this value may not be nullpublic final void unregister(java.lang.String name)
name - id that uniquely identifies the handler,
this value may not be nullpublic final void disable()
public final void enable()
public final boolean isEnabled()
true if the registry is enabled, otherwise
false.
true if the registry is enabled, otherwise
false.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||