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, "");
}
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));
}
}
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);
}
}
}
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);
}
}
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;
}
Aggregations