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

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


  {
    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.insets = new Insets(0, 5, 5, 5);
    final JScrollPane comp = new JScrollPane
        (availableFields, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    tablesPane.add(comp, gbc);

    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));

    gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.WEST;
    gbc.gridx = 2;
    gbc.gridy = 2;
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

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.