Package org.pentaho.ui.xul.containers

Examples of org.pentaho.ui.xul.containers.XulGrid


   * @throws XulException 
   */
  public void createPresentationComponent(final XulDomContainer mainWizardContainer) throws XulException {
   
    // get the grid itself so we can update it later
    final XulGrid stepGrid = (XulGrid) mainWizardContainer.getDocumentRoot().getElementById(STEP_GRID_ID);
   
    // grab the rows and add a new row to it
    final XulRows stepRows = (XulRows) mainWizardContainer.getDocumentRoot().getElementById(STEP_ROWS_ID);
    final XulRow stepRow = (XulRow) mainWizardContainer.getDocumentRoot().createElement(XUL_ROW_TYPE);
    stepRows.addChild(stepRow);
   
    // Create and add the activeImage to the row (goes in the first column)
    stepImage = (XulImage) mainWizardContainer.getDocumentRoot().createElement(XUL_IMAGE_TYPE);
    stepImage.setSrc(STEP_IMAGE_SRC);
    stepImage.setId(this.getStepName());
    stepImage.setVisible(false);
    stepRow.addChild(stepImage);
   
    // Create and add the text label to the row (goes in the second column)
    stepLabel = (XulLabel) mainWizardContainer.getDocumentRoot().createElement(XUL_LABEL_TYPE);
    stepLabel.setValue(this.getStepName());
    stepLabel.setFlex(1);
    stepLabel.setDisabled(true);
    stepRow.addChild(stepLabel);
   
   
    stepGrid.update();
  }
View Full Code Here

TOP

Related Classes of org.pentaho.ui.xul.containers.XulGrid

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.