Search in sources :

Example 6 with G_Component

use of main.swing.generic.components.G_Component in project Eidolons by IDemiurge.

the class HC_TabPanel method refresh.

public void refresh() {
    removeAll();
    tabPanel.refresh();
    if (Launcher.getHcKeyListener() != null) {
        Launcher.getHcKeyListener().setTabPanel(this);
    }
    requestFocusInWindow();
    add(tabPanel, "id tabs, pos " + getTabsOffsetX() + " " + getTabsOffsetY());
    G_Component component = tabs.get(getIndex()).getComponent();
    component.refresh();
    // component.refreshComponents(); //TODO
    add(component, "pos " + getCompOffsetX() + " tabs.y2+" + getCompOffsetY());
    revalidate();
    repaint();
}
Also used : G_Component(main.swing.generic.components.G_Component)

Aggregations

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