Search in sources :

Example 26 with G_Panel

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

the class SortBox method initComp.

public void initComp() {
    comp = new G_Panel();
    JLabel lbl = new JLabel(TEXT);
    comp.add(lbl);
    initItems();
    JComboBox<SORT_BY> dropbox = new JComboBox<>(items);
    dropbox.addActionListener(this);
    comp.add(dropbox, "");
}
Also used : G_Panel(main.swing.generic.components.G_Panel) SORT_BY(main.utilities.sorting.TypeSorter.SORT_BY)

Example 27 with G_Panel

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

the class WrappedContainer method resetComps.

protected void resetComps() {
    comps.clear();
    compMap.clear();
    for (E d : getData()) {
        G_Panel comp = createComp(d);
        compMap.put(d, comp);
        comp.refresh();
    }
    sortData();
    for (E d : getData()) {
        comps.add(getComp(d));
    }
}
Also used : G_Panel(main.swing.generic.components.G_Panel)

Example 28 with G_Panel

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

the class VendorListsPanel method initTab.

protected void initTab(String title) {
    Map<String, HC_PagedListPanel> map = listMaps.get(title);
    if (map == null) {
        Chronos.mark(title);
        map = initListMap(title);
        Chronos.logTimeElapsedForMark(title);
        G_Panel tab = tabMap.get(title);
        for (String listName : map.keySet()) {
            tab.add(map.get(listName), "wrap");
        }
        listMaps.put(title, map);
    } else {
        try {
            map.values().iterator().next().getCurrentList().getList().setSelectedIndex(0);
        } catch (Exception e) {
        // main.system.ExceptionMaster.printStackTrace(e);
        }
    }
}
Also used : G_Panel(main.swing.generic.components.G_Panel) HC_PagedListPanel(eidolons.client.cc.gui.pages.HC_PagedListPanel)

Example 29 with G_Panel

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

the class ChoiceView method addBackgroundComps.

protected void addBackgroundComps() {
    VISUALS bg = getBackgroundVisuals();
    if (bg != null) {
        String POS = "id pages, pos " + getPagePosX() + "-" + getSelectionBgOffsetX() + " " + getPagePosY() + "-" + getSelectionBgOffsetY();
        add(new G_Panel(bg), POS);
    }
}
Also used : G_Panel(main.swing.generic.components.G_Panel)

Example 30 with G_Panel

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

the class HeaderPanel method initControlPanel.

private G_Panel initControlPanel() {
    G_Panel panel = new G_Panel("flowy");
    for (String c : controls) {
        JButton button = new JButton(c);
        button.setActionCommand(c);
        button.addActionListener(this);
        panel.add(button, "sg buttons");
    }
    return panel;
}
Also used : G_Panel(main.swing.generic.components.G_Panel)

Aggregations

G_Panel (main.swing.generic.components.G_Panel)59 CustomButton (eidolons.swing.components.buttons.CustomButton)6 List (java.util.List)4 PARAMETER (main.content.values.parameters.PARAMETER)4 ObjType (main.entity.type.ObjType)4 TextComp (main.swing.components.TextComp)4 ArrayList (java.util.ArrayList)3 XLinkedMap (main.data.XLinkedMap)3 MigLayout (net.miginfocom.swing.MigLayout)3 PoolComp (eidolons.client.cc.gui.misc.PoolComp)2 HC_Tab (eidolons.client.cc.gui.neo.tabs.HC_Tab)2 HC_TabPanel (eidolons.client.cc.gui.neo.tabs.HC_TabPanel)2 WrappedTextComp (eidolons.swing.components.panels.page.log.WrappedTextComp)2 MusicList (main.music.entity.MusicList)2 MusicListPanel (main.music.gui.MusicListPanel)2 G_Component (main.swing.generic.components.G_Component)2 GraphicComponent (main.swing.generic.components.misc.GraphicComponent)2 PortraitComp (eidolons.client.cc.gui.neo.header.PortraitComp)1 HC_PagedListPanel (eidolons.client.cc.gui.pages.HC_PagedListPanel)1 PartyComp (eidolons.game.module.adventure.gui.map.obj.PartyComp)1