Package org.pentaho.reporting.libraries.designtime.swing

Examples of org.pentaho.reporting.libraries.designtime.swing.BorderlessButton


    return theNamePanel;
  }

  private JPanel createSelectionPane()
  {
    final JButton columnsAdd = new BorderlessButton(new AddSelectionAction(availableFields.getSelectionModel()));
    final JLabel columnsLabel = new JLabel(Messages.getString("EditGroupDetailsDialog.SelectedItems"));

    final ListSelectionModel columnsSelectionModel = groupFields.getSelectionModel();
    final JButton columnsSortUp = new BorderlessButton(new SortBulkUpAction(groupFieldsModel, columnsSelectionModel));
    final JButton columnsSortDown = new BorderlessButton(new SortBulkDownAction(groupFieldsModel, columnsSelectionModel));
    final JButton columnsRemove = new BorderlessButton(new RemoveBulkAction(groupFieldsModel, columnsSelectionModel));

    final JPanel tablesPane = new JPanel();
    tablesPane.setLayout(new GridBagLayout());

    final JLabel tablesColumnsLabel = new JLabel(Messages.getString("EditGroupDetailsDialog.AvailableFields"));
View Full Code Here


    c.gridx = 1;
    c.gridy = 0;
    c.fill = GridBagConstraints.NONE;
    c.weightx = 0.0;
    c.anchor = GridBagConstraints.WEST;
    locationFieldPanel.add(new BorderlessButton(new LevelUpAction()), c);

    c.gridx = 2;
    c.gridy = 0;
    c.fill = GridBagConstraints.NONE;
    c.weightx = 0.0;
    c.anchor = GridBagConstraints.EAST;
    locationFieldPanel.add(new BorderlessButton(new BrowseRepositoryAction()), c);

    c.gridx = 3;
    c.gridy = 0;
    c.fill = GridBagConstraints.NONE;
    c.weightx = 0.0;
    c.anchor = GridBagConstraints.EAST;
    locationFieldPanel.add(new BorderlessButton(new NewFolderAction()), c);
    return locationFieldPanel;
  }
