use of org.pentaho.ui.xul.components.XulMenuList 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);
}
}
}
Aggregations