示例#1
0
  public VConcertinaTab(VConcertina vConcertina, String caption, Component component) {
    this.vConcertina = vConcertina;

    //		if ( component != null ) {
    //			tabContent.addComponent( component );
    //		}
    tabContent.setComponent(component);

    tabHeader.setCaption(caption);
    tabHeader.setActionListener(
        new VConcertinaTabHeaderActionListener() {
          @Override
          public void closeTab() {
            VConcertinaTab.this.vConcertina.removeTab(VConcertinaTab.this);
          }

          @Override
          public void minimizeTab() {
            VConcertinaTab.this.vConcertina.minimize(VConcertinaTab.this);
          }

          @Override
          public void maximizeTab() {
            VConcertinaTab.this.vConcertina.maximize(VConcertinaTab.this);
          }
        });
    this.tabHeader.addListener(
        new LayoutEvents.LayoutClickListener() {
          @Override
          public void layoutClick(LayoutEvents.LayoutClickEvent event) {
            VConcertinaTab.this.vConcertina.toggle(VConcertinaTab.this);
          }
        });
  }
示例#2
0
 @Override
 public void setMaximizable(boolean isMaximizable) {
   this.maximizable = isMaximizable;
   tabHeader.setMaximizable(isMaximizable);
 }
示例#3
0
 @Override
 public void setClosable(boolean isClosable) {
   this.closable = isClosable;
   tabHeader.setClosable(isClosable);
 }
示例#4
0
 @Override
 public void setTitle(String caption) {
   tabHeader.setTitle(caption);
 }
示例#5
0
 @Override
 public String getTitle() {
   return tabHeader.getTitle();
 }