Package org.primefaces.util

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


            .callback("onTabShow", "function(index)", tabView.getOnTabShow())
            .callback("onTabClose", "function(index)", tabView.getOnTabClose());
       
        encodeClientBehaviors(context, tabView);

        wb.finish();
    }
   
    @Override
    protected void encodeMarkup(FacesContext context, TabView tabView) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
View Full Code Here


       
        if(list.isPaginator()) {
            encodePaginatorConfig(context, list, wb);
        }

        wb.finish();
    }

    /**
     * Renders items with no strict markup
     *
 
View Full Code Here

        }

        //Behaviors
        encodeClientBehaviors(context, table);

        wb.finish();
  }

  protected void encodeMarkup(FacesContext context, DataTable table) throws IOException{
    ResponseWriter writer = context.getResponseWriter();
    String clientId = table.getClientId(context);
View Full Code Here

        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("ImageSwitch", imageSwitch.resolveWidgetVar(), clientId, "imageswitch")            .attr("fx", imageSwitch.getEffect())
            .attr("speed", imageSwitch.getSpeed())
            .attr("timeout", slideshowSpeed);

        wb.finish();
  }

}
View Full Code Here

       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Ring", ring.resolveWidgetVar(), clientId, "ring")
            .attr("startingChild", ring.getFirst())
            .attr("easing", ring.getEasing(), null);
        wb.finish();
  }

    @Override
  public void encodeChildren(FacesContext context, UIComponent component) throws IOException {
        //Do nothing
View Full Code Here

            .attr("disabled", inplace.isDisabled(), false)
            .attr("editor", inplace.isEditor(), false);
       
        encodeClientBehaviors(context, inplace);
   
        wb.finish();
  }

    protected void encodeEditor(FacesContext context, Inplace inplace) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
View Full Code Here

        wb.init("Dashboard", dashboard.resolveWidgetVar(), clientId)
            .attr("disabled", dashboard.isDisabled(), false);
       
        encodeClientBehaviors(context, dashboard);
       
        wb.finish();
  }
 
  protected Panel findWidget(String id, Dashboard dashboard) {
    for(UIComponent child : dashboard.getChildren()) {
      Panel panel = (Panel) child;
View Full Code Here

        wb.attr("sticky", growl.isSticky(), false)
            .attr("life", growl.getLife(), 6000)
            .attr("escape", growl.isEscape(), true)
            .append(",msgs:");
        encodeMessages(context, growl);
        wb.finish();
    }
}
View Full Code Here

       
        wb.initWithDomReady("ColorPicker", colorPicker.resolveWidgetVar(), clientId, "colorpicker")
            .attr("mode", colorPicker.getMode())
            .attr("color", value, null);

        wb.finish();
    }
}
View Full Code Here

       
        wb.attr("panelStyle", menu.getPanelStyle(), null).attr("panelStyleClass", menu.getPanelStyleClass(), null);

        encodeClientBehaviors(context, menu);
       
        wb.finish();
    }
   
    @Override
    protected String getSubmitParam(FacesContext context, UISelectMany selectMany) {
        return selectMany.getClientId(context);
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.