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

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

本文整理了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

/**
 * 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;
}

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

/**
 * 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);
  }
}

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

/**
 * 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;
}

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

/**
 * 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;
}

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

/**
 * 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;
}

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

/**
 * 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);
  }
}

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

/**
 * 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;
}

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

/**
   * 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;
  }
}

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

/**
   * 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;
  }
}

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

@Override
@NotNull
public J add(@NotNull BSAccordionChildren newChild)
{
  getAccordionItems().add((BSAccordionItem) newChild);
  return super.add(newChild);
}

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

@Override
@NotNull
public J add(@NotNull BSAccordionChildren newChild)
{
  getAccordionItems().add((BSAccordionItem) newChild);
  return super.add(newChild);
}

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

/**
 * 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;
}

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

/**
 * 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;
}

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

/**
 * 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;
}

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

@Override
public void preConfigure()
{
  if (!isConfigured())
  {
    getPanelHeader().add(getIcon());
    getPanelHeader().add(getTitle());
  }
  super.preConfigure();
}

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

@Override
public void preConfigure()
{
  if (!isConfigured())
  {
    getPanelHeader().add(getIcon());
    if (getTitle() != null)
    {
      getPanelHeader().add(getTitle());
    }
  }
  super.preConfigure();
}

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

/**
 * 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);
}

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

/**
 * 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;
}

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

/**
 * 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;
}

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

/**
 * 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);
}

相关文章