Package org.openbp.jaspira.action

Examples of org.openbp.jaspira.action.JaspiraAction$PriorityComparator


  }

  public void addToViewGroups(CmsGroup group) {
    Set<CmsGroup> groups = getViewGroups();
    if (groups == null) {
      groups = new TreeSet<CmsGroup>(new PriorityComparator());
      setViewGroups(groups);
    }
    groups.add(group);
    group.getViewChannels().add(this);
  }
View Full Code Here


  }

  public void addToContriGroups(CmsGroup group) {
    Set<CmsGroup> groups = getContriGroups();
    if (groups == null) {
      groups = new TreeSet<CmsGroup>(new PriorityComparator());
      setContriGroups(groups);
    }
    groups.add(group);
    group.getContriChannels().add(this);
  }
View Full Code Here

  }

  public void addToUsers(CmsUser user) {
    Set<CmsUser> set = getUsers();
    if (set == null) {
      set = new TreeSet<CmsUser>(new PriorityComparator());
      setUsers(set);
    }
    set.add(user);
    user.addToChannels(this);
  }
View Full Code Here

    return ids;
  }
  public void addToViewChannels(Channel channel) {
    Set<Channel> channels = getViewChannels();
    if (channels == null) {
      channels = new TreeSet<Channel>(new PriorityComparator());
      setViewChannels(channels);
    }
    channels.add(channel);
    channel.getViewGroups().add(this);
  }
View Full Code Here

  }

  public void addToContriChannels(Channel channel) {
    Set<Channel> channels = getContriChannels();
    if (channels == null) {
      channels = new TreeSet<Channel>(new PriorityComparator());
      setContriChannels(channels);
    }
    channels.add(channel);
    channel.getContriGroups().add(this);
  }
View Full Code Here

      if (ie.isDataFlavorSupported(ClientFlavors.TYPE_ITEM))
      {
        final DataTypeItem dt = (DataTypeItem) ie.getSafeTransferData(ClientFlavors.TYPE_ITEM);
        if (dt != null)
        {
          JaspiraAction search = new JaspiraAction(getPluginResourceCollection(), "search.datatype")
          {
            public void actionPerformed(ActionEvent ae)
            {
              decorator.setDataType(dt);
            }
View Full Code Here

   */
  public void add(JaspiraAction action)
  {
    if (virtualRoot == null)
    {
      virtualRoot = new JaspiraAction("root", null, null, null, null, 1, JaspiraAction.TYPE_MENU);
    }

    virtualRoot.addMenuChild(action);
    virtualRoot.addToolbarChild(action);
  }
View Full Code Here

    if (menuchildren == null)
      return null;

    for (Iterator it = menuchildren.iterator(); it.hasNext();)
    {
      JaspiraAction next = (JaspiraAction) it.next();

      if (next.getType().equals(JaspiraAction.TYPE_GROUP))
      {
        if (next.getMenuchildren() == null)
        {
          // The group is empty, ignore it.
          continue;
        }

        for (Iterator it2 = next.getMenuchildren().iterator(); it2.hasNext();)
        {
          menu.add((JaspiraAction) it2.next());
        }
      }
      else
View Full Code Here

    undoStack = new LinkedList();
    redoStack = new LinkedList();

    if (redoText == null)
    {
      JaspiraAction redo = ActionMgr.getInstance().getAction("undo.redo");
      if (redo != null)
      {
        redoText = redo.getDisplayName();
        redoDescription = redo.getDescription();
      }
    }

    if (undoText == null)
    {
      JaspiraAction undo = ActionMgr.getInstance().getAction("undo.undo");
      if (undo != null)
      {
        undoText = undo.getDisplayName();
        undoDescription = undo.getDescription();
      }
    }

    reloadHistorySize();
  }
View Full Code Here

    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();
        }
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.action.JaspiraAction$PriorityComparator

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.