Examples of pack()


Examples of org.pentaho.reporting.designer.core.editor.ConfigurationEditorDialog.pack()

    else
    {
      dialog = new ConfigurationEditorDialog();
    }

    dialog.pack();
    final HierarchicalConfiguration config =
        (HierarchicalConfiguration) activeContext.getMasterReportElement().getReportConfiguration();
    final HashMap oldConfig = copyConfig(config);

    if (dialog.performEdit(config))
View Full Code Here

Examples of org.pentaho.reporting.designer.core.editor.expressions.ExpressionChooserDialog.pack()

    else
    {
      dialog = new ExpressionChooserDialog();
    }

    dialog.pack();
    SwingUtil.centerDialogInParent(dialog);
    final Expression expression = dialog.performSelect();
    if (expression == null)
    {
      return;
View Full Code Here

Examples of org.pentaho.reporting.designer.core.editor.parameters.SubReportParameterDialog.pack()

    }
    else
    {
      parameterDialog = new SubReportParameterDialog();
    }
    parameterDialog.pack();
    SwingUtil.centerDialogInParent(parameterDialog);
    final SubReportParameterDialog.EditResult editResult =
        parameterDialog.performEdit(context, subReport.getInputMappings(), subReport.getExportMappings());
    if (editResult == null)
    {
View Full Code Here

Examples of org.pentaho.reporting.designer.core.settings.ui.SettingsDialog.pack()

    else
    {
      settingsDialog = new SettingsDialog();
    }

    settingsDialog.pack();
    settingsDialog.performEdit(getReportDesignerContext());
  }
}
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.GridSizeDialog.pack()

    spinnerDialog.setUnit(WorkspaceSettings.getInstance().getUnit());
    spinnerDialog.setGridDivisionSize(WorkspaceSettings.getInstance().getGridDivisions());
    spinnerDialog.setGridSize(WorkspaceSettings.getInstance().getGridSize());

    spinnerDialog.pack();
    SwingUtil.centerDialogInParent(spinnerDialog);
    if (spinnerDialog.showDialog())
    {
      WorkspaceSettings.getInstance().setUnit(spinnerDialog.getUnit());
      WorkspaceSettings.getInstance().setGridSize(spinnerDialog.getGridSize());
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.GroupSelectorDialog.pack()

        }
        else
        {
          editorDialog = new GroupSelectorDialog();
        }
        editorDialog.pack();
        SwingUtil.centerDialogInParent(editorDialog);
        final String originalGroup = (String) comboBox.getSelectedItem();
        final String selectedGroup = editorDialog.performEdit(getGroups(), originalGroup);
        if (editorDialog.isConfirmed())
        {
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.GuideLineDialog.pack()

      }

      spinnerDialog.setUnit(WorkspaceSettings.getInstance().getUnit());
      spinnerDialog.setPosition(guideLine.getPosition());

      spinnerDialog.pack();
      SwingUtil.centerDialogInParent(spinnerDialog);
      if (spinnerDialog.showDialog())
      {
        final GuideLine newGuideLine = new GuideLine(spinnerDialog.getPosition(), guideLine.isActive());
        linealModel.updateGuideLine(index, newGuideLine);
View Full Code Here

Examples of org.pentaho.reporting.designer.core.util.QuerySelectorDialog.pack()

        }
        else
        {
          editorDialog = new QuerySelectorDialog();
        }
        editorDialog.pack();
        SwingUtil.centerDialogInParent(editorDialog);
        final String selectedQuery =
            editorDialog.performEdit(getQueryNames(), (String) comboBox.getSelectedItem());
        if (editorDialog.isConfirmed())
        {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewDialog.pack()

      final MasterReport report = handler.createReport();

      final PreviewDialog frame = new PreviewDialog(report);
      frame.setToolbarFloatable(true);
      frame.setReportController(new LocaleSelectionReportController());
      frame.pack();
      SwingUtil.positionFrameRandomly(frame);
      frame.setVisible(true);
      frame.requestFocus();
    }
    catch (ReportDefinitionException e)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.modules.gui.base.PreviewFrame.pack()

  }

  public static void main(final String[] args) throws Exception
  {
    final PreviewFrame d = new PreviewFrame(getReport());
    d.pack();
    d.addWindowListener(new WindowAdapter()
    {
      /**
       * Invoked when a window is in the process of being closed.
       * The close operation can be overridden at this point.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.