Package org.primefaces.util

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


    @Override
    protected void encodeScript(FacesContext context, SelectOneMenu menu) throws IOException {
        String clientId = menu.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.init("SelectOneMenu", menu.resolveWidgetVar(), clientId);              
        wb.finish();
    }
}
View Full Code Here


                .attr("maxWidth", dock.getMaxWidth())
                .attr("itemWidth", dock.getItemWidth())
                .attr("proximity", dock.getProximity())
                .attr("halign", dock.getHalign());

        wb.finish();
  }

    @Override
  protected void encodeMarkup(FacesContext context, AbstractMenu menu) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
View Full Code Here

    protected void encodeScript(FacesContext context, OrderList ol) throws IOException {
    String clientId = ol.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.init("OrderList", ol.resolveWidgetVar(), clientId)
            .attr("effect", ol.getEffect(), null);
        wb.finish();
    }
   
    @Override
  @SuppressWarnings("unchecked")
  public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException {
View Full Code Here

                .attr("showCaption", galleria.isShowCaption(), false)
                .attr("panelWidth", galleria.getPanelWidth(), Integer.MIN_VALUE)
                .attr("panelHeight", galleria.getPanelHeight(), Integer.MIN_VALUE)
                .attr("custom", (galleria.getFacet("content") != null));

        wb.finish();
    }

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

                .attr("itemtipAtPosition", ac.getItemtipAtPosition(), null);
        }
       
        encodeClientBehaviors(context, ac);

        wb.finish();
    }
   
    @Override
  public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException {       
        if(submittedValue == null || submittedValue.equals("")) {
View Full Code Here

        wb.initWithDomReady("Stack", stack.resolveWidgetVar(), clientId, "stack")
            .attr("openSpeed", stack.getOpenSpeed())
            .attr("closeSpeed", stack.getCloseSpeed())
            .attr("expanded", stack.isExpanded(), false);

        wb.finish();
  }
 
  protected void encodeMarkup(FacesContext context, AbstractMenu menu) throws IOException {
    ResponseWriter writer = context.getResponseWriter();
        Stack stack = (Stack) menu;
View Full Code Here

            .attr("source", source)
            .attr("event", event)
            .attr("delay", delay)
            .callback("fn", "function()", animation);
       
        wb.finish();
  }
 
  private EffectBuilder getEffectBuilder(Effect effect, String effectedComponentClientId) {
    EffectBuilder effectBuilder = new EffectBuilder(effect.getType(), effectedComponentClientId);
   
View Full Code Here

            .attr("readonly", rating.isReadonly(), false)
            .attr("disabled", rating.isDisabled(), false);
       
        encodeClientBehaviors(context, rating);

        wb.finish();
    }

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

   
    protected void encodeScript(FacesContext context, Log log) throws IOException {
        String clientId = log.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Log", log.resolveWidgetVar(), clientId);
        wb.finish();
    }
}
View Full Code Here

          wb.attr("focus", focusExpressions);
        }

        encodeClientBehaviors(context, dialog);
        
        wb.finish();
    }

    protected void encodeMarkup(FacesContext context, Dialog dialog) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String clientId = dialog.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.