Examples of addAction()


Examples of com.vaadin.ui.Panel.addAction()

        pl.addComponent(l);

        TextField f = new TextField();
        pl.addComponent(f);

        p.addAction(new ShortcutListener("F8", KeyCode.F8, null) {

            @Override
            public void handleAction(Object sender, Object target) {
                mainWindow.showNotification(getCaption());
View Full Code Here

Examples of devplugin.PluginTreeNode.addAction()

            deleteFavorite.putValue(Action.NAME, mLocalizer.ellipsisMsg("deleteTree","Delete"));
            deleteFavorite.putValue(Action.SMALL_ICON, TVBrowserIcons.delete(TVBrowserIcons.SIZE_SMALL));
            deleteFavorite.putValue(ContextMenuIf.ACTIONKEY_KEYBOARD_EVENT,
                KeyEvent.VK_DELETE);

            newNode.addAction(editFavorite);
            newNode.addAction(deleteFavorite);


            if(progArr.length <= 10) {
              newNode.setGroupingByDateEnabled(false);
View Full Code Here

Examples of graphplan.graph.ActionLevel.addAction()

      PropositionLevel propositionLevel = (PropositionLevel) graph.getGraphLevel(graph.size()-1);
      //into which we add the preconditions for this action
      propositionLevel.addPropositions(concreteOperators[i].getPreconds());
      //We then create an action level to contain this action
      ActionLevel actionLevel = new ActionLevel();
      actionLevel.addAction(concreteOperators[i]);
      graph.addGraphLevel(actionLevel);
      //And create another proposition level for its effects
      PropositionLevel propositionLevel2 = new PropositionLevel();
      propositionLevel2.addPropositions(concreteOperators[i].getEffects());
     
View Full Code Here

Examples of hudson.model.Run.addAction()

                        MetadataBuildAction action = buildByNumber.getAction(MetadataBuildAction.class);
                        if (action != null) {
                            container = action;
                        } else if (createContainer) {
                            action = new MetadataBuildAction();
                            buildByNumber.addAction(action);
                            container = action;
                        } else {
                            throw new NoMetadataException("Build #" + build + " of job "
                                    + job + " has no associated metadata.");
                        }
View Full Code Here

Examples of javaff.data.TimeStampedPlan.addAction()

            if (a instanceof StartInstantAction)
            {
                DurativeAction da = ((StartInstantAction)a).parent;
                BigDecimal time = TheArray[Timepoints.indexOf(a)][0].negate().setScale(SCALE,ROUND);
        BigDecimal dur = TheArray[Timepoints.indexOf(da.endAction)][0].negate().subtract(time).setScale(SCALE,ROUND);
                plan.addAction(da, time, dur);
            }
      else if (a instanceof STRIPSInstantAction && a != START)
      {
        BigDecimal time = TheArray[Timepoints.indexOf(a)][0].negate().setScale(SCALE,ROUND);
        plan.addAction(a, time);
View Full Code Here

Examples of javaff.data.TotalOrderPlan.addAction()

      Iterator pit = plan.iterator();
      TotalOrderPlan p = new TotalOrderPlan();
      while (pit.hasNext())
      {
        PGAction a = (PGAction) pit.next();
        if (!(a instanceof PGNoOp)) p.addAction(a.action);
      }
      //p.print(javaff.JavaFF.infoOutput);
      return p;
    }
    else return null;
View Full Code Here

Examples of javaff.scheduling.SchedulabilityChecker.addAction()

      }
    }
    rList.retainAll(a.getDeletePropositions());
    if (!rList.isEmpty()) return false;
    SchedulabilityChecker c = (VelosoSchedulabilityChecker) checker.clone(); //This should have to be cloned here and below
    boolean result = c.addAction((InstantAction)a, this);
    if (result && a instanceof StartInstantAction)
    {
      TemporalMetricState dupli = (TemporalMetricState) this.clone();
      dupli.apply(a);
      result = c.addAction(((StartInstantAction)a).getSibling(), dupli);
View Full Code Here

Examples of lcmc.common.ui.utils.MyMenuItem.addAction()

                                        ra.getPullDownMenuName(),
                                        null,
                                        null,
                                        new AccessMode(AccessMode.ADMIN, AccessMode.NORMAL),
                                        new AccessMode(AccessMode.OP, AccessMode.NORMAL));
                        mmi.addAction(new MenuAction() {
                                @Override
                                public void run(final String text) {
                                    final CloneInfo ci = groupInfo.getCloneInfo();
                                    if (ci != null) {
                                        ci.hidePopup();
View Full Code Here

Examples of lineage2.gameserver.templates.npc.RandomActions.addAction()

            org.dom4j.Element nextElement = (org.dom4j.Element)nextIterator.next();
            int id = Integer.parseInt(nextElement.attributeValue("id"));
            NpcString phrase = nextElement.attributeValue("phrase_id") == null ? null : NpcString.valueOf(Integer.parseInt(nextElement.attributeValue("phrase_id")));
            int socialActionId = nextElement.attributeValue("social_action_id") == null ? -1 : Integer.parseInt(nextElement.attributeValue("social_action_id"));
            int delay = nextElement.attributeValue("delay") == null ? 0 : Integer.parseInt(nextElement.attributeValue("delay"));
            randomActions.addAction(new RandomActions.Action(id, phrase, socialActionId, delay));
          }
          template.setRandomActions(randomActions);
        }
      }
      getHolder().addTemplate(template);
View Full Code Here

Examples of net.java.sip.communicator.impl.notification.EventNotification.addAction()

           
            this.fireNotificationEventTypeEvent(
                NotificationEventTypeEvent.EVENT_TYPE_ADDED, eventType);
        }

        Object existingAction = notification.addAction(actionType, handler);

        // We fire the appropriate event depending on whether this is an
        // already existing actionType or a new one.
        if (existingAction != null)
        {
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.