All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.gv2011.util.swing.imp.builder.HTabB Maven / Gradle / Ivy

There is a newer version: 0.14
Show newest version
package com.github.gv2011.util.swing.imp.builder;

import static com.github.gv2011.util.Verify.verifyEqual;

import com.github.gv2011.util.icol.ICollections;
import com.github.gv2011.util.swing.HTab;

final class HTabB extends TabB implements HTab{

  HTabB(final GuiBuilderImp guiBuilder, final String name) {
    super(guiBuilder, name);
  }

  HTabB(final GuiBuilderImp guiBuilder, final String name, final HTabB left, final Block block) {
    super(guiBuilder, name, left, block);
  }

  @Override
  HTabB self() {return this;}


  @Override
  HTabImp createTabImp(){
    if(previousGroups.isEmpty()) verifyEqual(this, guiBuilder.left());
    return new HTabImp(previousGroups.stream()
      .map(p->new Row(p.getKey().build(), p.getValue()))
      .collect(ICollections.toIList())
    );
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy