Package org.richfaces.javascript

Examples of org.richfaces.javascript.JSFunctionDefinition


        page.executeJavaScript(function.toScript());
    }

    protected void executeOnTime(int time, String expression) {
        JSFunction function = new JSFunction("simulationContext.executeOnTime", time,
                new JSFunctionDefinition().addToBody(expression));

        page.executeJavaScript(function.toScript());
    }
View Full Code Here


        return "document.getElementById('" + id + "').click()";
    }

    protected void clickOnTime(int time, String id) {
        JSFunction function = new JSFunction("simulationContext.executeOnTime", time,
                new JSFunctionDefinition().addToBody(buildClickExpression(id)));

        page.executeJavaScript(function.toScript());
    }
View Full Code Here

       
       
        AjaxFunction ajaxFce = AjaxRendererUtils.buildAjaxFunction(context, component);
        ajaxFce.getOptions().getParameters().putAll(params);
       
        return new JSFunctionDefinition("event",EVENT_TYPE,SERIES_INDEX,
                POINT_INDEX,X_VALUE,Y_VALUE).addToBody(ajaxFce);
    }
View Full Code Here

            ajaxFunction.getOptions().getParameters().putAll(params);
            jsFunction = ajaxFunction;
        } else {
            return null;
        }
        return new JSFunctionDefinition("event", EVENT_TYPE_PARAM, START_X_PARAM, START_Y_PARAM, END_X_PARAM, END_Y_PARAM).addToBody(jsFunction);
    }
View Full Code Here

        handlersChain.addBehaviors(eventName);
        // handlersChain.addAjaxSubmitFunction();

        String handler = handlersChain.toScript();
        if (handler != null) {
            options.put(ON + eventName, new JSFunctionDefinition(JSReference.EVENT).addToBody(handler));
        }
    }
View Full Code Here

            writer.write(new JSFunction("RichFaces.ui.Focus.setFocus", targetClientId, priority, clientId,
                    uiFocus.getTiming()).toScript());
            writer.write(";");
        }
        if (uiFocus.getName() != null && !uiFocus.getName().trim().equals("")) {
            final JSFunctionDefinition definition = new JSFunctionDefinition().addToBody(new JSFunction("RichFaces.ui.Focus.focusStored", clientId));
            definition.setName(uiFocus.getName());
            writer.write(definition.toScript());
            writer.write(";");
        }
        writer.endElement(HtmlConstants.SCRIPT_ELEM);
    }
View Full Code Here

            ajaxFunction.getOptions().set("complete", new JSReference(CALLBACK));
            jsFunction = ajaxFunction;
        } else {
            return null;
        }
        return new JSFunctionDefinition("event", EVENT_TYPE_PARAM, QUERY_PARAM, QUERY_JSON_PARAM, FACET_PARAM, SEARCH_TERM_PARAM, CALLBACK).addToBody(
            jsFunction);
    }
View Full Code Here

                params,
                "");
        } else {
            return null;
        }
        return new JSFunctionDefinition("event", VIEW_PARAM, EVENT_TYPE_PARAM, ITEM_ID_PARAM, START_DATE_PARAM,
            END_DATE_PARAM, DAY_DELTA_PARAM, MINUTE_DELTA_PARAM, ALL_DAY_PARAM, CALLBACK).addToBody(jsFunction);
    }
View Full Code Here

TOP

Related Classes of org.richfaces.javascript.JSFunctionDefinition

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.