Examples of JaspiraToolbar


Examples of org.openbp.jaspira.action.JaspiraToolbar

    {
      // We have no children, so we do not want the toolbar to be shown
      return null;
    }

    JaspiraToolbar toolbar = new JaspiraToolbar();

    if (virtualRoot.getToolbarchildren() != null)
    {
      for (Iterator it = virtualRoot.getToolbarchildren().iterator(); it.hasNext();)
      {
        JaspiraAction action = (JaspiraAction) it.next();

        JComponent item = action.toToolBarComponent();
        if (item != null)
        {
          toolbar.add(item);
          toolbar.addSeparator();
        }
      }
    }

    return toolbar;
View Full Code Here

Examples of org.openbp.jaspira.action.JaspiraToolbar

        ItemFilter filter = (ItemFilter) filterList.get(i);

        // Create the toolbar button
        if (toolbar == null)
        {
          toolbar = new JaspiraToolbar();
          toolbar.setIconSize(FlexibleSize.SMALL);
        }

        FilterToolbarAction action = new FilterToolbarAction(filter);
        action.setIcon(filter.getIcon());
View Full Code Here

Examples of org.openbp.jaspira.action.JaspiraToolbar

   *
   * @return The toolbar or null if the plugin does not have a toolbar
   */
  public JaspiraToolbar createToolbar()
  {
    JaspiraToolbar toolbar = null;

    switch (getToolbarType())
    {
    case TOOLBAR_EVENTS:
      // Standard toolbar, add all event actions
      toolbar = new JaspiraToolbar();

      List actionNames = getEventActionNames();
      if (actionNames != null)
      {
        int n = actionNames.size();
        for (int i = 0; i < n; ++i)
        {
          String actionName = (String) actionNames.get(i);
          toolbar.add(getAction(actionName));
        }
      }
      break;

    case TOOLBAR_DYNAMIC:
View Full Code Here

Examples of org.openbp.jaspira.action.JaspiraToolbar

      return EVENT_IGNORED;

    // Show the menu below the main toolbar
    JaspiraPage page = itemBrowser.getPage();
    JaspiraPageContainer pagecontainer = (JaspiraPageContainer) page.getParentContainer();
    JaspiraToolbar toolbar = pagecontainer.getToolbar();

    int height = toolbar.getHeight();
    menu.show(toolbar, 0, height);

    return EVENT_CONSUMED;
  }
View Full Code Here

Examples of org.openbp.jaspira.action.JaspiraToolbar

      buttonDim = new Dimension(20, 20);
      hotkeyFont = new Font("arial", Font.BOLD, 20);
    }

    // Create the button bar
    pageButtonBar = new JaspiraToolbar(buttonSize, JaspiraToolbar.VERTICAL);
    pageButtonBar.setFloatable(false);

    // Sets the alt action to show the hotkeys of the page buttons in the bar
    inputmap = pageButtonBar.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
    actionmap = pageButtonBar.getActionMap();
    inputmap.put(KeyStroke.getKeyStroke("alt pressed ALT"), "mark_on");
    inputmap.put(KeyStroke.getKeyStroke("released ALT"), "mark_off");
    inputmap.put(KeyStroke.getKeyStroke("ctrl released ALT"), "mark_off");
    actionmap.put("mark_on", new DisplayHotkeyAction(true));
    actionmap.put("mark_off", new DisplayHotkeyAction(false));

    // Create the main toolbar of the page container
    toolbar = new JaspiraToolbar();
    toolbar.setFloatable(false);

    // The 'open in new dialog' label can be used to drag a plugin onto it in order to move it to its own dialog frame
    openInDialogLabel = new JLabel(((MultiIcon) getPluginResourceCollection().getRequiredObject("frame.plugininframe.icon")).getIcon(buttonSize));
    openInDialogLabel.setToolTipText(getPluginResourceCollection().getRequiredString("frame.plugininframe.description"));
View Full Code Here

Examples of org.openbp.jaspira.action.JaspiraToolbar

    nameBar.setToolTipText(plugin.getDescription());
    nameBar.setLayout(new FlowLayout(FlowLayout.LEFT, 2, 2));
    nameBar.addMouseListener(this);
    nameBar.add(titleLabel);

    titleBar = new JaspiraToolbar();
    titleBar.setFloatable(false);
    titleBar.setToolTipText(plugin.getDescription());
    titleBar.addMouseListener(this);

    add(titleBar, BorderLayout.NORTH);
View Full Code Here

Examples of org.openbp.jaspira.action.JaspiraToolbar

      {
        List actions = getActions();

        if (actions != null)
        {
          toolbar = new JaspiraToolbar();
          toolbar.setIconSize(FlexibleSize.SMALL);
          toolbar.setBackground(SkyTheme.COLOR_BACKGROUND_LIGHT);

          int n = actions.size();
          for (int i = 0; i < n; i++)
View Full Code Here

Examples of org.openbp.jaspira.action.JaspiraToolbar

    if (mainToolbar != null)
    {
      getContentPane().remove(mainToolbar);
    }

    mainToolbar = new JaspiraToolbar();
    mainToolbar.setFloatable(false);

    JaspiraToolbar toolbar = plugin.createToolbar();
    if (toolbar != null)
    {
      mainToolbar.add(toolbar, BorderLayout.WEST);
    }
View Full Code Here

Examples of org.openbp.jaspira.action.JaspiraToolbar

   */
  public JaspiraToolbar createToolbar()
  {
    if (toolbar == null)
    {
      toolbar = new JaspiraToolbar();

      toolbar.add(filterMgr.getFilterToolbar());

      JaspiraAction action = getAction("plugin.itembrowser.togglefunctionalgroup");
      if (action != null)
View Full Code Here

Examples of org.openbp.jaspira.action.JaspiraToolbar

    if (mainToolbar != null)
    {
      getContentPane().remove(mainToolbar);
    }

    mainToolbar = new JaspiraToolbar();
    mainToolbar.setFloatable(false);

    JaspiraToolbar toolbar = plugin.createToolbar();
    if (toolbar != null)
    {
      mainToolbar.add(toolbar, BorderLayout.WEST);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.