Package org.richfaces.renderkit

Examples of org.richfaces.renderkit.ScriptOptions.addOption()


        attribut = attributes.get("selectionMode");
        if (attribut == null) {
            attribut = "";
        }
        scriptOptions.addOption("selectionMode", attribut);

        attribut = attributes.get("onselectionchange");
        if (attribut == null) {
            attribut = "";
        }
View Full Code Here


        JSONObject dndParams = new JSONObject();
        try {
            dndParams.put("label", dragLabel == null ? "" : dragLabel);
        } catch (JSONException e) {
        }
        dragOptions.addOption("dndParams", dndParams.toString());

        function.addParameter(dragOptions);
        function.appendScript(buffer);

        String scriptContribution = contributor.getScriptContribution(context,
View Full Code Here

        StringBuffer buffer = new StringBuffer("delete " + varName + ";\nvar " + varName + " = ");
        JSFunction function = new JSFunction("new DnD.ExtSimpleDropZone");
        function.addParameter(dropTargetId);
        ScriptOptions dropOptions = contributor.buildOptions(context, column);
        JSONObject dndParams = new JSONObject();
        dropOptions.addOption("dndParams", dndParams.toString());

        function.addParameter(dropOptions);
        function.appendScript(buffer);

        String dropTargetScriptId = column.getClientId(context) + ":"
View Full Code Here

  }

  public ScriptOptions buildOptions(FacesContext context,
      UIComponent component) {
    ScriptOptions scriptOptions = new ScriptOptions(component);
    scriptOptions.addOption("selectionInput", getSelectionInputName(
        context, (UIScrollableDataTable) component));
    Map<String, Object> attributes = component.getAttributes();
    Object attribut = attributes.get("selectedClass");
    if (attribut == null) {
      attribut = "";
View Full Code Here

    Map<String, Object> attributes = component.getAttributes();
    Object attribut = attributes.get("selectedClass");
    if (attribut == null) {
      attribut = "";
    }
    scriptOptions.addOption("selectedClass", attribut);
    attribut = attributes.get("activeClass");
    if (attribut == null) {
      attribut = "";
    }scriptOptions.addOption("activeClass", attribut);
    return scriptOptions;
View Full Code Here

    }
    scriptOptions.addOption("selectedClass", attribut);
    attribut = attributes.get("activeClass");
    if (attribut == null) {
      attribut = "";
    }scriptOptions.addOption("activeClass", attribut);
    return scriptOptions;
  }
 
 
  public void encode(FacesContext context, UIComponent component)
View Full Code Here

        if(evt == null || evt.trim().length() == 0){
             evt = "onmouseover";
        }
        function.addParameter(evt);
        ScriptOptions Optionssub = new ScriptOptions(component);
        Optionssub.addOption("onopen", component.getAttributes().get("onopen"));
        Optionssub.addOption("onclose", component.getAttributes().get("onclose"));
        Optionssub.addOption("direction", component.getAttributes().get("direction"));
        function.addParameter(Optionssub);
        function.appendScript(buffer);
View Full Code Here

             evt = "onmouseover";
        }
        function.addParameter(evt);
        ScriptOptions Optionssub = new ScriptOptions(component);
        Optionssub.addOption("onopen", component.getAttributes().get("onopen"));
        Optionssub.addOption("onclose", component.getAttributes().get("onclose"));
        Optionssub.addOption("direction", component.getAttributes().get("direction"));
        function.addParameter(Optionssub);
        function.appendScript(buffer);

    } else {
View Full Code Here

        }
        function.addParameter(evt);
        ScriptOptions Optionssub = new ScriptOptions(component);
        Optionssub.addOption("onopen", component.getAttributes().get("onopen"));
        Optionssub.addOption("onclose", component.getAttributes().get("onclose"));
        Optionssub.addOption("direction", component.getAttributes().get("direction"));
        function.addParameter(Optionssub);
        function.appendScript(buffer);

    } else {
        buffer.append(".");
View Full Code Here

        }
        function.addParameter(evt);
        function.addParameter("onmouseout");
        ScriptOptions Options = new ScriptOptions(component);

        Options.addOption("direction", component.getAttributes().get("direction"));
        Options.addOption("jointPoint", component.getAttributes().get("jointPoint"));
        Options.addOption("verticalOffset", component.getAttributes().get("verticalOffset"));


        Options.addOption("horizontalOffset", component.getAttributes().get("horizontalOffset"));
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.