Class StaticContentStep

All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IWizardStep, IFeedbackContributor, IConverterLocator, IMetadataContext<Serializable,Component>, IQueueRegion, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class StaticContentStep extends WizardStep
A wizard step that displays the provided static content without expecting any input.
Author:
eelcohillenius
See Also:
  • Constructor Details

    • StaticContentStep

      public StaticContentStep(boolean allowHtml)
      Constructor for if you want to set all the properties yourself.
      Parameters:
      allowHtml - If true, any html of the content will be rendered as is. Otherwise, it will be escaped.
    • StaticContentStep

      public StaticContentStep(IModel<String> title, IModel<String> summary, IModel<?> content, boolean allowHtml)
      Construct.
      Parameters:
      title - The title of this step
      summary - The summary of this step
      content - The content of the step panel
      allowHtml - If true, any html of the content will be rendered as is. Otherwise, it will be escaped.
    • StaticContentStep

      public StaticContentStep(IModel<String> title, IModel<String> summary, String content, boolean allowHtml)
      Construct.
      Parameters:
      title - The title of this step
      summary - The summary of this step
      content - The content of the step panel
      allowHtml - If true, any html of the content will be rendered as is. Otherwise, it will be escaped.
    • StaticContentStep

      public StaticContentStep(String title, String summary, IModel<?> content, boolean allowHtml)
      Construct.
      Parameters:
      title - The title of this step
      summary - The summary of this step
      content - The content of the step panel
      allowHtml - If true, any html of the content will be rendered as is. Otherwise, it will be escaped.
    • StaticContentStep

      public StaticContentStep(String title, String summary, String content, boolean allowHtml)
      Construct.
      Parameters:
      title - The title of this step
      summary - The summary of this step
      content - The content of the step panel
      allowHtml - If true, any html of the content will be rendered as is. Otherwise, it will be escaped.
  • Method Details

    • getAllowHtml

      public final boolean getAllowHtml()
      Gets whether html is allowed as output.
      Returns:
      Whether html is allowed as output
    • getContent

      public final String getContent()
      Gets the content from the content model.
      Returns:
      The content
    • getContentModel

      public final IModel<?> getContentModel()
      Gets the content model.
      Returns:
      The content model
    • setContentModel

      public final <T> void setContentModel(IModel<T> content)
      Sets the content model.
      Type Parameters:
      T - The model object type
      Parameters:
      content - The content model