org.primefaces.util
Class WidgetBuilder
java.lang.Object
org.primefaces.util.WidgetBuilder
public class WidgetBuilder
- extends Object
Helper to generate javascript code of an ajax call
Constructor Summary |
WidgetBuilder(javax.faces.context.FacesContext context)
|
Method Summary |
WidgetBuilder |
append(char chr)
|
WidgetBuilder |
append(Number number)
|
WidgetBuilder |
append(String str)
|
WidgetBuilder |
attr(String name,
boolean value)
|
WidgetBuilder |
attr(String name,
boolean value,
boolean defaultValue)
|
WidgetBuilder |
attr(String name,
double value,
double defaultValue)
|
WidgetBuilder |
attr(String name,
int value,
int defaultValue)
|
WidgetBuilder |
attr(String name,
Number value)
|
WidgetBuilder |
attr(String name,
String value)
|
WidgetBuilder |
attr(String name,
String value,
String defaultValue)
|
WidgetBuilder |
callback(String name,
String callback)
|
WidgetBuilder |
callback(String name,
String signature,
String callback)
|
void |
finish()
|
WidgetBuilder |
init(String widgetClass,
String widgetVar,
String id)
|
WidgetBuilder |
init(String widgetClass,
String widgetVar,
String id,
String resourcePath)
|
WidgetBuilder |
initWithComponentLoad(String widgetClass,
String widgetVar,
String id,
String targetId)
|
WidgetBuilder |
initWithComponentLoad(String widgetClass,
String widgetVar,
String id,
String targetId,
String resourcePath)
|
WidgetBuilder |
initWithDomReady(String widgetClass,
String widgetVar,
String id)
|
WidgetBuilder |
initWithDomReady(String widgetClass,
String widgetVar,
String id,
String resourcePath)
|
WidgetBuilder |
initWithWindowLoad(String widgetClass,
String widgetVar,
String id)
|
WidgetBuilder |
initWithWindowLoad(String widgetClass,
String widgetVar,
String id,
String resourcePath)
|
WidgetBuilder |
nativeAttr(String name,
String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
endFunction
protected boolean endFunction
resourcePath
protected String resourcePath
context
protected javax.faces.context.FacesContext context
WidgetBuilder
public WidgetBuilder(javax.faces.context.FacesContext context)
init
public WidgetBuilder init(String widgetClass,
String widgetVar,
String id)
throws IOException
- Throws:
IOException
init
public WidgetBuilder init(String widgetClass,
String widgetVar,
String id,
String resourcePath)
throws IOException
- Throws:
IOException
initWithDomReady
public WidgetBuilder initWithDomReady(String widgetClass,
String widgetVar,
String id)
throws IOException
- Throws:
IOException
initWithDomReady
public WidgetBuilder initWithDomReady(String widgetClass,
String widgetVar,
String id,
String resourcePath)
throws IOException
- Throws:
IOException
initWithWindowLoad
public WidgetBuilder initWithWindowLoad(String widgetClass,
String widgetVar,
String id)
throws IOException
- Throws:
IOException
initWithWindowLoad
public WidgetBuilder initWithWindowLoad(String widgetClass,
String widgetVar,
String id,
String resourcePath)
throws IOException
- Throws:
IOException
initWithComponentLoad
public WidgetBuilder initWithComponentLoad(String widgetClass,
String widgetVar,
String id,
String targetId)
throws IOException
- Throws:
IOException
initWithComponentLoad
public WidgetBuilder initWithComponentLoad(String widgetClass,
String widgetVar,
String id,
String targetId,
String resourcePath)
throws IOException
- Throws:
IOException
attr
public WidgetBuilder attr(String name,
String value)
throws IOException
- Throws:
IOException
nativeAttr
public WidgetBuilder nativeAttr(String name,
String value)
throws IOException
- Throws:
IOException
attr
public WidgetBuilder attr(String name,
boolean value)
throws IOException
- Throws:
IOException
attr
public WidgetBuilder attr(String name,
Number value)
throws IOException
- Throws:
IOException
attr
public WidgetBuilder attr(String name,
String value,
String defaultValue)
throws IOException
- Throws:
IOException
attr
public WidgetBuilder attr(String name,
double value,
double defaultValue)
throws IOException
- Throws:
IOException
attr
public WidgetBuilder attr(String name,
int value,
int defaultValue)
throws IOException
- Throws:
IOException
attr
public WidgetBuilder attr(String name,
boolean value,
boolean defaultValue)
throws IOException
- Throws:
IOException
callback
public WidgetBuilder callback(String name,
String signature,
String callback)
throws IOException
- Throws:
IOException
callback
public WidgetBuilder callback(String name,
String callback)
throws IOException
- Throws:
IOException
append
public WidgetBuilder append(String str)
throws IOException
- Throws:
IOException
append
public WidgetBuilder append(char chr)
throws IOException
- Throws:
IOException
append
public WidgetBuilder append(Number number)
throws IOException
- Throws:
IOException
finish
public void finish()
throws IOException
- Throws:
IOException
Copyright © 2013. All rights reserved.