Examples of AnonymousFunction


Examples of org.openfaces.util.AnonymousFunction

        private static String generateUniqueId(String clientId) {
            return clientId + System.currentTimeMillis();
        }

        protected static AnonymousFunction getFunctionOfEvent(String eventHandler) {
            AnonymousFunction eventFunction = null;

            if (eventHandler != null) {
                eventFunction = new AnonymousFunction(eventHandler, "event");
            }
            return eventFunction;
        }
View Full Code Here

Examples of org.openfaces.util.AnonymousFunction

                result.put("execute", getExecuteParam(context, command, execute));
            }
            result.put("executeRenderedComponents", command.getExecuteRenderedComponents());
            String onajaxstart = command.getOnajaxstart();
            if (onajaxstart != null && onajaxstart.length() != 0) {
                result.put("onajaxstart", new AnonymousFunction(onajaxstart, "event"));
            }
            String onajaxend = command.getOnajaxend();
            if (onajaxend != null && onajaxend.length() != 0) {
                result.put("onajaxend", new AnonymousFunction(onajaxend, "event"));
            }
            String onerror = command.getOnerror();
            if (onerror != null && onerror.length() != 0) {
                result.put("onerror", new AnonymousFunction(onerror, "event"));
            }
            String onsuccess = command.getOnerror();
            if (onsuccess != null && onsuccess.length() != 0) {
                result.put("onsuccess", new AnonymousFunction(onsuccess, "event"));
            }
            Integer delayObj = (Integer) command.getAttributes().get("delay");
            int delay = delayObj != null ? delayObj : 0;
            if (delay > 0) {
                result.put("delay", delay);
View Full Code Here

Examples of org.openfaces.util.AnonymousFunction

        String dynamicClientFunction = (String) getDynamicValue(clientFunction);

        return new NewInstanceScript("O$._CustomValidator",
                getFormattedSummary(component),
                getFormattedDetail(component),
                new AnonymousFunction(
                        dynamicClientFunction != null ? dynamicClientFunction : ("return true;"),
                        "input", "value"));
    }
View Full Code Here

Examples of org.openfaces.util.AnonymousFunction

        CustomEventEditor editor = (CustomEventEditor) component;
        UIComponent timetableView = editor.getParent();

        Rendering.renderInitScript(context, new ScriptBuilder().initScript(context, timetableView, "O$.Timetable._initCustomEventEditor",
                editor,
                new AnonymousFunction(editor.getOncreate(), "timetable", "timetableEvent"),
                new AnonymousFunction(editor.getOnedit(), "timetable", "timetableEvent")).semicolon());
        writer.endElement("span");
    }
View Full Code Here

Examples of org.openfaces.util.AnonymousFunction

                },
                tabSet.isFocusable(),
                focusAreaClass,
                focusedClass,
               onchange != null ? new AnonymousFunction(onchange, "event") : null);

        Rendering.renderInitScript(context, sb,
                Resources.utilJsURL(context),
                Resources.internalURL(context, "select/tabset.js"));
View Full Code Here

Examples of org.openfaces.util.AnonymousFunction

            stylesObj.put(UNDEFINED_CLASS_KEY, undefinedStyleClass);
        } catch (JSONException e) {
            throw new RuntimeException(e);
        }

        AnonymousFunction onchangeFunction = null;
        String onchange = checkbox.getOnchange();

        if (onchange != null) {
            onchangeFunction = new AnonymousFunction(onchange, "event");
        }

        renderInitScript(facesContext, checkbox, imagesObj, stylesObj, onchangeFunction, triStateAllowed);
    }
View Full Code Here

Examples of org.openfaces.util.AnonymousFunction

            stylesObj.put(PRESSED_ITEM_CLASS_KEY, pressedItemStyleClass);
        } catch (JSONException e) {
            throw new RuntimeException(e);
        }

        AnonymousFunction onchangeFunction = null;
        String onchange = selectManyInputBase.getOnchange();

        if (onchange != null) {
            onchangeFunction = new AnonymousFunction(onchange, "event");
        }

        renderInitScript(facesContext, selectManyInputBase, imagesObj, stylesObj, selectItems.size(), onchangeFunction);
    }
View Full Code Here

Examples of org.openfaces.util.AnonymousFunction

                rolloverContainerClass,
                borderClass,
                loadingMode,
                tabbedPane.isFocusable(),
                focusedClass,
                onselectionchange != null ? new AnonymousFunction(onselectionchange, "event") : null,
                tabbedPane.isMirrorTabSetVisible() ? TabbedPane.MIRROR_TABSET_SUFFIX : null);

        Rendering.renderInitScript(context, sb,
                Resources.utilJsURL(context),
                Resources.internalURL(context, "panel/multiPage.js"),
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.