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

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


    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


    final QueryRemoveAction queryRemoveAction = new QueryRemoveAction();
    queryNameList.addListSelectionListener(queryRemoveAction);

    final JPanel theQueryButtonsPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    theQueryButtonsPanel.add(new BorderlessButton(new QueryAddAction()));
    theQueryButtonsPanel.add(new BorderlessButton(queryRemoveAction));

    final JPanel theQueryControlsPanel = new JPanel(new BorderLayout());
    theQueryControlsPanel.add(new JLabel(messages.getString("ReflectionDataSourceEditor.AvailableQueries")), BorderLayout.WEST);
    theQueryControlsPanel.add(theQueryButtonsPanel, BorderLayout.EAST);
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);
    return locationFieldPanel;
  }
View Full Code Here

  protected Component createContentPane()
  {
    final JPanel buttonPanel = new JPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    buttonPanel.add(new BorderlessButton(removeAction));

    final JPanel headerPanel = new JPanel();
    headerPanel.setBorder(BorderFactory.createEmptyBorder(0,0,2,0));
    headerPanel.setLayout(new BorderLayout());
    headerPanel.add(buttonPanel, BorderLayout.EAST);
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 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(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

    final Action sortUpAction = new SortBulkUpAction(dateFormatModel, selectionModel, dateFormatTable);
    final Action sortDownAction = new SortBulkDownAction(dateFormatModel, selectionModel, dateFormatTable);

    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(addGroupAction));
    buttonsPanel.add(new BorderlessButton(removeGroupAction));

    final JPanel panel = new JPanel();
    panel.setLayout(new BorderLayout());
    panel.setBorder(new EmptyBorder(2, 2, 2, 2));
    panel.add(new JScrollPane(dateFormatTable), BorderLayout.CENTER);
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

    hostList.addListSelectionListener(removePasswordsAction);

    final JPanel buttonPanel = new JPanel();
    buttonPanel.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
    buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
    buttonPanel.add(new BorderlessButton(removePasswordsAction));

    final JPanel headerPanel = new JPanel();
    headerPanel.setBorder(BorderFactory.createEmptyBorder(0,0,5,0));
    headerPanel.setLayout(new BorderLayout());
    headerPanel.add(buttonPanel, BorderLayout.EAST);
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

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.