Package org.pentaho.reporting.designer.core.editor.table

Examples of org.pentaho.reporting.designer.core.editor.table.CreateTableDialog


    }

    ReportDesignerContext context = getReportDesignerContext();
    final Component parent = context.getView().getParent();
    final Window window = LibSwingUtil.getWindowAncestor(parent);
    final CreateTableDialog dialog;
    if (window instanceof JDialog)
    {
      dialog = new CreateTableDialog((JDialog) window);
    }
    else if (window instanceof JFrame)
    {
      dialog = new CreateTableDialog((JFrame) window);
    }
    else
    {
      dialog = new CreateTableDialog();
    }

    if (dialog.createTable() == false)
    {
      return;
    }


    try
    {
      final Band visualElement = createTable(dialog.getColumns(), dialog.getHeaderRows(), dialog.getDataRows());

      final ElementStyleSheet styleSheet = visualElement.getStyle();
      styleSheet.setStyleProperty(ElementStyleKeys.MIN_WIDTH, DEFAULT_WIDTH);
      styleSheet.setStyleProperty(ElementStyleKeys.MIN_HEIGHT, DEFAULT_HEIGHT);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.editor.table.CreateTableDialog

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.