DockHolder d = new DockHolder("project.home", elements.keySet().size(), 1);
// add content
for (String key : elements.keySet()) {
ArrayList<BasicObjectManager> list = elements.get(key);
DockLinkPanel dlp = new DockLinkPanel();
dlp.setDock(d);
for (final BasicObjectManager bom : list) {
// add basic
dlp.addLink(bom.getTitle(), bom.getIcon(), bom.getDesc() == null ? null : "<html>" + bom.getDesc(), new AE() {
@Override
public void run() {
YaFrame.open(bom.getTabId());
}
});
}
dlp.buildGui(list.get(0).getGroup(), "yaams", false);
d.add(dlp);
}
JPanel cont = new JPanel(new BorderLayout());
cont.add(d, BorderLayout.CENTER);