|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject y.io.graphml.input.QueryInputHandlersEvent
public final class QueryInputHandlersEvent
Specialized EventObject
that is used for dynamic InputHandler
registration.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
QueryInputHandlersEvent(java.lang.Object source,
GraphMLParseContext context,
org.w3c.dom.Element keyDefinition,
java.util.List handlers)
Create a new instance. |
Method Summary | |
---|---|
void |
addInputHandler(InputHandler handler)
Register an InputHandler instance for the current getKeyDefinition() . |
GraphMLParseContext |
getContext()
The GraphMLParseContext instance that can queried for further information. |
org.w3c.dom.Element |
getKeyDefinition()
The key definition of the GraphML attribute. |
boolean |
isHandled()
Sets whether the current GraphML attribute has been processed. |
void |
setHandled(boolean value)
Queries whether the current GraphML attribute has been processed. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryInputHandlersEvent(java.lang.Object source, GraphMLParseContext context, org.w3c.dom.Element keyDefinition, java.util.List handlers)
source
- The origin of the eventcontext
- The current parse context.keyDefinition
- The current key definitionhandlers
- Stores the registered InputHandler
instances.addInputHandler(InputHandler)
Method Detail |
---|
public void addInputHandler(InputHandler handler)
InputHandler
instance for the current getKeyDefinition()
.
Calling this method automatically sets isHandled()
to true
.
handler
- The InputHandler
to register.public org.w3c.dom.Element getKeyDefinition()
This XML element should be queried to determine if an InputHandler
should be registered
with addInputHandler(InputHandler)
.
key
definition.public boolean isHandled()
This is automatically set by calling addInputHandler(InputHandler)
,
so it should be seldom necessary to set this property manually.
true iff the event is completely handled.- See Also:
setHandled(boolean)
,
addInputHandler(InputHandler)
public void setHandled(boolean value)
This is automatically set by calling addInputHandler(InputHandler)
,
so it should be seldom necessary to set this property manually.
value
- true iff the event is completely handled.- See Also:
isHandled()
,
addInputHandler(InputHandler)
public GraphMLParseContext getContext()
GraphMLParseContext
instance that can queried for further information.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |