use of eidolons.client.cc.gui.neo.tabs.HC_TabPanel in project Eidolons by IDemiurge.
the class HT_View method initTabPanel.
protected HC_TabPanel initTabPanel(List<HC_Tab> tabList) {
HC_TabPanel tabPanel = new HC_TabPanel(tabList) {
@Override
public void notifyListener() {
listener.tabSelected(getSelectedTabName());
}
@Override
public Component generateEmptyTabComp() {
return new GraphicComponent(ImageManager.getNewBufferedImage(getTabCompWidth(), getTabCompHeight()));
}
@Override
protected STD_SOUNDS getClickSound() {
return STD_SOUNDS.ON_OFF;
// return STD_SOUNDS.DIS__OPEN_MENU;
}
@Override
public Component getSelectedTabComponent() {
return super.getSelectedTabComponent();
}
@Override
public ComponentVisuals getTAB() {
// empty
if (TAB == null) {
TAB = new CompVisuals(ImageManager.getNewBufferedImage(getTabCompWidth(), getTabCompHeight()));
}
return TAB;
}
public int getPageSize() {
return getTabPageSize();
}
};
tabPanel.setChangeListener(this);
return tabPanel;
}
Aggregations