Search in sources :

Example 1 with ExtTextbox

use of org.pentaho.di.ui.core.database.dialog.tags.ExtTextbox in project pentaho-kettle by pentaho.

the class DataOverrideHandler method getControls.

@Override
protected void getControls() {
    super.getControls();
    XulTextbox[] boxes = new XulTextbox[] { hostNameBox, databaseNameBox, portNumberBox, userNameBox, passwordBox, customDriverClassBox, customUrlBox, dataTablespaceBox, indexTablespaceBox, poolSizeBox, maxPoolSizeBox, languageBox, systemNumberBox, clientBox, serverInstanceBox, warehouseBox };
    for (int i = 0; i < boxes.length; i++) {
        XulTextbox xulTextbox = boxes[i];
        if ((xulTextbox != null) && (xulTextbox instanceof ExtTextbox)) {
            ExtTextbox ext = (ExtTextbox) xulTextbox;
            ext.setVariableSpace(databaseMeta);
        }
    }
    XulTree[] trees = new XulTree[] { poolParameterTree, clusterParameterTree, optionsParameterTree };
    for (int i = 0; i < trees.length; i++) {
        XulTree xulTree = trees[i];
        if (xulTree != null) {
            xulTree.setData(databaseMeta);
        }
    }
    XulMenuList[] menus = new XulMenuList[] { namedClusterList };
    for (int i = 0; i < menus.length; i++) {
        XulMenuList xulMenu = menus[i];
        if (xulMenu != null && xulMenu instanceof ExtMenuList) {
            ExtMenuList ext = (ExtMenuList) xulMenu;
            ext.setVariableSpace(databaseMeta);
        }
    }
}
Also used : ExtTextbox(org.pentaho.di.ui.core.database.dialog.tags.ExtTextbox) ExtMenuList(org.pentaho.di.ui.core.database.dialog.tags.ExtMenuList) XulTextbox(org.pentaho.ui.xul.components.XulTextbox) XulTree(org.pentaho.ui.xul.containers.XulTree) XulMenuList(org.pentaho.ui.xul.components.XulMenuList)

Aggregations

ExtMenuList (org.pentaho.di.ui.core.database.dialog.tags.ExtMenuList)1 ExtTextbox (org.pentaho.di.ui.core.database.dialog.tags.ExtTextbox)1 XulMenuList (org.pentaho.ui.xul.components.XulMenuList)1 XulTextbox (org.pentaho.ui.xul.components.XulTextbox)1 XulTree (org.pentaho.ui.xul.containers.XulTree)1