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

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

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

Div.init介绍

暂无

代码示例

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

@Override
public void init()
{
  if (!isInitialized())
  {
    add(getUnorderedList());
    getTabs().forEach(next ->
             {
               getUnorderedList().add(next.getTabHeader());
               add(next.getTabDisplayComponent());
             });
  }
  super.init();
}

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

@Override
public void init()
{
  if (!isInitialized())
  {
    add(getUnorderedList());
    getTabs().forEach(next ->
             {
               getUnorderedList().add(next.getTabHeader());
               add(next.getTabDisplayComponent());
             });
  }
  super.init();
}

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

@Override
public void init()
{
  if (!isInitialized())
  {
    add(getUnorderedList());
    getTabs().forEach(next ->
             {
               getUnorderedList().add(next.getTabHeader());
               add(next.getTabDisplayComponent());
             });
  }
  super.init();
}

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

@Override
public void init()
{
  if (!isInitialized())
  {
    BSCarouselIndicators indications = new BSCarouselIndicators(this);
    indications.init();
    add(indications);
    add(getCarouselSlides());
    BSCarouselItem activeItem;
    if (!getSlides().isEmpty())
    {
      activeItem = getSlides().get(getActiveSlide());
      activeItem.addClass(BSDefaultOptions.Active);
    }
    for (Iterator<BSCarouselItem> it = getSlides().iterator(); it.hasNext(); )
    {
      BSCarouselItem slide = it.next();
      getCarouselSlides().add(slide);
    }
    add(getPreviousLink());
    add(getNextLink());
  }
  super.init();
}

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

@Override
public void init()
{
  if (!isInitialized())
  {
    BSCarouselIndicators indications = new BSCarouselIndicators(this);
    indications.init();
    add(indications);
    add(getCarouselSlides());
    BSCarouselItem activeItem;
    if (!getSlides().isEmpty())
    {
      activeItem = getSlides().get(getActiveSlide());
      activeItem.addClass(BSDefaultOptions.Active);
    }
    for (Iterator<BSCarouselItem> it = getSlides().iterator(); it.hasNext(); )
    {
      BSCarouselItem slide = it.next();
      getCarouselSlides().add(slide);
    }
    add(getPreviousLink());
    add(getNextLink());
  }
  super.init();
}

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

@Override
public void init()
{
  if (!isInitialized())
  {
    for (int i = 0; i < getAccordionItems().size(); i++)
    {
      BSAccordionItem next = getAccordionItems().get(i);
      next.getAccordionHeader()
        .getAccordionHeaderLink()
        .addAttribute(LinkAttributes.Data_Parent, getID(true));
      next.getAccordionHeader()
        .getAccordionHeaderLink()
        .addAttribute(LinkAttributes.HRef, next.getAccordionCollapsingContent()
                            .getID(true));
      if (i == getActiveItem())
      {
        next.setActive(true);
      }
      else
      {
        next.setActive(false);
      }
    }
  }
  super.init();
}

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

@Override
public void init()
{
  if (!isInitialized())
  {
    for (int i = 0; i < getAccordionItems().size(); i++)
    {
      BSAccordionItem next = getAccordionItems().get(i);
      next.getAccordionHeader()
        .getAccordionHeaderLink()
        .addAttribute(LinkAttributes.Data_Parent, getID(true));
      next.getAccordionHeader()
        .getAccordionHeaderLink()
        .addAttribute(LinkAttributes.HRef, next.getAccordionCollapsingContent()
                            .getID(true));
      if (i == getActiveItem())
      {
        next.setActive(true);
      }
      else
      {
        next.setActive(false);
      }
    }
  }
  super.init();
}

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

@Override
public void init()
{
  if (!isInitialized())
  {
    BSCarouselIndicators indications = new BSCarouselIndicators(this);
    indications.init();
    add(indications);
    add(getCarouselSlides());
    BSCarouselItem activeItem;
    if (!getSlides().isEmpty())
    {
      activeItem = getSlides().get(getActiveSlide());
      activeItem.addClass(BSDefaultOptions.Active);
    }
    for (BSCarouselItem slide : getSlides())
    {
      getCarouselSlides().add(slide);
    }
    add(getPreviousLink());
    add(getNextLink());
  }
  super.init();
}

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

@Override
public void init()
{
  if (!isInitialized())
  {
    BSCarouselIndicators indications = new BSCarouselIndicators(this);
    indications.init();
    add(indications);
    add(getCarouselSlides());
    BSCarouselItem activeItem;
    if (!getSlides().isEmpty())
    {
      activeItem = getSlides().get(getActiveSlide());
      activeItem.addClass(BSDefaultOptions.Active);
    }
    for (BSCarouselItem slide : getSlides())
    {
      getCarouselSlides().add(slide);
    }
    add(getPreviousLink());
    add(getNextLink());
  }
  super.init();
}

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

@Override
public void init()
{
  if (!isInitialized())
  {
    BSCarouselIndicators indications = new BSCarouselIndicators(this);
    indications.init();
    add(indications);
    add(getCarouselSlides());
    BSCarouselItem activeItem;
    if (!getSlides().isEmpty())
    {
      activeItem = getSlides().get(getActiveSlide());
      activeItem.addClass(BSDefaultOptions.Active);
    }
    for (BSCarouselItem slide : getSlides())
    {
      getCarouselSlides().add(slide);
    }
    add(getPreviousLink());
    add(getNextLink());
  }
  super.init();
}

相关文章