com.yworks.yfiles.server.graphml.flexio
Class AbstractInputHandlerProvider

java.lang.Object
  extended byy.io.graphml.input.AbstractInputHandler
      extended bycom.yworks.yfiles.server.graphml.flexio.AbstractInputHandlerProvider
All Implemented Interfaces:
java.util.EventListener, InputHandler, InputHandlerProvider
Direct Known Subclasses:
DefaultValueReadEdgeLayoutHandler, DefaultValueReadNodeLayoutHandler, DefaultValueReadPortLayoutHandler, DefaultValueReadPortStyleHandler, EdgeViewStateInputHandler, LabelCompatInputHandler, LabelInputHandler, NodeExpandedInputHandler, NodeInsetsInputHandler, NodeViewStateInputHandler, PortLocationModelInputHandler, PortViewStateInputHandler, SharedDataInputHandler, ZOrderInputHandler

public abstract class AbstractInputHandlerProvider
extends AbstractInputHandler
implements InputHandlerProvider

A convenience sub class of AbstractInputHandler that implements the InputHandlerProvider interface and calls acceptKey(org.w3c.dom.Element) to decide if it shall provide itself as input handler.


Constructor Summary
AbstractInputHandlerProvider()
           
 
Method Summary
abstract  boolean acceptKey(org.w3c.dom.Element keyDefinition)
          This method is called by onQueryInputHandler(y.io.graphml.input.QueryInputHandlersEvent) and shall decide if the given keyDefinition shall be accepted so that this input handler gets provided for the event.
 void onQueryInputHandler(QueryInputHandlersEvent event)
          If the event is accepted, this input handler is initialized and added to the event.
 
Methods inherited from class y.io.graphml.input.AbstractInputHandler
applyDefault, getDefaultValue, getPrecedence, getValidScopes, initializeFromKeyDefinition, isDefaultExists, isParseDefaultValue, parseData, parseDataCore, setDefaultExists, setDefaultValue, setParseDefaultValue, setPrecedence, setValidScopes, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractInputHandlerProvider

public AbstractInputHandlerProvider()
Method Detail

onQueryInputHandler

public void onQueryInputHandler(QueryInputHandlersEvent event)
                         throws GraphMLParseException
If the event is accepted, this input handler is initialized and added to the event.

Specified by:
onQueryInputHandler in interface InputHandlerProvider
Parameters:
event - Event that contains all data relevant for handler setup.
Throws:
GraphMLParseException

acceptKey

public abstract boolean acceptKey(org.w3c.dom.Element keyDefinition)
This method is called by onQueryInputHandler(y.io.graphml.input.QueryInputHandlersEvent) and shall decide if the given keyDefinition shall be accepted so that this input handler gets provided for the event.

Parameters:
keyDefinition - The key definition to check.
Returns:
true if the key definition shall be accepted, false otherwise.


Copyright © 2000-2013 yWorks GmbH. All rights reserved