/** * Sets the panel header * * @param panelHeader */ public void setPanelHeader(Div panelHeader) { this.panelHeader = panelHeader; if (this.panelHeader != null) { this.panelHeader.addClass(BSComponentPanelOptions.Panel_Heading); } }
/** * Sets the panel header * * @param panelHeader */ public void setPanelHeader(Div panelHeader) { this.panelHeader = panelHeader; if (this.panelHeader != null) { this.panelHeader.addClass(BSComponentPanelOptions.Panel_Heading); } }
/** * Sets the tab content * * @param tabContent */ public J setTabContent(Div tabContent) { this.tabContent = tabContent; if (this.tabContent != null) { this.tabContent.addClass("tab-content"); } return (J) this; }
/** * Sets the tab content * * @param tabContent */ public J setTabContent(Div tabContent) { this.tabContent = tabContent; if (this.tabContent != null) { this.tabContent.addClass("tab-content"); } return (J) this; }
/** * sets the help block with errors * * @param helpBlockWithErrors * * @return */ public J setHelpBlockWithErrors(@NotNull Div helpBlockWithErrors) { this.helpBlockWithErrors = helpBlockWithErrors; this.helpBlockWithErrors.addClass("help-block with-errors col-form-label"); return (J) this; }
/** * sets the help block with errors * * @param helpBlockWithErrors * * @return */ public J setHelpBlockWithErrors(@NotNull Div helpBlockWithErrors) { this.helpBlockWithErrors = helpBlockWithErrors; this.helpBlockWithErrors.addClass("help-block with-errors col-form-label"); return (J) this; }
/** * Sets the panel header button bar to the assigned Div * * @param panelHeaderButtonBar */ public void setPanelHeaderButtonBar(Div panelHeaderButtonBar) { this.panelHeaderButtonBar = panelHeaderButtonBar; if (panelHeaderButtonBar != null) { panelHeaderButtonBar.addClass(BSDefaultOptions.Btn_Group); panelHeaderButtonBar.addClass(BSDefaultOptions.Pull_Right); getPanelHeader().add(panelHeaderButtonBar); } }
/** * Sets the panel body * * @param panelBody */ public void setPanelBody(Div panelBody) { getChildren().remove(this.panelBody); this.panelBody = panelBody; if (this.panelBody != null) { this.panelBody.addClass(BSComponentPanelOptions.Panel_Body); } }
/** * Sets the panel body * * @param panelBody */ public void setPanelBody(Div panelBody) { getChildren().remove(this.panelBody); this.panelBody = panelBody; if (this.panelBody != null) { this.panelBody.addClass(BSComponentPanelOptions.Panel_Body); } }
/** * Sets the panel header button bar to the assigned Div * * @param panelHeaderButtonBar */ public void setPanelHeaderButtonBar(Div panelHeaderButtonBar) { this.panelHeaderButtonBar = panelHeaderButtonBar; if (panelHeaderButtonBar != null) { panelHeaderButtonBar.addClass(BSDefaultOptions.Btn_Group); panelHeaderButtonBar.addClass(BSDefaultOptions.Pull_Right); getPanelHeader().add(panelHeaderButtonBar); } }
/** * Sets the media body and adds it to this object * * @param mediaBody * * @return */ @Override public BSMedia setMediaBody(Div mediaBody) { if (this.mediaBody != null) { getChildren().remove(this.mediaBody); this.mediaBody = null; } this.mediaBody = mediaBody; if (this.mediaBody != null) { this.mediaBody.addClass(BSComponentMediaOptions.Media_Body); } getChildren().add(mediaBody); return this; }
/** * Sets the media body and adds it to this object * * @param mediaBody * * @return */ @Override public BSMedia setMediaBody(Div mediaBody) { if (this.mediaBody != null) { getChildren().remove(this.mediaBody); this.mediaBody = null; } this.mediaBody = mediaBody; if (this.mediaBody != null) { this.mediaBody.addClass(BSComponentMediaOptions.Media_Body); } getChildren().add(mediaBody); return this; }