/** * Constructor for if you want to set all the properties yourself. * * @param allowHtml * If true, any html of the content will be rendered as is. Otherwise, it will be * escaped. */ public StaticContentStep(final boolean allowHtml) { this.allowHtml = allowHtml; add(new Label("content", "")); }
/** * Sets the content model. * * @param <T> * The model object type * * @param content * The content model */ public final <T> void setContentModel(final IModel<T> content) { this.content = content; replace(new Label("content", content).setEscapeModelStrings(!allowHtml)); } }
/** * Sets the content model. * * @param <T> * The model object type * * @param content * The content model */ public final <T> void setContentModel(IModel<T> content) { this.content = content; replace(new Label("content", content).setEscapeModelStrings(!allowHtml)); } }
/** * Constructor for if you want to set all the properties yourself. * * @param allowHtml * If true, any html of the content will be rendered as is. Otherwise, it will be * escaped. */ public StaticContentStep(boolean allowHtml) { this.allowHtml = allowHtml; add(new Label("content", "")); }
/** * Construct. * * @param title * The title of this step * @param summary * The summary of this step * @param content * The content of the step panel * @param allowHtml * If true, any html of the content will be rendered as is. Otherwise, it will be * escaped. */ public StaticContentStep(final IModel<String> title, final IModel<String> summary, final IModel<?> content, final boolean allowHtml) { super(title, summary); this.content = content; this.allowHtml = allowHtml; add(new Label("content", content).setEscapeModelStrings(!allowHtml)); }
/** * Construct. * * @param title * The title of this step * @param summary * The summary of this step * @param content * The content of the step panel * @param allowHtml * If true, any html of the content will be rendered as is. Otherwise, it will be * escaped. */ public StaticContentStep(IModel<String> title, IModel<String> summary, IModel<?> content, boolean allowHtml) { super(title, summary); this.content = content; this.allowHtml = allowHtml; add(new Label("content", content).setEscapeModelStrings(!allowHtml)); }