Class AndRenderer
- java.lang.Object
-
- com.hybris.backoffice.workflow.designer.renderer.AndRenderer
-
- All Implemented Interfaces:
NetworkEntityRenderer
public class AndRenderer extends java.lang.Object implements NetworkEntityRenderer
Renderer responsible for displaying and connection
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAND_CONNECTION_PROPERTYstatic java.lang.StringAND_CONNECTION_TEMPLATE_PROPERTYstatic java.lang.StringLABELstatic java.lang.StringVISUALISATION_Xstatic java.lang.StringVISUALISATION_Y
-
Constructor Summary
Constructors Constructor Description AndRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(WorkflowEntity workflowEntity)Suggest whether the given object can be handled by the renderercom.hybris.cockpitng.components.visjs.network.data.Noderender(WorkflowEntity workflowEntity)Returns the object's representation inNetworkUpdateas entitycom.hybris.cockpitng.components.visjs.network.data.Noderender(WorkflowEntity workflowEntity, com.hybris.cockpitng.components.visjs.network.data.Node node)Returns the object's representation inNetworkUpdateas entity based on already existing nodevoidsetKeyGenerator(KeyGenerator keyGenerator)
-
-
-
Field Detail
-
LABEL
public static final java.lang.String LABEL
- See Also:
- Constant Field Values
-
AND_CONNECTION_TEMPLATE_PROPERTY
public static final java.lang.String AND_CONNECTION_TEMPLATE_PROPERTY
- See Also:
- Constant Field Values
-
AND_CONNECTION_PROPERTY
public static final java.lang.String AND_CONNECTION_PROPERTY
- See Also:
- Constant Field Values
-
VISUALISATION_X
public static final java.lang.String VISUALISATION_X
- See Also:
- Constant Field Values
-
VISUALISATION_Y
public static final java.lang.String VISUALISATION_Y
- See Also:
- Constant Field Values
-
-
Method Detail
-
canHandle
public boolean canHandle(WorkflowEntity workflowEntity)
Description copied from interface:NetworkEntityRendererSuggest whether the given object can be handled by the renderer- Specified by:
canHandlein interfaceNetworkEntityRenderer- Parameters:
workflowEntity- object to be checked if it can be handled- Returns:
- true if renderer supports the object, false otherwise
-
render
public com.hybris.cockpitng.components.visjs.network.data.Node render(WorkflowEntity workflowEntity)
Description copied from interface:NetworkEntityRendererReturns the object's representation inNetworkUpdateas entity- Specified by:
renderin interfaceNetworkEntityRenderer- Parameters:
workflowEntity- object to be rendered- Returns:
- objects' representation in
NetworkUpdate
-
render
public com.hybris.cockpitng.components.visjs.network.data.Node render(WorkflowEntity workflowEntity, com.hybris.cockpitng.components.visjs.network.data.Node node)
Description copied from interface:NetworkEntityRendererReturns the object's representation inNetworkUpdateas entity based on already existing node- Specified by:
renderin interfaceNetworkEntityRenderer- Parameters:
workflowEntity- object to be renderednode- baseline of new node- Returns:
-
setKeyGenerator
public void setKeyGenerator(KeyGenerator keyGenerator)
-
-