com.jwebmp.core.base.html.Div.add()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(242)

本文整理了Java中com.jwebmp.core.base.html.Div.add()方法的一些代码示例,展示了Div.add()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Div.add()方法的具体详情如下:
包路径:com.jwebmp.core.base.html.Div
类名称:Div
方法名:add

Div.add介绍

暂无

代码示例

代码示例来源:origin: com.jwebmp.jre10/jwebmp-bootstrap4

  1. /**
  2. * Optional captions
  3. * <p>
  4. * Add captions to your slides easily with the .carousel-caption element within any .carousel-item. Place just about any optional HTML
  5. * within there and it will be automatically aligned and
  6. * formatted.
  7. *
  8. * @param caption
  9. *
  10. * @return
  11. */
  12. public BSCarouselItem addCaption(BSCarouselCaption caption)
  13. {
  14. super.add(caption);
  15. return this;
  16. }

代码示例来源:origin: com.jwebmp.jre10/jwebmp-bootstrap

  1. /**
  2. * Sets the panel header button bar to the assigned Div
  3. *
  4. * @param panelHeaderButtonBar
  5. */
  6. public void setPanelHeaderButtonBar(Div panelHeaderButtonBar)
  7. {
  8. this.panelHeaderButtonBar = panelHeaderButtonBar;
  9. if (panelHeaderButtonBar != null)
  10. {
  11. panelHeaderButtonBar.addClass(BSDefaultOptions.Btn_Group);
  12. panelHeaderButtonBar.addClass(BSDefaultOptions.Pull_Right);
  13. getPanelHeader().add(panelHeaderButtonBar);
  14. }
  15. }

代码示例来源:origin: com.jwebmp.jre10/jwebmp-bootstrap

  1. /**
  2. * Sets the card header for this accordion item
  3. *
  4. * @param cardHeader
  5. */
  6. @SuppressWarnings("unchecked")
  7. @NotNull
  8. public J setCardHeader(Div cardHeader)
  9. {
  10. this.cardHeader = cardHeader;
  11. this.cardHeader.addAttribute(BSAccordionAttributes.Role.toString(), "tab");
  12. cardHeader.add(getAccordionHeader());
  13. return (J) this;
  14. }

代码示例来源:origin: com.jwebmp/jwebmp-bootstrap4

  1. /**
  2. * Optional captions
  3. * <p>
  4. * Add captions to your slides easily with the .carousel-caption element within any .carousel-item. Place just about any optional HTML
  5. * within there and it will be automatically aligned and
  6. * formatted.
  7. *
  8. * @param caption
  9. *
  10. * @return
  11. */
  12. public BSCarouselItem addCaption(BSCarouselCaption caption)
  13. {
  14. super.add(caption);
  15. return this;
  16. }

代码示例来源:origin: com.jwebmp.jre11/jwebmp-bootstrap

  1. /**
  2. * Sets the card header for this accordion item
  3. *
  4. * @param cardHeader
  5. */
  6. @SuppressWarnings("unchecked")
  7. @NotNull
  8. public J setCardHeader(Div cardHeader)
  9. {
  10. this.cardHeader = cardHeader;
  11. this.cardHeader.addAttribute(BSAccordionAttributes.Role.toString(), "tab");
  12. cardHeader.add(getAccordionHeader());
  13. return (J) this;
  14. }

代码示例来源:origin: com.jwebmp.jre11/jwebmp-bootstrap

  1. /**
  2. * Sets the panel header button bar to the assigned Div
  3. *
  4. * @param panelHeaderButtonBar
  5. */
  6. public void setPanelHeaderButtonBar(Div panelHeaderButtonBar)
  7. {
  8. this.panelHeaderButtonBar = panelHeaderButtonBar;
  9. if (panelHeaderButtonBar != null)
  10. {
  11. panelHeaderButtonBar.addClass(BSDefaultOptions.Btn_Group);
  12. panelHeaderButtonBar.addClass(BSDefaultOptions.Pull_Right);
  13. getPanelHeader().add(panelHeaderButtonBar);
  14. }
  15. }

