Search in sources :

Example 1 with XulTabpanel

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;
}
Also used : XulTabpanel(org.pentaho.ui.xul.components.XulTabpanel) XulException(org.pentaho.ui.xul.XulException) XulTab(org.pentaho.ui.xul.components.XulTab)

Aggregations

XulException (org.pentaho.ui.xul.XulException)1 XulTab (org.pentaho.ui.xul.components.XulTab)1 XulTabpanel (org.pentaho.ui.xul.components.XulTabpanel)1