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); } }); }
@Override public void setMaximizable(boolean isMaximizable) { this.maximizable = isMaximizable; tabHeader.setMaximizable(isMaximizable); }
@Override public void setClosable(boolean isClosable) { this.closable = isClosable; tabHeader.setClosable(isClosable); }
@Override public void setTitle(String caption) { tabHeader.setTitle(caption); }
@Override public String getTitle() { return tabHeader.getTitle(); }