Examples of IScript


Examples of ag.ion.noa.script.IScript

    boolean needsModule = type.equals(IScriptProvider.TYPE_BASIC);
    if(needsModule && module == null)
      return null;
    IScript[] allScripts = getScripts(type,library);
    for(int i = 0; i < allScripts.length; i++) {
      IScript script = allScripts[i];
      String moduleName = script.getModuleName();
      if(script.getName().equals(name)) {
        if(needsModule) {
          if(moduleName != null && moduleName.equals(module))
            return script;
        }
        else
View Full Code Here

Examples of ag.ion.noa.script.IScript

    boolean needsModule = type.equals(IScriptProvider.TYPE_BASIC);
    if (needsModule && module == null)
      return null;
    IScript[] allScripts = getScripts(type, library);
    for (int i = 0; i < allScripts.length; i++) {
      IScript script = allScripts[i];
      String moduleName = script.getModuleName();
      if (script.getName().equals(name)) {
        if (needsModule) {
          if (moduleName != null && moduleName.equals(module))
            return script;
        } else
          return script;
View Full Code Here

Examples of net.sourceforge.marathon.api.IScript

     */
    @Test public void testUncaughtThrowableInsideJava() throws Exception {
    }

    private synchronized void createScriptAndExecute(String content) throws Exception {
        IScript script = createScript(content, DEFAULT_SCRIPT_NAME);
        result = new PlaybackResult();
        player = script.getPlayer(this, result);
        player.play(true);
        wait();
    }
View Full Code Here

Examples of org.apache.tapestry.IScript

        finalSymbols.put(VALIDATOR_SYMBOL, this);

        IResourceLocation location =
            new ClasspathResourceLocation(engine.getResourceResolver(), scriptPath);

        IScript script = source.getScript(location);

        Body body = Body.get(cycle);

        if (body == null)
            throw new ApplicationRuntimeException(
                Tapestry.getMessage("ValidField.must-be-contained-by-body"),
                field,
                null,
                null);

        script.execute(cycle, body, finalSymbols);

        String functionName = (String) finalSymbols.get(FUNCTION_SYMBOL);

        form.addEventHandler(FormEventType.SUBMIT, functionName);
    }
View Full Code Here

Examples of org.apache.tapestry.IScript

        IResourceLocation scriptLocation =
            getSpecification().getSpecificationLocation().getRelativeLocation(
                "InspectorButton.script");

        IScript script = source.getScript(scriptLocation);

        Map symbols = new HashMap();

        IEngineService service = engine.getService(Tapestry.DIRECT_SERVICE);
        ILink link = service.getLink(cycle, this, null);

        symbols.put("URL", link.getURL());

        Body body = Body.get(cycle);

        if (body == null)
            throw new ApplicationRuntimeException(
                Tapestry.getMessage("InspectorButton.must-be-contained-by-body"),
                this,
                null,
                null);

        script.execute(cycle, body, symbols);

        // Now, go render the rest from the template.

        super.renderComponent(writer, cycle);
    }
View Full Code Here

Examples of org.apache.tapestry.IScript

        _cache.clear();
    }

    public synchronized IScript getScript(IResourceLocation scriptLocation)
    {
        IScript result = (IScript) _cache.get(scriptLocation);

        if (result != null)
            return result;

        result = parse(scriptLocation);
View Full Code Here

Examples of org.apache.tapestry.IScript

        finalSymbols.put(FORM_SYMBOL, form);
        finalSymbols.put(VALIDATOR_SYMBOL, this);
       
        Resource location = new ClasspathResource(new DefaultClassResolver(), scriptPath);
       
        IScript script = _scriptSource.getScript(location);

        // If there's an error, report it against the field (this validator object doesn't
        // have a location).

        PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, field);

        script.execute(cycle, pageRenderSupport, finalSymbols);
    }
View Full Code Here

Examples of org.apache.tapestry.IScript

        finalSymbols.put(FORM_SYMBOL, form);
        finalSymbols.put(VALIDATOR_SYMBOL, this);

        Resource location = new ClasspathResource(engine.getClassResolver(), scriptPath);

        IScript script = source.getScript(location);

        // If there's an error, report it against the field (this validator object doesn't
        // have a location).

        PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, field);

        script.execute(cycle, pageRenderSupport, finalSymbols);

        String functionName = (String) finalSymbols.get(FUNCTION_SYMBOL);

        form.addEventHandler(FormEventType.SUBMIT, functionName);
    }
View Full Code Here

Examples of org.apache.tapestry.IScript

        _cache.clear();
    }

    public synchronized IScript getScript(Resource resource)
    {
        IScript result = (IScript) _cache.get(resource);

        if (result != null)
            return result;

        result = parse(resource);
View Full Code Here

Examples of org.apache.tapestry.IScript

        IScriptSource source = engine.getScriptSource();

        Resource scriptLocation = getSpecification().getSpecificationLocation()
                .getRelativeResource("InspectorButton.script");

        IScript script = source.getScript(scriptLocation);

        Map symbols = new HashMap();

        IEngineService service = engine.getService(Tapestry.DIRECT_SERVICE);
        ILink link = service.getLink(cycle, new DirectServiceParameter(this));

        symbols.put("URL", link.getURL());

        PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, this);

        script.execute(cycle, pageRenderSupport, symbols);

        // Now, go render the rest from the template.

        super.renderComponent(writer, cycle);
    }
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.