Class Flowchart

  • All Implemented Interfaces:
    IWidgetConfigProviding<FlowchartClientConfig>, EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.TransientStateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, org.primefaces.component.api.PrimeClientBehaviorHolder, org.primefaces.component.api.Widget

    public class Flowchart
    extends FlowchartBase
    implements javax.faces.event.ComponentSystemEventListener
    Component handler for the flowchart component that can represent a syntax tree-like program as a diagram and also allows editing. The available triggers and nodes of the program are dynamically definable. A handler must be provided for each node and trigger. The handler controls how the nodes and triggers are rendered, and how the user can interact with them.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Field Detail

      • SEQUENCE_NODE_KIND

        public static final String SEQUENCE_NODE_KIND
        The node kind for the built-in sequence node handler.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Flowchart

        public Flowchart()
    • Method Detail

      • addSubmittedParams

        public void addSubmittedParams​(ElementKey nodeKey,
                                       com.alibaba.fastjson.JSONObject params)
        Only used by the renderer during the ApplyRequestValuesPhase. Stored temporarily and applies to the model during UpdateModelValuesPhase phase.
        Parameters:
        nodeKey - Submitted node key.
        params - Submitted params.
      • getBehaviorEventMapping

        public Map<String,​Class<? extends javax.faces.event.BehaviorEvent>> getBehaviorEventMapping()
        Specified by:
        getBehaviorEventMapping in interface org.primefaces.component.api.PrimeClientBehaviorHolder
      • getEventNames

        public Collection<String> getEventNames()
        Specified by:
        getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder
        Overrides:
        getEventNames in class javax.faces.component.UIComponentBase
      • processEvent

        public void processEvent​(javax.faces.event.ComponentSystemEvent event)
                          throws javax.faces.event.AbortProcessingException
        Specified by:
        processEvent in interface javax.faces.event.ComponentSystemEventListener
        Overrides:
        processEvent in class javax.faces.component.UIComponent
        Throws:
        javax.faces.event.AbortProcessingException
      • processUpdates

        public void processUpdates​(javax.faces.context.FacesContext context)
        Overrides:
        processUpdates in class javax.faces.component.UIComponentBase
      • queueEvent

        public void queueEvent​(javax.faces.event.FacesEvent event)
        Overrides:
        queueEvent in class javax.faces.component.UIComponentBase
      • setSubmittedFlowchartSelection

        public void setSubmittedFlowchartSelection​(FlowchartSelection<?> selection)
        Only used by the renderer during the ApplyRequestValuesPhase. Stored temporarily and applies to the model during UpdateModelValuesPhase phase.
        Parameters:
        selection - Submitted selection
      • setSubmittedHistoryInfo

        public void setSubmittedHistoryInfo​(HistoryInfo historyInfo)
        Only used by the renderer during the ApplyRequestValuesPhase. Stored temporarily and applies to the model during UpdateModelValuesPhase phase.
        Parameters:
        historyInfo - Submitted history info.
      • setSubmittedPatches

        public void setSubmittedPatches​(List<JsonPatchUpdate> patches)
        Only used by the renderer during the ApplyRequestValuesPhase. Stored temporarily and applies to the model during UpdateModelValuesPhase phase.
        Parameters:
        patches - Submitted patches