代码示例来源:origin: com.jwebmp.jre11/jwebmp-bootstrap4

  1. /**
  2. * Optional captions
  3. * <p>
  4. * Add captions to your slides easily with the .carousel-caption element within any .carousel-item. Place just about any optional HTML
  5. * within there and it will be automatically aligned and
  6. * formatted.
  7. *
  8. * @param caption
  9. *
  10. * @return
  11. */
  12. public BSCarouselItem addCaption(BSCarouselCaption caption)
  13. {
  14. super.add(caption);
  15. return this;
  16. }

代码示例来源:origin: com.jwebmp.jre11/jwebmp-bootstrap

  1. /**
  2. * Optional captions
  3. * <p>
  4. * 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
  5. * aligned and
  6. * formatted.
  7. *
  8. * @param caption
  9. *
  10. * @return
  11. */
  12. public BSCarouselItem addCaption(BSCarouselCaption caption)
  13. {
  14. super.add(caption);
  15. return this;
  16. }
  17. }

代码示例来源:origin: com.jwebmp.jre10/jwebmp-bootstrap

  1. /**
  2. * Optional captions
  3. * <p>
  4. * 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
  5. * aligned and
  6. * formatted.
  7. *
  8. * @param caption
  9. *
  10. * @return
  11. */
  12. public BSCarouselItem addCaption(BSCarouselCaption caption)
  13. {
  14. super.add(caption);
  15. return this;
  16. }
  17. }

代码示例来源:origin: com.jwebmp.jre10/jwebmp-bootstrap

  1. @Override
  2. @NotNull
  3. public J add(@NotNull BSAccordionChildren newChild)
  4. {
  5. getAccordionItems().add((BSAccordionItem) newChild);
  6. return super.add(newChild);
  7. }

代码示例来源:origin: com.jwebmp.jre11/jwebmp-bootstrap

  1. @Override
  2. @NotNull
  3. public J add(@NotNull BSAccordionChildren newChild)
  4. {
  5. getAccordionItems().add((BSAccordionItem) newChild);
  6. return super.add(newChild);
  7. }

代码示例来源:origin: com.jwebmp/jwebmp-bootstrap4

  1. /**
  2. * Adds the text to the card with the card text
  3. *
  4. * @param textToAdd
  5. * The text to add to the card
  6. *
  7. * @return The given card text added
  8. */
  9. @Override
  10. @NotNull
  11. public BSCardText addCardText(String textToAdd)
  12. {
  13. BSCardText p = new BSCardText(textToAdd);
  14. super.add(p);
  15. return p;
  16. }

代码示例来源:origin: com.jwebmp.jre11/jwebmp-bootstrap4

  1. /**
  2. * Adds the text to the card with the card text
  3. *
  4. * @param textToAdd
  5. * The text to add to the card
  6. *
  7. * @return The given card text added
  8. */
  9. @Override
  10. @NotNull
  11. public BSCardText addCardText(String textToAdd)
  12. {
  13. BSCardText p = new BSCardText(textToAdd);
  14. super.add(p);
  15. return p;
  16. }

代码示例来源:origin: com.jwebmp.jre10/jwebmp-bootstrap4

  1. /**
  2. * Adds the text to the card with the card text
  3. *
  4. * @param textToAdd
  5. * The text to add to the card
  6. *
  7. * @return The given card text added
  8. */
  9. @Override
  10. @NotNull
  11. public BSCardText addCardText(String textToAdd)
  12. {
  13. BSCardText p = new BSCardText(textToAdd);
  14. super.add(p);
  15. return p;
  16. }

代码示例来源:origin: com.jwebmp.jre10/jwebmp-bootstrap

  1. @Override
  2. public void preConfigure()
  3. {
  4. if (!isConfigured())
  5. {
  6. getPanelHeader().add(getIcon());
  7. getPanelHeader().add(getTitle());
  8. }
  9. super.preConfigure();
  10. }

