Package org.primefaces.util

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


        wb.attr("block", SearchExpressionFacade.resolveComponentsForClient(context, blockUI, blockUI.getBlock()));
        wb.attr("triggers", SearchExpressionFacade.resolveComponentsForClient(context, blockUI, blockUI.getTrigger()), null);
        wb.attr("blocked", blockUI.isBlocked(), false);
        wb.attr("animate", blockUI.isAnimate(), true);
       
        wb.finish();
    }
   
    protected void encodeMarkup(FacesContext context, UIComponent component) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        BlockUI blockUI = (BlockUI) component;
View Full Code Here


        wb.initWithDomReady("Spotlight", spotlight.resolveWidgetVar(), clientId);
       
        wb.attr("target", SearchExpressionFacade.resolveComponentsForClient(context, spotlight, spotlight.getTarget()));
        wb.attr("animate", spotlight.isAnimate(), true);
       
        wb.finish();
    }
}
View Full Code Here

            wb.attr("emptyMessage", emptyMessage, null);
        }
       
        encodeClientBehaviors(context, ac);

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

    protected void encodeScript(FacesContext context, AbstractMenu abstractMenu) throws IOException {
        TabMenu menu = (TabMenu) abstractMenu;
    String clientId = menu.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.init("TabMenu", menu.resolveWidgetVar(), clientId).attr("activeIndex", menu.getActiveIndex());
        wb.finish();
    }
   
    @Override
    protected String getLinkStyleClass(MenuItem menuitem) {
        String icon = menuitem.getIcon();
View Full Code Here

            wb.attr("showOtherMonths", true).attr("selectOtherMonths", true);
        }
               
        encodeClientBehaviors(context, calendar);
       
        wb.finish();
    }
}
View Full Code Here

        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("DataList", list.resolveWidgetVar(), clientId);
       
        encodeClientBehaviors(context, list);

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

    protected void encodeScript(FacesContext context, Password password) throws IOException {
    String clientId = password.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Password", password.resolveWidgetVar(), clientId);

        wb.finish();
  }
   
    protected void encodeInput(FacesContext context, Password password, String clientId) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        String valueToRender = ComponentUtils.getValueToRender(context, password);
View Full Code Here

           
            String selector = ComponentUtils.escapeJQueryId(db.getClientId(context)) + " .ui-dashboard-column";
            wb.attr("connectToSortable", selector);
        }

        wb.finish();
    }

}
View Full Code Here

            .attr("effectDuration", tabView.getEffectDuration(), null)
            .attr("scrollable", tabView.isScrollable());
       
        encodeClientBehaviors(context, tabView);

        wb.finish();
    }

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

        if(AgentUtils.isIE(context)) {
            Resource resource = context.getApplication().getResourceHandler().createResource("editor/editor-ie.css", "primefaces");
            wb.attr("docCSSFile", resource.getRequestPath());
        }

        wb.finish();
  }
   
    @Override
  public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException {
    Editor editor = (Editor) component;
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.