Codota Logo
com.jwebmp.core.base.interfaces
Code IndexAdd Codota to your IDE (free)

How to use com.jwebmp.core.base.interfaces

Best Java code snippets using com.jwebmp.core.base.interfaces (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: com.jwebmp.jre11/jwebmp-core

/**
 * Sets the page this component belongs on.
 * Null to reset the page hierarchy for all children
 * <p>
 *
 * @param page
 *         A Page
 *
 * @see com.jwebmp.core.base.interfaces.IComponentHierarchyBase#setPage(Page)
 */
@Override
@SuppressWarnings("unchecked")
public J setPage(Page page)
{
  this.page = page;
  getChildren().forEach(child -> child.setPage(page));
  return (J) this;
}
origin: com.jwebmp/jwebmp-core

/**
 * Add a new child to this component
 * <p>
 *
 * @param newChild
 *         The child to be added
 *         <p>
 *
 * @return The new child added
 */
@Override
@SuppressWarnings("unchecked")
@NotNull
public J add(@NotNull C newChild)
{
  newChild.setParent(this);
  newChild.setTiny(isTiny());
  newChild.setPage(getPage());
  getChildren().add(newChild);
  newChild.init();
  newChild.preConfigure();
  return (J) this;
}
origin: com.jwebmp.jre11/jwebmp-bootstrap4

@Override
public void preConfigure()
{
  @SuppressWarnings("unchecked")
  Set<IComponentHierarchyBase> crumbChildren = this.crumbs.getChildren();
  if (!crumbChildren.isEmpty())
  {
    crumbChildren.forEach(next -> next.removeClass(BSComponentBreadcrumbOptions.Active));
    List<IComponentHierarchyBase> sortedCrumbs = new ArrayList<>(crumbChildren);
    sortedCrumbs.get(sortedCrumbs.size() + (!sortedCrumbs.isEmpty() ? -1 : 0))
          .addClass(BSComponentBreadcrumbOptions.Active);
  }
  super.preConfigure();
}
origin: com.jwebmp.jre11/jwebmp-core

/**
 * Renders each child
 *
 * @return
 *
 * @see ComponentHTMLBase#renderChildren()
 */
@Override
@NotNull
protected StringBuilder renderChildren()
{
  StringBuilder sb = new StringBuilder();
  if (renderBeforeChildren() != null)
  {
    sb.append(renderBeforeChildren());
  }
  getChildren().forEach(child -> sb.append(getNewLine())
                   .append(child.toString(child.asBase()
                                 .isTiny() ? 0 : getCurrentTabIndents() + 1)));
  if (renderAfterChildren() != null)
  {
    sb.append(renderAfterChildren());
  }
  return sb;
}
origin: com.jwebmp.jre10/jwebmp-bootstrap

  /**
   * Sets the contents
   *
   * @param contents
   */
  public final void setContents(List contents)
  {
    this.contents = contents;

    if (contents != null)
    {
      contents.addClass(BSComponentDropDownOptions.Dropdown_Menu);
      contents.addClass("");
      title.asAttributeBase()
         .addAttribute(ButtonAttributes.Data_Toggle.toString(), ToggleString);
      title.asAttributeBase()
         .addAttribute(ButtonAttributes.Data_Target.toString(), contents.getID(true));
    }
  }
}
origin: com.jwebmp.jre11/jwebmp-bootstrap4

  @Override
  public void preConfigure()
  {
    if (!isConfigured())
    {
      getChildren().forEach(a -> a.addClass("d-block"));
    }
    super.preConfigure();
  }
}
origin: com.jwebmp.jre11/jwebmp-core

/**
 * Overrides this and all below components to set tiny false
 *
 * @param tiny
 *
 * @return super.tiny
 *
 * @see ComponentEventBase#setTiny(boolean)
 */
@Override
@NotNull
public J setTiny(boolean tiny)
{
  getChildren().forEach(child -> child.setTiny(tiny));
  return super.setTiny(tiny);
}
origin: com.jwebmp/jwebmp-core

/**
 * Adds the children of this component onto the array list coming in
 * <p>
 * <p>
 * <p>
 *
 * @param componentsToAddTo
 *         The component Array List to add to
 *         <p>
 *
 * @return original components added with
 *         <p>
 *         see com.jwebmp.core.base.interfaces.IComponentHierarchyBase#getChildrenHierarchy(Set ComponentHierarchyBase ?, ?, ?, ?, ? )
 */
@Override
@NotNull
public Set<ComponentHierarchyBase<IComponentHierarchyBase, ?, ?, ?, ?>> getChildrenHierarchy(@NotNull Set<ComponentHierarchyBase<IComponentHierarchyBase, ?, ?, ?, ?>> componentsToAddTo)
{
  getChildren().forEach(child ->
             {
               componentsToAddTo.add((ComponentHierarchyBase<IComponentHierarchyBase, ?, ?, ?, ?>) child);
               child.getChildrenHierarchy(componentsToAddTo);
             });
  return componentsToAddTo;
}
origin: com.jwebmp.jre11/jwebmp-core

/**
 * Add a new child to this component
 * <p>
 *
 * @param newChild
 *         The child to be added
 *         <p>
 *
 * @return The new child added
 */
@Override
@SuppressWarnings("unchecked")
@NotNull
public J add(@NotNull C newChild)
{
  newChild.setParent(this);
  newChild.setTiny(isTiny());
  newChild.setPage(getPage());
  getChildren().add(newChild);
  newChild.init();
  newChild.preConfigure();
  return (J) this;
}
origin: com.jwebmp.jre10/jwebmp-core

/**
 * Renders each child
 *
 * @return
 *
 * @see ComponentHTMLBase#renderChildren()
 */
