Examples of Actions


Examples of org.apache.struts2.convention.annotation.Actions

        expect(resultMapBuilder.build(ActionNamesAction.class, getAnnotation(ActionNamesAction.class, "run", Actions.class).value()[1], "actions2", actionPkg)).andReturn(results);
        expect(resultMapBuilder.build(SingleActionNameAction.class, getAnnotation(SingleActionNameAction.class, "run", Action.class), "action", actionPkg)).andReturn(results);
        expect(resultMapBuilder.build(TestAction.class, null, "test", actionPkg)).andReturn(results);
        expect(resultMapBuilder.build(TestExtends.class, null, "test-extends", actionPkg)).andReturn(results);

        Actions classLevelActions = ClassLevelAnnotationsAction.class.getAnnotation(Actions.class);
        expect(resultMapBuilder.build(ClassLevelAnnotationsAction.class, classLevelActions.value()[0], "class1", actionPkg)).andReturn(results);
        expect(resultMapBuilder.build(ClassLevelAnnotationsAction.class, classLevelActions.value()[1], "class2", actionPkg)).andReturn(results);

        Actions classLevelActionsDefaultMethod = ClassLevelAnnotationsDefaultMethodAction.class.getAnnotation(Actions.class);
        expect(resultMapBuilder.build(ClassLevelAnnotationsDefaultMethodAction.class, classLevelActionsDefaultMethod.value()[0], "class3", actionPkg)).andReturn(results);
        expect(resultMapBuilder.build(ClassLevelAnnotationsDefaultMethodAction.class, classLevelActionsDefaultMethod.value()[1], "class4", actionPkg)).andReturn(results);

        expect(resultMapBuilder.build(ClassLevelAnnotationAction.class, ClassLevelAnnotationAction.class.getAnnotation(Action.class), "class5", actionPkg)).andReturn(results);
        expect(resultMapBuilder.build(ClassLevelAnnotationDefaultMethodAction.class, ClassLevelAnnotationDefaultMethodAction.class.getAnnotation(Action.class), "class6", actionPkg)).andReturn(results);

        /* org.apache.struts2.convention.actions.idx */
 
View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel101.ActionsDocument.Actions

   * @param model The configuration model from which the mapping is being performed.
   * @throws ConfigurationException
   */
  public static void map(Element listenerConfigTree, Service listenerService, XMLBeansModel model) throws ConfigurationException {
    if (listenerService.getActions()!=null) {
            final Actions actions = listenerService.getActions();
            final MepType.Enum mep  = actions.getMep() ;
            if (mep != null)
            {
                listenerConfigTree.setAttribute(ListenerTagNames.MEP_ATTRIBUTE_TAG, mep.toString()) ;
            }
            final String inxsd = actions.getInXsd();
            if (inxsd != null)
            {
                listenerConfigTree.setAttribute(ListenerTagNames.IN_XSD_ATTRIBUTE_TAG, inxsd)
            }
            final String outxsd = actions.getOutXsd();
            if (outxsd != null)
            {
                listenerConfigTree.setAttribute(ListenerTagNames.OUT_XSD_ATTRIBUTE_TAG, outxsd)
            }
           
            final String faultxsd = actions.getFaultXsd();
           
            if (faultxsd != null)
            {
                listenerConfigTree.setAttribute(ListenerTagNames.FAULT_XSD_ATTRIBUTE_TAG, faultxsd);
            }   
           
            if (actions.isSetValidate())
            {
                listenerConfigTree.setAttribute(ListenerTagNames.VALIDATE_ATTRIBUTE_TAG, Boolean.toString(actions.getValidate())) ;
            }
               
            SecurityMapper.map(listenerConfigTree, listenerService);
      List<Action> actionList = actions.getActionList();
     
      HashMap<String,String> hm = new HashMap<String,String>();
      for(Action action : actionList) {
        mapAction(listenerConfigTree, action);
        if (hm.containsKey(action.getName())) {
View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel110.ActionsDocument.Actions

        {
            final Set<String> actionClasses = new HashSet<String>() ;
           
            for(final Service service : services.getServiceList())
            {
                final Actions actions = service.getActions() ;
                if (actions != null)
                {
                    for (final Action action: actions.getActionList())
                    {
                        actionClasses.add(action.getClass1()) ;
                    }
                }
            }
View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel120.ActionsDocument.Actions

        {
            final Set<String> actionClasses = new HashSet<String>() ;

            for(final Service service : services.getServiceList())
            {
                final Actions actions = service.getActions() ;
                if (actions != null)
                {
                    for (final Action action: actions.getActionList())
                    {
                        actionClasses.add(action.getClass1()) ;
                    }
                }
            }
View Full Code Here

Examples of org.jboss.soa.esb.listeners.config.xbeanmodel130.ActionsDocument.Actions

        {
            final Set<String> actionClasses = new HashSet<String>() ;

            for(final Service service : services.getServiceList())
            {
                final Actions actions = service.getActions() ;
                if (actions != null)
                {
                    for (final Action action: actions.getActionList())
                    {
                        actionClasses.add(action.getClass1()) ;
                    }
                }
            }
View Full Code Here

Examples of org.jdesktop.wonderland.common.security.annotation.Actions

     * @param clazz the class to search
     * @param actions the set of actions to add to
     * @return the actions for the class
     */
    private void getActions(Class clazz, Set<Action> actions) {
        Actions classActions = (Actions) clazz.getAnnotation(Actions.class);

        if (classActions != null) {
            for (Class ac : classActions.value()) {
                actions.add(Action.getInstance(ac));
            }
        }

        // search the superclass for any actions
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions

            .attribute("class").not().contains(advanced().getStyleClassForSelectedRow());
    }

    private void clickOnRow(int rowIndex, Keys... keys) {
        checkSelectRowArguments(rowIndex, keys);
        Actions builder = new Actions(browser);
        for (Keys key : keys) {
            builder.keyDown(key).build().perform();
        }
        advanced().getCellElement(0, rowIndex).click();
        for (Keys key : keys) {
            builder.keyUp(key).build().perform();
        }
    }
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions

        public boolean isVisible() {
            return Utils.isVisible(getRootElement());
        }

        public AdvancedPopupPanelInteractions moveByOffset(int xOffset, int yOffset) {
            new Actions(driver).dragAndDropBy(getHeaderElement(), xOffset, yOffset).perform();
            return this;
        }
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions

            new Actions(driver).dragAndDropBy(getHeaderElement(), xOffset, yOffset).perform();
            return this;
        }

        public AdvancedPopupPanelInteractions resizeFromLocation(ResizerLocation location, int byXPixels, int byYPixels) {
            new Actions(driver).dragAndDropBy(getResizerElement(location), byXPixels, byYPixels).perform();
            return this;
        }
View Full Code Here

Examples of org.openqa.selenium.interactions.Actions

        // given
        browser.get(contextPath.toExternalForm() + "dnd.jsf");
       
        WebElement framework = browser.findElements(By.cssSelector(".ui-draggable")).get(0);

        Actions builder = new Actions(browser);
        final Action dragAndDrop = builder.dragAndDrop(framework, phpTarget).build();
        guardAjax(dragAndDrop).perform();

        Assert.assertEquals(1, phpTarget.findElements(By.cssSelector("td")).size());
    }
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.