View Full Code Here

    {
      final JPanel buttonPanel = new JPanel();
      buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
      if (isShowRefreshButton())
      {
        buttonPanel.add(new BorderlessButton(refreshParameterAction));
        if (isAllowCustomParameter())
        {
          buttonPanel.add(Box.createHorizontalStrut(10));
        }
      }

      if (isAllowCustomParameter())
      {
        buttonPanel.add(new BorderlessButton(addParameterAction));
        buttonPanel.add(new BorderlessButton(allInOneRemoveAction));
      }

      final JPanel tablePanel = new JPanel(new BorderLayout());
      tablePanel.add(new JScrollPane(allInOneTable), BorderLayout.CENTER);
      if (isShowHideParameterUiCheckbox())
View Full Code Here

  {
    final JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    if (isShowRefreshButton())
    {
      buttonPanel.add(new BorderlessButton(refreshParameterAction));
      if (removeAction != null)
      {
        buttonPanel.add(Box.createHorizontalStrut(10));
      }
    }

    if (removeAction != null)
    {
      buttonPanel.add(new BorderlessButton(addParameterAction));
      buttonPanel.add(new BorderlessButton(removeAction));
    }
    if (addHideParamUiCheckbox == false)
    {
      return buttonPanel;
    }
View Full Code Here

    gbc = new GridBagConstraints();
    gbc.gridx = 3;
    gbc.gridy = 2;
    gbc.insets = new Insets(5, 5, 5, 5);
    tablesPane.add(new BorderlessButton(sortUpAction), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 4;
    gbc.gridy = 2;
    gbc.insets = new Insets(5, 5, 5, 5);
    tablesPane.add(new BorderlessButton(sortDownAction), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 5;
    gbc.gridy = 2;
    gbc.insets = new Insets(5, 5, 5, 5);
    tablesPane.add(new BorderlessButton(addGroupAction), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 6;
    gbc.gridy = 2;
    gbc.insets = new Insets(5, 5, 5, 5);
    tablesPane.add(new BorderlessButton(removeGroupAction), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 2;
    gbc.gridy = 3;
    gbc.weighty = 1;
    gbc.fill = GridBagConstraints.BOTH;
    gbc.gridwidth = 5;
    gbc.insets = new Insets(0, 5, 5, 0);
    tablesPane.add(new JScrollPane
        (table, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 1;
    gbc.gridy = 3;
    gbc.insets = new Insets(5, 5, 5, 0);
    tablesPane.add(new BorderlessButton(new AddSelectionAction(paletteList.getSelectionModel())), gbc);

    contentPane.removeAll();
    contentPane.add(tablesPane);
    contentPane.invalidate();
    contentPane.revalidate();
View Full Code Here

    gbc = new GridBagConstraints();
    gbc.gridx = 3;
    gbc.gridy = 2;
    gbc.insets = new Insets(5, 5, 5, 5);
    tablesPane.add(new BorderlessButton(sortUpAction), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 4;
    gbc.gridy = 2;
    gbc.insets = new Insets(5, 5, 5, 5);
    tablesPane.add(new BorderlessButton(sortDownAction), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 5;
    gbc.gridy = 2;
    gbc.insets = new Insets(5, 5, 5, 5);
    tablesPane.add(new BorderlessButton(addGroupAction), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 6;
    gbc.gridy = 2;
    gbc.insets = new Insets(5, 5, 5, 5);
    tablesPane.add(new BorderlessButton(removeGroupAction), gbc);

    gbc = new GridBagConstraints();
    gbc.gridx = 2;
    gbc.gridy = 3;
    gbc.weighty = 1;
View Full Code Here

    final Action sortUpAction = new SortBulkUpAction(tableModel, selectionModel, table);
    final Action sortDownAction = new SortBulkDownAction(tableModel, selectionModel, table);

    final JPanel buttonsPanel = new JPanel();
    buttonsPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    buttonsPanel.add(new BorderlessButton(sortUpAction));
    buttonsPanel.add(new BorderlessButton(sortDownAction));
    buttonsPanel.add(Box.createHorizontalStrut(20));
    buttonsPanel.add(new BorderlessButton(editGroupAction));
    buttonsPanel.add(new BorderlessButton(addGroupAction));
    buttonsPanel.add(new BorderlessButton(removeGroupAction));

    final JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.add(new JScrollPane(table), BorderLayout.CENTER);
    panel.add(buttonsPanel, BorderLayout.NORTH);
View Full Code Here

  }

  protected Component createContentPane()
  {

    final JButton importParamAddButton = new BorderlessButton(new AddParameterAction(importTable));
    final JButton importParamRemoveButton = new BorderlessButton(new RemoveParameterAction(importTable));

    final JPanel importButtonsToolbar = new JPanel();
    importButtonsToolbar.setLayout(new FlowLayout(FlowLayout.RIGHT));
    importButtonsToolbar.add(importParamAddButton);
    importButtonsToolbar.add(importParamRemoveButton);

    final JPanel theImportPanel = new JPanel(new BorderLayout());
    theImportPanel.setBorder(BorderFactory.createTitledBorder(Messages.getString
        ("SubReportParameterDialog.ImportParameter")));
    theImportPanel.add(new JScrollPane(importTable), BorderLayout.CENTER);
    theImportPanel.add(importButtonsToolbar, BorderLayout.NORTH);

    final JButton exportParamAddButton = new BorderlessButton(new AddParameterAction(exportTable));
    final JButton exportParamRemoveButton = new BorderlessButton(new RemoveParameterAction(exportTable));

    final JPanel exportButtonsToolbar = new JPanel();
    exportButtonsToolbar.setLayout(new FlowLayout(FlowLayout.RIGHT));
    exportButtonsToolbar.add(exportParamAddButton);
    exportButtonsToolbar.add(exportParamRemoveButton);
View Full Code Here

    final JScrollPane theScrollPanel = new JScrollPane(availableDataSources);
    theScrollPanel.setAutoscrolls(true);

    final JPanel theDataSetsButtonPanel = new JPanel();
    theDataSetsButtonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    theDataSetsButtonPanel.add(new BorderlessButton(showAddDataSourcePopupAction));
    theDataSetsButtonPanel.add(new BorderlessButton(editDataSourceAction));
    theDataSetsButtonPanel.add(new BorderlessButton(removeAction));

    final JPanel theControlsPanel = new JPanel(new BorderLayout());
    theControlsPanel.add(new JLabel(Messages.getString("ParameterDialog.DataSources")), BorderLayout.WEST);
    theControlsPanel.add(theDataSetsButtonPanel, BorderLayout.EAST);
View Full Code Here

    gbc.anchor = GridBagConstraints.WEST;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.weightx = 1;
    gbc.insets = new Insets(5, 5, 5, 5);
    final JPanel propertiesButtonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 5, 5));
    propertiesButtonPanel.add(new BorderlessButton(new AddParameterAction(propertiesTable)));
    propertiesButtonPanel.add(new BorderlessButton(new RemoveParameterAction(propertiesTable)));
    mondrianPropertiesPanel.add(propertiesButtonPanel, gbc);


    gbc.gridx = 0;
    gbc.gridy = 2;
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.designtime.swing.BorderlessButton

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.