public class WidgetBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected PrimeConfiguration |
configuration |
protected javax.faces.context.FacesContext |
context |
protected boolean |
endFunction |
Constructor and Description |
---|
WidgetBuilder(javax.faces.context.FacesContext context,
PrimeConfiguration configuration) |
protected boolean endFunction
protected javax.faces.context.FacesContext context
protected PrimeConfiguration configuration
public WidgetBuilder(javax.faces.context.FacesContext context, PrimeConfiguration configuration)
protected WidgetBuilder init(String widgetClass, String widgetVar, String id, boolean endFunction) throws IOException
widgetClass
- Constructor name of the widgetwidgetVar
- Name of the client side widgetid
- Client id of the componentendFunction
- If the init script is wrapped by a method and if the endFunction parentheses should be rendered.IOException
public WidgetBuilder init(String widgetClass, String widgetVar, String id) throws IOException
IOException
@Deprecated public WidgetBuilder initWithDomReady(String widgetClass, String widgetVar, String id) throws IOException
IOException
public WidgetBuilder initWithWindowLoad(String widgetClass, String widgetVar, String id) throws IOException
IOException
public WidgetBuilder initWithComponentLoad(String widgetClass, String widgetVar, String id, String targetId) throws IOException
IOException
protected void renderScriptBlock(String id) throws IOException
IOException
public WidgetBuilder selectorAttr(String name, String value) throws IOException
attr(java.lang.String, java.lang.String)
should be used
as the users have to escape colons like @(myForm\:myId).name
- value
- IOException
public WidgetBuilder attr(String name, String value) throws IOException
IOException
public WidgetBuilder nativeAttr(String name, String value) throws IOException
IOException
public WidgetBuilder nativeAttr(String name, String value, String defaultValue) throws IOException
IOException
public WidgetBuilder attr(String name, Boolean value) throws IOException
IOException
public WidgetBuilder attr(String name, Number value) throws IOException
IOException
public WidgetBuilder attr(String name, String value, String defaultValue) throws IOException
IOException
public WidgetBuilder attr(String name, double value, double defaultValue) throws IOException
IOException
public WidgetBuilder attr(String name, int value, int defaultValue) throws IOException
IOException
public WidgetBuilder attr(String name, boolean value, boolean defaultValue) throws IOException
IOException
public WidgetBuilder callback(String name, String signature, String callback) throws IOException
IOException
public WidgetBuilder returnCallback(String name, String signature, String callback) throws IOException
IOException
public WidgetBuilder callback(String name, String callback) throws IOException
IOException
public WidgetBuilder append(String str) throws IOException
IOException
public WidgetBuilder append(char chr) throws IOException
IOException
public WidgetBuilder append(Number number) throws IOException
IOException
public void finish() throws IOException
IOException
Copyright © 2019. All rights reserved.