Search in sources :

Example 6 with HC_TabPanel

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;
}
Also used : GraphicComponent(main.swing.generic.components.misc.GraphicComponent) HC_TabPanel(eidolons.client.cc.gui.neo.tabs.HC_TabPanel) CompVisuals(main.swing.generic.components.CompVisuals)

Aggregations

HC_TabPanel (eidolons.client.cc.gui.neo.tabs.HC_TabPanel)6 GraphicComponent (main.swing.generic.components.misc.GraphicComponent)3 HC_Tab (eidolons.client.cc.gui.neo.tabs.HC_Tab)2 ArrayList (java.util.ArrayList)2 G_Component (main.swing.generic.components.G_Component)2 G_Panel (main.swing.generic.components.G_Panel)2 HC_StatsTab (eidolons.client.cc.gui.neo.tabs.HC_StatsTab)1 CLASS_GROUP (main.content.enums.entity.HeroEnums.CLASS_GROUP)1 PARAMETER (main.content.values.parameters.PARAMETER)1 CompVisuals (main.swing.generic.components.CompVisuals)1