Package org.openbp.jaspira.action

Examples of org.openbp.jaspira.action.JaspiraToolbarButton


        }

        FilterToolbarAction action = new FilterToolbarAction(filter);
        action.setIcon(filter.getIcon());

        JaspiraToolbarButton button = new JaspiraToolbarButton(action);
        button.setSelected(filter.isActive());

        toolbar.add(button);
        button.invalidate();

        // Create the configuration component if available
        JComponent filterComponent = filter.getConfigurationComponent();
        if (filterComponent != null)
        {
View Full Code Here


      };

      contentPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_F4, KeyEvent.CTRL_MASK, true), "closePlugin");
      contentPane.getActionMap().put("closePlugin", closeAction);

      closeButton = new JaspiraToolbarButton(closeAction);
    }

    DragInitiator.makeDraggable(titleLabel, this);
    DragInitiator.makeDraggable(titleBar, this);
    DragInitiator.makeDraggable(nameBar, this);
View Full Code Here

          for (int i = 0; i < n; i++)
          {
            ItemTypeToggleAction action = (ItemTypeToggleAction) actions.get(i);
            String itemType = action.getItemTypeDescriptor().getItemType();

            JaspiraToolbarButton toggle = new JaspiraToolbarButton(action);
            toggle.setSelected(containsItemType(itemType));
            toggle.setBackground(SkyTheme.COLOR_BACKGROUND_LIGHT);

            toolbar.add(toggle);

            toggle.invalidate();
            toolbar.invalidate();
          }

          JLabel label = new JLabel(getItemFilterResource().getRequiredString("type"));
          label.setBorder(new EmptyBorder(0, 0, 0, 5));
View Full Code Here

      this.itd = itd;
    }

    public void actionPerformed(ActionEvent e)
    {
      JaspiraToolbarButton button = (JaspiraToolbarButton) e.getSource();

      JaspiraAction action = button.getJaspiraAction();

      // Toggle
      boolean selected = !action.isSelected();

      String itemType = itd.getItemType();
View Full Code Here

    pwfPane.add(passwordField, BorderLayout.WEST);
    pwfPane.setOpaque(false);
    panel.add(pwfPane, BorderLayout.CENTER);

    Box btnPane = Box.createHorizontalBox();
    JaspiraToolbarButton setPWBtn = new JaspiraToolbarButton(new PWAction(resourceCollection, "passwordwidget.newbtn"));
    setPWBtn.setIconSize(12);
    btnPane.add(setPWBtn);
    JaspiraToolbarButton removePWBtn = new JaspiraToolbarButton(new JaspiraAction(resourceCollection, "passwordwidget.removebtn")
    {
      public void actionPerformed(ActionEvent ae)
      {
        setValue(null);
        notifyOptionMgrOfOptionChange();
      }
    });
    removePWBtn.setIconSize(12);
    btnPane.add(removePWBtn);
    panel.add(btnPane, BorderLayout.EAST);
  }
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.action.JaspiraToolbarButton

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.