Package org.primefaces.util

Examples of org.primefaces.util.WidgetBuilder.initWithDomReady()


        boolean dynamic = tree.isDynamic();
        String selectionMode = tree.getSelectionMode();
        String widget = tree.getOrientation().equals("vertical") ? "VerticalTree" : "HorizontalTree";

        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady(widget, tree.resolveWidgetVar(), clientId);

        wb.attr("dynamic", dynamic)
          .attr("highlight", tree.isHighlight(), true)
        .attr("animate", tree.isAnimate(), false)
        .attr("droppable", tree.isDroppable(), false)
View Full Code Here


        String clientId = panel.getClientId(context);
        String targetClientId = target.getClientId(context);
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("OverlayPanel", panel.resolveWidgetVar(), clientId)
            .attr("target", targetClientId)
            .attr("showEvent", panel.getShowEvent(), null)
            .attr("hideEvent", panel.getHideEvent(), null)
            .attr("showEffect", panel.getShowEffect(), null)
            .attr("hideEffect", panel.getHideEffect(), null)
View Full Code Here

    protected void encodeScript(FacesContext context, AbstractMenu abstractMenu) throws IOException {
        Menu menu = (Menu) abstractMenu;
    String clientId = menu.getClientId(context);
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("PlainMenu", menu.resolveWidgetVar(), clientId);
       
        if(menu.isOverlay()) {
            encodeOverlayConfig(context, menu, wb);
        }
View Full Code Here

  }
 
  protected void encodeScript(FacesContext context, PickList pickList) throws IOException {
    String clientId = pickList.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("PickList", pickList.resolveWidgetVar(), clientId)
            .attr("effect", pickList.getEffect())
            .attr("effectSpeed", pickList.getEffectSpeed())
            .attr("showSourceControls", pickList.isShowSourceControls(), false)
            .attr("showTargetControls", pickList.isShowTargetControls(), false)
            .attr("disabled", pickList.isDisabled(), false)
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.