use of org.pentaho.ui.xul.components.XulTabpanel in project pentaho-kettle by pentaho.
the class StarModelerPerspective method createTab.
public XulTabAndPanel createTab() {
try {
XulTab tab = (XulTab) document.createElement("tab");
if (name != null) {
tab.setLabel(name);
}
XulTabpanel panel = (XulTabpanel) document.createElement("tabpanel");
panel.setSpacing(0);
panel.setPadding(0);
tabs.addChild(tab);
panels.addChild(panel);
tabbox.setSelectedIndex(panels.getChildNodes().indexOf(panel));
return new XulTabAndPanel(tab, panel);
} catch (XulException e) {
e.printStackTrace();
}
return null;
}
Aggregations