Class AbstractViewEventHandler
- java.lang.Object
-
- com.hybris.backoffice.widgets.networkchart.handler.AbstractViewEventHandler
-
- All Implemented Interfaces:
ViewEventHandler
public abstract class AbstractViewEventHandler extends java.lang.Object implements ViewEventHandler
Implementation ofViewEventHandlerwith empty updates. Extend it in case you want to handle only few events. It allows to reduce boilerplate code.
-
-
Constructor Summary
Constructors Constructor Description AbstractViewEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkUpdatesonBlur(Edge edge, NetworkChartContext context)Handles blur event on an edge.NetworkUpdatesonBlur(Node node, NetworkChartContext context)Handles blur event on a node.NetworkUpdatesonClick(Edge edge, NetworkChartContext context)Handles click event on an edge.NetworkUpdatesonClick(Node node, NetworkChartContext context)Handles click event on a node.NetworkUpdatesonDeselect(Edges edges, NetworkChartContext context)Handles deselect event on edges.NetworkUpdatesonDeselect(Nodes nodes, NetworkChartContext context)Handles deselect event on nodes.NetworkUpdatesonDoubleClick(Edge edge, NetworkChartContext context)Handles double click event on an edge.NetworkUpdatesonDoubleClick(Node node, NetworkChartContext context)Handles double click event on a node.NetworkUpdatesonHover(Edge edge, NetworkChartContext context)Handles hover event on an edge.NetworkUpdatesonHover(Node node, NetworkChartContext context)Handles hover event on a node.NetworkUpdatesonSelect(Edge edge, NetworkChartContext context)Handles selection event on an edge.NetworkUpdatesonSelect(Node node, NetworkChartContext context)Handles selection event on a node.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.backoffice.widgets.networkchart.handler.ViewEventHandler
onDragEnd
-
-
-
-
Method Detail
-
onClick
public NetworkUpdates onClick(Node node, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles click event on a node.- Specified by:
onClickin interfaceViewEventHandler- Parameters:
node- which has been clicked.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onDoubleClick
public NetworkUpdates onDoubleClick(Node node, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles double click event on a node.- Specified by:
onDoubleClickin interfaceViewEventHandler- Parameters:
node- which has been double clicked.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onSelect
public NetworkUpdates onSelect(Node node, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles selection event on a node.- Specified by:
onSelectin interfaceViewEventHandler- Parameters:
node- which has been selected.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onDeselect
public NetworkUpdates onDeselect(Nodes nodes, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles deselect event on nodes.- Specified by:
onDeselectin interfaceViewEventHandler- Parameters:
nodes- list of nodes which have been deselected.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onClick
public NetworkUpdates onClick(Edge edge, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles click event on an edge.- Specified by:
onClickin interfaceViewEventHandler- Parameters:
edge- which has been clicked.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onDoubleClick
public NetworkUpdates onDoubleClick(Edge edge, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles double click event on an edge.- Specified by:
onDoubleClickin interfaceViewEventHandler- Parameters:
edge- which has been double clicked.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onSelect
public NetworkUpdates onSelect(Edge edge, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles selection event on an edge.- Specified by:
onSelectin interfaceViewEventHandler- Parameters:
edge- which has been selected.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onDeselect
public NetworkUpdates onDeselect(Edges edges, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles deselect event on edges.- Specified by:
onDeselectin interfaceViewEventHandler- Parameters:
edges- list of edges which have been deselected.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onHover
public NetworkUpdates onHover(Edge edge, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles hover event on an edge.- Specified by:
onHoverin interfaceViewEventHandler- Parameters:
edge- which has been hovered.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onHover
public NetworkUpdates onHover(Node node, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles hover event on a node.- Specified by:
onHoverin interfaceViewEventHandler- Parameters:
node- which has been hovered.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onBlur
public NetworkUpdates onBlur(Node node, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles blur event on a node.- Specified by:
onBlurin interfaceViewEventHandler- Parameters:
node- which has been blurred.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
onBlur
public NetworkUpdates onBlur(Edge edge, NetworkChartContext context)
Description copied from interface:ViewEventHandlerHandles blur event on an edge.- Specified by:
onBlurin interfaceViewEventHandler- Parameters:
edge- which has been blurred.context- with additional information- Returns:
NetworkUpdateschanges which should be applied on view.
-
-