代码示例来源:origin: com.jwebmp.jre11/jwebmp-bootstrap

  1. @Override
  2. public void preConfigure()
  3. {
  4. if (!isConfigured())
  5. {
  6. getPanelHeader().add(getIcon());
  7. if (getTitle() != null)
  8. {
  9. getPanelHeader().add(getTitle());
  10. }
  11. }
  12. super.preConfigure();
  13. }

代码示例来源:origin: com.jwebmp.jre11/jwebmp-bootstrap

  1. /**
  2. * Adds a button to the drop down header
  3. *
  4. * @param dropDownIcon
  5. * @param dropDownContent
  6. */
  7. public void addDropDownToHeaderButtonBar(ComponentHierarchyBase dropDownIcon, ComponentHierarchyBase dropDownContent)
  8. {
  9. Button b = new Button();
  10. b.addClass("btn btn-default btn-xs dropdown-toggle");
  11. b.add(dropDownIcon);
  12. b.addAttribute(ButtonAttributes.Type, "button");
  13. b.addAttribute(ButtonAttributes.Data_Toggle, "dropdown");
  14. dropDownContent.setTag("ul");
  15. dropDownContent.addClass("dropdown-menu slidedown");
  16. getPanelHeaderButtonBar().add(b);
  17. getPanelHeaderButtonBar().add(dropDownContent);
  18. }

代码示例来源:origin: com.jwebmp.jre11/jwebmp-bootstrap

  1. /**
  2. * Sets the header to the required object
  3. *
  4. * @param mediaHeader
  5. *
  6. * @return
  7. */
  8. @Override
  9. public BSMedia setMediaHeader(HeaderText mediaHeader)
  10. {
  11. if (this.mediaHeader != null)
  12. {
  13. getMediaBody().remove(this.mediaHeader);
  14. this.mediaHeader = null;
  15. }
  16. this.mediaHeader = mediaHeader;
  17. if (this.mediaHeader != null)
  18. {
  19. this.mediaHeader.addClass(BSComponentMediaOptions.Media_Heading);
  20. getMediaBody().add(this.mediaHeader);
  21. }
  22. return this;
  23. }

代码示例来源:origin: com.jwebmp.jre10/jwebmp-bootstrap

  1. /**
  2. * Sets the header to the required object
  3. *
  4. * @param mediaHeader
  5. *
  6. * @return
  7. */
  8. @Override
  9. public BSMedia setMediaHeader(HeaderText mediaHeader)
  10. {
  11. if (this.mediaHeader != null)
  12. {
  13. getMediaBody().remove(this.mediaHeader);
  14. this.mediaHeader = null;
  15. }
  16. this.mediaHeader = mediaHeader;
  17. if (this.mediaHeader != null)
  18. {
  19. this.mediaHeader.addClass(BSComponentMediaOptions.Media_Heading);
  20. getMediaBody().add(this.mediaHeader);
  21. }
  22. return this;
  23. }

代码示例来源:origin: com.jwebmp.jre10/jwebmp-bootstrap

  1. /**
  2. * Adds a button to the drop down header
  3. *
  4. * @param dropDownIcon
  5. * @param dropDownContent
  6. */
  7. public void addDropDownToHeaderButtonBar(ComponentHierarchyBase dropDownIcon, ComponentHierarchyBase dropDownContent)
  8. {
  9. Button b = new Button();
  10. b.addClass("btn btn-default btn-xs dropdown-toggle");
  11. b.add(dropDownIcon);
  12. b.addAttribute(ButtonAttributes.Type, "button");
  13. b.addAttribute(ButtonAttributes.Data_Toggle, "dropdown");
  14. dropDownContent.setTag("ul");
  15. dropDownContent.addClass("dropdown-menu slidedown");
  16. getPanelHeaderButtonBar().add(b);
  17. getPanelHeaderButtonBar().add(dropDownContent);
  18. }

相关文章