|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.agilecoders.wicket.jquery.function.AbstractFunction
public abstract class AbstractFunction
A simple implementation of IFunction that allows you to chain
function parameters in a javascript safe way.
| Constructor Summary | |
|---|---|
protected |
AbstractFunction(CharSequence functionName)
Construct. |
protected |
AbstractFunction(CharSequence functionName,
List<CharSequence> parameters)
Construct. |
| Method Summary | |
|---|---|
protected void |
addParameter(CharSequence parameter)
adds a new parameter to parameter list |
String |
build()
|
protected String |
buildParameters()
|
List<CharSequence> |
getParameters()
|
protected char |
getSeparator()
|
protected CharSequence |
toParameterValue(Boolean value)
transform given value to a javascript parameter value |
protected CharSequence |
toParameterValue(Float value)
transform given value to a javascript parameter value |
protected CharSequence |
toParameterValue(Integer value)
transform given value to a javascript parameter value |
protected CharSequence |
toParameterValue(JavaScriptInlineFunction value)
transform given value to a javascript parameter value |
protected CharSequence |
toParameterValue(Long value)
transform given value to a javascript parameter value |
protected CharSequence |
toParameterValue(Object value)
transform given value to a javascript parameter value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractFunction(CharSequence functionName)
functionName - The function name of this IFunction implementation
protected AbstractFunction(CharSequence functionName,
List<CharSequence> parameters)
functionName - The function name of this IFunction implementation| Method Detail |
|---|
public String build()
build in interface IFunctionprotected final char getSeparator()
protected String buildParameters()
protected void addParameter(CharSequence parameter)
parameter - The parameter to addprotected CharSequence toParameterValue(Object value)
value - The value to transform
protected CharSequence toParameterValue(JavaScriptInlineFunction value)
value - The value to transform
protected CharSequence toParameterValue(Long value)
value - The value to transform
protected CharSequence toParameterValue(Integer value)
value - The value to transform
protected CharSequence toParameterValue(Float value)
value - The value to transform
protected CharSequence toParameterValue(Boolean value)
value - The value to transform
public List<CharSequence> getParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||