/** * Optional captions * <p> * Add captions to your slides easily with the .carousel-caption element within any .carousel-item. Place just about any optional HTML * within there and it will be automatically aligned and * formatted. * * @param caption * * @return */ public BSCarouselItem addCaption(BSCarouselCaption caption) { super.add(caption); return 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 card header for this accordion item * * @param cardHeader */ @SuppressWarnings("unchecked") @NotNull public J setCardHeader(Div cardHeader) { this.cardHeader = cardHeader; this.cardHeader.addAttribute(BSAccordionAttributes.Role.toString(), "tab"); cardHeader.add(getAccordionHeader()); return (J) this; }
/** * Optional captions * <p> * Add captions to your slides easily with the .carousel-caption element within any .carousel-item. Place just about any optional HTML * within there and it will be automatically aligned and * formatted. * * @param caption * * @return */ public BSCarouselItem addCaption(BSCarouselCaption caption) { super.add(caption); return this; }
/** * Sets the card header for this accordion item * * @param cardHeader */ @SuppressWarnings("unchecked") @NotNull public J setCardHeader(Div cardHeader) { this.cardHeader = cardHeader; this.cardHeader.addAttribute(BSAccordionAttributes.Role.toString(), "tab"); cardHeader.add(getAccordionHeader()); 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); } }
/** * Optional captions * <p> * Add captions to your slides easily with the .carousel-caption element within any .carousel-item. Place just about any optional HTML * within there and it will be automatically aligned and * formatted. * * @param caption * * @return */ public BSCarouselItem addCaption(BSCarouselCaption caption) { super.add(caption); return this; }
/** * Optional captions * <p> * Add captions to your slides easily with the .carousel-caption element within any .carousel-item. Place just about any optional HTML within there and it will be automatically * aligned and * formatted. * * @param caption * * @return */ public BSCarouselItem addCaption(BSCarouselCaption caption) { super.add(caption); return this; } }
/** * Optional captions * <p> * Add captions to your slides easily with the .carousel-caption element within any .carousel-item. Place just about any optional HTML within there and it will be automatically * aligned and * formatted. * * @param caption * * @return */ public BSCarouselItem addCaption(BSCarouselCaption caption) { super.add(caption); return this; } }
@Override @NotNull public J add(@NotNull BSAccordionChildren newChild) { getAccordionItems().add((BSAccordionItem) newChild); return super.add(newChild); }
@Override @NotNull public J add(@NotNull BSAccordionChildren newChild) { getAccordionItems().add((BSAccordionItem) newChild); return super.add(newChild); }
/** * Adds the text to the card with the card text * * @param textToAdd * The text to add to the card * * @return The given card text added */ @Override @NotNull public BSCardText addCardText(String textToAdd) { BSCardText p = new BSCardText(textToAdd); super.add(p); return p; }
/** * Adds the text to the card with the card text * * @param textToAdd * The text to add to the card * * @return The given card text added */ @Override @NotNull public BSCardText addCardText(String textToAdd) { BSCardText p = new BSCardText(textToAdd); super.add(p); return p; }
/** * Adds the text to the card with the card text * * @param textToAdd * The text to add to the card * * @return The given card text added */ @Override @NotNull public BSCardText addCardText(String textToAdd) { BSCardText p = new BSCardText(textToAdd); super.add(p); return p; }
/** * Adds a button to the drop down header * * @param dropDownIcon * @param dropDownContent */ public void addDropDownToHeaderButtonBar(ComponentHierarchyBase dropDownIcon, ComponentHierarchyBase dropDownContent) { Button b = new Button(); b.addClass("btn btn-default btn-xs dropdown-toggle"); b.add(dropDownIcon); b.addAttribute(ButtonAttributes.Type, "button"); b.addAttribute(ButtonAttributes.Data_Toggle, "dropdown"); dropDownContent.setTag("ul"); dropDownContent.addClass("dropdown-menu slidedown"); getPanelHeaderButtonBar().add(b); getPanelHeaderButtonBar().add(dropDownContent); }
/** * Sets the header to the required object * * @param mediaHeader * * @return */ @Override public BSMedia setMediaHeader(HeaderText mediaHeader) { if (this.mediaHeader != null) { getMediaBody().remove(this.mediaHeader); this.mediaHeader = null; } this.mediaHeader = mediaHeader; if (this.mediaHeader != null) { this.mediaHeader.addClass(BSComponentMediaOptions.Media_Heading); getMediaBody().add(this.mediaHeader); } return this; }
/** * Sets the header to the required object * * @param mediaHeader * * @return */ @Override public BSMedia setMediaHeader(HeaderText mediaHeader) { if (this.mediaHeader != null) { getMediaBody().remove(this.mediaHeader); this.mediaHeader = null; } this.mediaHeader = mediaHeader; if (this.mediaHeader != null) { this.mediaHeader.addClass(BSComponentMediaOptions.Media_Heading); getMediaBody().add(this.mediaHeader); } return this; }
/** * Adds a button to the drop down header * * @param dropDownIcon * @param dropDownContent */ public void addDropDownToHeaderButtonBar(ComponentHierarchyBase dropDownIcon, ComponentHierarchyBase dropDownContent) { Button b = new Button(); b.addClass("btn btn-default btn-xs dropdown-toggle"); b.add(dropDownIcon); b.addAttribute(ButtonAttributes.Type, "button"); b.addAttribute(ButtonAttributes.Data_Toggle, "dropdown"); dropDownContent.setTag("ul"); dropDownContent.addClass("dropdown-menu slidedown"); getPanelHeaderButtonBar().add(b); getPanelHeaderButtonBar().add(dropDownContent); }