Class DataManipulationDetectingHandler

  • All Implemented Interfaces:
    com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler

    public class DataManipulationDetectingHandler
    extends java.lang.Object
    implements com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
    Notifies about changes to listener and delegates handler methods to delegate. The listener will not be notified about empty changes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler getDelegate()  
      WorkflowDesignerDataManipulationListener getListener()  
      protected com.hybris.cockpitng.core.model.WidgetModel getModel​(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      protected void notifyWhenChangedWithModel​(com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates networkUpdates, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onAdd​(com.hybris.cockpitng.components.visjs.network.data.Edge edge, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onAdd​(com.hybris.cockpitng.components.visjs.network.data.Node node, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onAddNodeButtonClick​(com.hybris.cockpitng.components.visjs.network.event.ClickOnAddNodeButtonEvent event, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onCancel​(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onEdit​(com.hybris.cockpitng.components.visjs.network.data.EdgeUpdate edgeUpdate, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onEdit​(com.hybris.cockpitng.components.visjs.network.data.Node node, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onRefresh​(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onRemove​(com.hybris.cockpitng.components.visjs.network.data.Edges edges, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onRemove​(com.hybris.cockpitng.components.visjs.network.data.Nodes nodes, com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onSave​(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)  
      void setDelegate​(com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler delegate)  
      void setListener​(WorkflowDesignerDataManipulationListener listener)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataManipulationDetectingHandler

        public DataManipulationDetectingHandler()
    • Method Detail

      • onAdd

        public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onAdd​(com.hybris.cockpitng.components.visjs.network.data.Node node,
                                                                                           com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
        Specified by:
        onAdd in interface com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
      • onEdit

        public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onEdit​(com.hybris.cockpitng.components.visjs.network.data.Node node,
                                                                                            com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
        Specified by:
        onEdit in interface com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
      • onRemove

        public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onRemove​(com.hybris.cockpitng.components.visjs.network.data.Nodes nodes,
                                                                                              com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
        Specified by:
        onRemove in interface com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
      • onAdd

        public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onAdd​(com.hybris.cockpitng.components.visjs.network.data.Edge edge,
                                                                                           com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
        Specified by:
        onAdd in interface com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
      • onEdit

        public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onEdit​(com.hybris.cockpitng.components.visjs.network.data.EdgeUpdate edgeUpdate,
                                                                                            com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
        Specified by:
        onEdit in interface com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
      • onRemove

        public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onRemove​(com.hybris.cockpitng.components.visjs.network.data.Edges edges,
                                                                                              com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
        Specified by:
        onRemove in interface com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
      • onAddNodeButtonClick

        public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onAddNodeButtonClick​(com.hybris.cockpitng.components.visjs.network.event.ClickOnAddNodeButtonEvent event,
                                                                                                          com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
        Specified by:
        onAddNodeButtonClick in interface com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
      • notifyWhenChangedWithModel

        protected void notifyWhenChangedWithModel​(com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates networkUpdates,
                                                  com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
      • onSave

        public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onSave​(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
        Specified by:
        onSave in interface com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
      • onRefresh

        public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onRefresh​(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
        Specified by:
        onRefresh in interface com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
      • onCancel

        public com.hybris.cockpitng.components.visjs.network.response.NetworkUpdates onCancel​(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
        Specified by:
        onCancel in interface com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler
      • getModel

        protected com.hybris.cockpitng.core.model.WidgetModel getModel​(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
      • getDelegate

        public com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler getDelegate()
      • setDelegate

        public void setDelegate​(com.hybris.backoffice.widgets.networkchart.handler.DataManipulationHandler delegate)