@Override
@NotNull
protected StringBuilder renderChildren()
{
  StringBuilder sb = new StringBuilder();
  if (renderBeforeChildren() != null)
  {
    sb.append(renderBeforeChildren());
  }
  getChildren().forEach(child -> sb.append(getNewLine())
                   .append(child.toString(child.asBase()
                                 .isTiny() ? 0 : getCurrentTabIndents() + 1)));
  if (renderAfterChildren() != null)
  {
    sb.append(renderAfterChildren());
  }
  return sb;
}
origin: com.jwebmp/jwebmp-bootstrap4

@Override
public void preConfigure()
{
  @SuppressWarnings("unchecked")
  Set<IComponentHierarchyBase> crumbChildren = this.crumbs.getChildren();
  if (!crumbChildren.isEmpty())
  {
    crumbChildren.forEach(next -> next.removeClass(BSComponentBreadcrumbOptions.Active));
    List<IComponentHierarchyBase> sortedCrumbs = new ArrayList<>(crumbChildren);
    sortedCrumbs.get(sortedCrumbs.size() + (!sortedCrumbs.isEmpty() ? -1 : 0))
          .addClass(BSComponentBreadcrumbOptions.Active);
  }
  super.preConfigure();
}
origin: com.jwebmp.jre11/jwebmp-bootstrap

  /**
   * Sets the contents
   *
   * @param contents
   */
  public final void setContents(List contents)
  {
    this.contents = contents;

    if (contents != null)
    {
      contents.addClass(BSComponentDropDownOptions.Dropdown_Menu);
      contents.addClass("");
      title.asAttributeBase()
         .addAttribute(ButtonAttributes.Data_Toggle.toString(), ToggleString);
      title.asAttributeBase()
         .addAttribute(ButtonAttributes.Data_Target.toString(), contents.getID(true));
    }
  }
}
origin: com.jwebmp/jwebmp-bootstrap4

  @Override
  public void preConfigure()
  {
    if (!isConfigured())
    {
      getChildren().forEach(a -> a.addClass("d-block"));
    }
    super.preConfigure();
  }
}
origin: com.jwebmp/jwebmp-core

/**
 * Sets the page this component belongs on.
 * Null to reset the page hierarchy for all children
 * <p>
 *
 * @param page
 *         A Page
 *
 * @see com.jwebmp.core.base.interfaces.IComponentHierarchyBase#setPage(Page)
 */
@Override
@SuppressWarnings("unchecked")
public J setPage(Page page)
{
  this.page = page;
  getChildren().forEach(child -> child.setPage(page));
  return (J) this;
}
origin: com.jwebmp/jwebmp-core

/**
 * Overrides this and all below components to set tiny false
 *
 * @param tiny
 *
 * @return super.tiny
 *
 * @see ComponentEventBase#setTiny(boolean)
 */
@Override
@NotNull
public J setTiny(boolean tiny)
{
  getChildren().forEach(child -> child.setTiny(tiny));
  return super.setTiny(tiny);
}
origin: com.jwebmp/jwebmp-core

/**
 * Renders each child
 *
 * @return
 *
 * @see ComponentHTMLBase#renderChildren()
 */
@Override
@NotNull
protected StringBuilder renderChildren()
{
  StringBuilder sb = new StringBuilder();
  if (renderBeforeChildren() != null)
  {
    sb.append(renderBeforeChildren());
  }
  getChildren().forEach(child -> sb.append(getNewLine())
                   .append(child.toString(child.asBase()
                                 .isTiny() ? 0 : getCurrentTabIndents() + 1)));
  if (renderAfterChildren() != null)
  {
    sb.append(renderAfterChildren());
  }
  return sb;
}
origin: com.jwebmp.jre10/jwebmp-bootstrap4

@Override
public void preConfigure()
{
  @SuppressWarnings("unchecked")
  Set<IComponentHierarchyBase> crumbChildren = this.crumbs.getChildren();
  if (!crumbChildren.isEmpty())
  {
    crumbChildren.forEach(next -> next.removeClass(BSComponentBreadcrumbOptions.Active));
    List<IComponentHierarchyBase> sortedCrumbs = new ArrayList<>(crumbChildren);
    sortedCrumbs.get(sortedCrumbs.size() + (!sortedCrumbs.isEmpty() ? -1 : 0))
          .addClass(BSComponentBreadcrumbOptions.Active);
  }
  super.preConfigure();
}
origin: com.jwebmp.jre10/jwebmp-bootstrap4

  @Override
  public void preConfigure()
  {
    if (!isConfigured())
    {
      getChildren().forEach(a -> a.addClass("d-block"));
    }
    super.preConfigure();
  }
}
origin: com.jwebmp.jre10/jwebmp-core

/**
 * Sets the page this component belongs on.
 * Null to reset the page hierarchy for all children
 * <p>
 *
 * @param page
 *         A Page
 *
 * @see com.jwebmp.core.base.interfaces.IComponentHierarchyBase#setPage(Page)
 */
@Override
@SuppressWarnings("unchecked")
public J setPage(Page page)
{
  this.page = page;
  getChildren().forEach(child -> child.setPage(page));
  return (J) this;
}
origin: com.jwebmp.jre10/jwebmp-core

/**
 * Overrides this and all below components to set tiny false
 *
 * @param tiny
 *
 * @return super.tiny
 *
 * @see ComponentEventBase#setTiny(boolean)
 */
@Override
@NotNull
public J setTiny(boolean tiny)
{
  getChildren().forEach(child -> child.setTiny(tiny));
  return super.setTiny(tiny);
}
com.jwebmp.core.base.interfaces

Most used classes

  • IComponentHierarchyBase
  • IComponentHTMLAttributeBase
  • IComponentBase
    Neater way of accessing the component methods
  • IComponentEventBase
  • IComponentFeatureBase
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now