Class PlaceholderProjectContextChangedEvent

java.lang.Object
de.xima.fc.gui.event.PlaceholderProjectContextChangedEvent
All Implemented Interfaces:
Serializable

public class PlaceholderProjectContextChangedEvent extends Object implements Serializable
Event data that may be used when the selected project for the placeholder dialog has changed. Makes the placeholder dialog display the form field for that project.
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • PlaceholderProjectContextChangedEvent

      public PlaceholderProjectContextChangedEvent(Projekt project)
      Create a new event data instance for when context change to the given project occurred, assuming it uses the Projekt.getActiveVersion() and Projekt.getActiveWorkflowVersion().
      Parameters:
      project - New project context.
    • PlaceholderProjectContextChangedEvent

      public PlaceholderProjectContextChangedEvent(Projekt project, FormVersion formVersion, WorkflowVersion workflowVersion)
      Creates a new event for a context change to the given project with the given form and workflow version, which may not be equal to the active version.
      Parameters:
      project - New project context.
      formVersion - Form version that is being edited.
      workflowVersion - Workflow version that is being edited.
  • Method Details

    • getFormVersion

      public FormVersion getFormVersion()
      Returns:
      The form version of the newly selected project.
    • getProject

      public Projekt getProject()
      Returns:
      The project that was selected and for which the available form placeholders should be shown.
    • getWorkflowVersion

      public WorkflowVersion getWorkflowVersion()
      Returns:
      The workflow version of the newly selected proect.