Package org.pentaho.reporting.designer.core.settings

Examples of org.pentaho.reporting.designer.core.settings.WorkspaceSettings


  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final WorkspaceSettings instance = WorkspaceSettings.getInstance();
    final boolean value = instance.isAlwaysDrawElementFrames();
    WorkspaceSettings.getInstance().setAlwaysDrawElementFrames(!value);
  }
View Full Code Here


    numberFormatModel = new NumberFormatModel();

    dateFormats = new String[0];
    numberFormats = new String[0];

    final WorkspaceSettings workspaceSettings = WorkspaceSettings.getInstance();

    dateFormatField = new JTextField();
    dateFormatField.setColumns(50);
    timeFormatField = new JTextField();
    timeFormatField.setColumns(50);
    datetimeFormatField = new JTextField();
    datetimeFormatField.setColumns(50);

    lookAndFeelModel = new LookAndFeelModel();
    lookAndFeelModel.setSelectedItem(workspaceSettings.getLNF());

    enableVersionChecker = new JCheckBox(SettingsMessages.getInstance().getString
        ("GeneralSettingsPanel.EnableVersionChecker"));
    enableVersionChecker.setSelected(workspaceSettings.isUseVersionChecker());
    enableVersionChecker.addChangeListener(new EnableVersionCheckerSelectionHandler());

    notifyDevBuilds = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.NotifyUnsupportedVersions"));
    notifyDevBuilds.setSelected(workspaceSettings.isNotifyForAllBuilds());
    notifyDevBuilds.setEnabled(workspaceSettings.isUseVersionChecker());

    experimentalFeatures = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.EnableExperimentalFeatures"));
    experimentalFeatures.setSelected(workspaceSettings.isExperimentalFeaturesVisible());

    showIndexColumns = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.ShowIndexColumns"));
    showIndexColumns.setSelected(workspaceSettings.isShowIndexColumns());

    showDeprecatedItems = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.ShowDeprecatedItems"));
    showDeprecatedItems.setSelected(workspaceSettings.isShowDeprecatedItems());
    showExpertItems = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.ShowExpertItems"));
    showExpertItems.setSelected(workspaceSettings.isShowExpertItems());
   
    showNonCoreItems = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.ShowNonCoreItems"));
    showNonCoreItems.setSelected(workspaceSettings.isNonCoreFeaturesVisible());

    showDebugItems = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.ShowDebugItems"));
    showDebugItems.setSelected(workspaceSettings.isDebugFeaturesVisible());


    openLastReport = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.OpenLastReport"));
    openLastReport.setSelected(workspaceSettings.isShowExpertItems());

    final JPanel contentPanel = new JPanel();
    contentPanel.setLayout(new GridBagLayout());
    final GridBagConstraints c = new GridBagConstraints();
    c.gridx = 0;
View Full Code Here

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final WorkspaceSettings applicationSettings = WorkspaceSettings.getInstance();
    applicationSettings.setSnapToElements(!applicationSettings.isSnapToElements());
  }
View Full Code Here

   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final ReportDesignerContext context = getReportDesignerContext();
    final WorkspaceSettings theWorkspaceSettings = WorkspaceSettings.getInstance();
    theWorkspaceSettings.setBounds(context.getView().getParent().getBounds());
    final int contextCount = context.getReportRenderContextCount();
    final ReportRenderContext[] contextArray = new ReportRenderContext[contextCount];
    for (int i = 0; i < contextCount; i++)
    {
      contextArray[i] = context.getReportRenderContext(i);
View Full Code Here

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final WorkspaceSettings applicationSettings = WorkspaceSettings.getInstance();
    applicationSettings.setShowElementAlignmentHints(!applicationSettings.isShowElementAlignmentHints());
  }
View Full Code Here

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final WorkspaceSettings applicationSettings = WorkspaceSettings.getInstance();
    applicationSettings.setShowOverlappingElements(!applicationSettings.isShowOverlappingElements());
  }
View Full Code Here

      {
        final ReportDesignerFrame frame = new ReportDesignerFrame();
        ReportDesigner.reportDesignerFrame = frame;
        frame.pack();

        final WorkspaceSettings theWorkspaceSettings = WorkspaceSettings.getInstance();
        final Rectangle bounds = theWorkspaceSettings.getBounds();
        if (bounds == null || LibSwingUtil.safeRestoreWindow(frame, bounds) == false)
        {
          SwingUtil.centerFrameOnScreen(frame);
          frame.setExtendedState(Frame.MAXIMIZED_BOTH);
        }
View Full Code Here

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final WorkspaceSettings instance = WorkspaceSettings.getInstance();
    final boolean value = instance.isAlwaysDrawElementFrames();
    WorkspaceSettings.getInstance().setAlwaysDrawElementFrames(!value);
  }
View Full Code Here

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(final ActionEvent e)
  {
    final WorkspaceSettings applicationSettings = WorkspaceSettings.getInstance();
    applicationSettings.setSnapToElements(!applicationSettings.isSnapToElements());
  }
View Full Code Here

    numberFormatModel = new NumberFormatModel();

    dateFormats = new String[0];
    numberFormats = new String[0];

    final WorkspaceSettings workspaceSettings = WorkspaceSettings.getInstance();

    dateFormatField = new JTextField();
    dateFormatField.setColumns(50);
    timeFormatField = new JTextField();
    timeFormatField.setColumns(50);
    datetimeFormatField = new JTextField();
    datetimeFormatField.setColumns(50);

    lookAndFeelModel = new LookAndFeelModel();
    lookAndFeelModel.setSelectedItem(workspaceSettings.getLNF());

    enableVersionChecker = new JCheckBox(SettingsMessages.getInstance().getString
        ("GeneralSettingsPanel.EnableVersionChecker"));
    enableVersionChecker.setSelected(workspaceSettings.isUseVersionChecker());
    enableVersionChecker.addChangeListener(new EnableVersionCheckerSelectionHandler());

    notifyDevBuilds = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.NotifyUnsupportedVersions"));
    notifyDevBuilds.setSelected(workspaceSettings.isNotifyForAllBuilds());
    notifyDevBuilds.setEnabled(workspaceSettings.isUseVersionChecker());

    experimentalFeatures = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.EnableExperimentalFeatures"));
    experimentalFeatures.setSelected(workspaceSettings.isExperimentalFeaturesVisible());

    showIndexColumns = new JCheckBox
        (SettingsMessages.getInstance().getString("GeneralSettingsPanel.ShowIndexColumns"));
    showIndexColumns.setSelected(workspaceSettings.isShowIndexColumns());

    final JPanel contentPanel = new JPanel();
    contentPanel.setLayout(new GridBagLayout());
    final GridBagConstraints c = new GridBagConstraints();
    c.gridx = 0;
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.settings.WorkspaceSettings

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.