public final class QueryInputHandlersEventArgs extends Object implements IEventArgs
IEventArgs that are used for dynamic IInputHandler registration.EMPTY| Constructor and Description |
|---|
QueryInputHandlersEventArgs(IParseContext context,
Element keyDefinition,
List<IInputHandler> handlers)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInputHandler(IInputHandler handler)
Register an
IInputHandler instance for the current KeyDefinition. |
IParseContext |
getContext()
The
IParseContext instance that can queried for further information. |
IEnumerable<IInputHandler> |
getHandlers()
The
IInputHandlers that have been registered on this event argument instance so far. |
Element |
getKeyDefinition()
The key definition of the GraphML attribute.
|
boolean |
isHandled()
Gets or query whether the current GraphML attribute has been processed.
|
void |
setHandled(boolean value)
Sets or query whether the current GraphML attribute has been processed.
|
public QueryInputHandlersEventArgs(IParseContext context, Element keyDefinition, List<IInputHandler> handlers)
context - The current parse context.keyDefinition - The current key definitionhandlers - Stores the registered IInputHandler instances.public final void addInputHandler(IInputHandler handler)
IInputHandler instance for the current KeyDefinition.
Calling this method automatically sets Handled to true.
public final IParseContext getContext()
IParseContext instance that can queried for further information.public final IEnumerable<IInputHandler> getHandlers()
IInputHandlers that have been registered on this event argument instance so far.public final Element getKeyDefinition()
This XML element should be queried to determine if an IInputHandler should be registered with
addInputHandler(IInputHandler)
public final boolean isHandled()
This is automatically set by calling
addInputHandler(IInputHandler), so it should be seldom necessary to set this property manually.
setHandled(boolean)public final void setHandled(boolean value)
This is automatically set by calling
addInputHandler(IInputHandler), so it should be seldom necessary to set this property manually.
value - The Handled to set.isHandled()