|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.forms.formmodel.algorithms.JavaScript
public class JavaScript
Javascript calculated field algorithm.
JavaScriptBuilder| Constructor Summary | |
|---|---|
JavaScript()
|
|
| Method Summary | |
|---|---|
void |
addTriggerWidget(String widgetname)
|
Object |
calculate(Form form,
Widget parent,
Datatype datatype)
Performs the actual calculation. |
org.mozilla.javascript.Function |
getJsfunction()
|
Iterator |
getTriggerWidgets()
Returns an iterator on trigger widget paths. |
boolean |
isSuitableFor(Datatype dataType)
Checks wether this algorithm is able to return the given datatype. |
void |
setJsfunction(org.mozilla.javascript.Function jsfunction)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaScript()
| Method Detail |
|---|
public Object calculate(Form form,
Widget parent,
Datatype datatype)
CalculatedFieldAlgorithm
calculate in interface CalculatedFieldAlgorithmform - The form.parent - The parent widget of the CalculatedField widget (may be the same as form)datatype - The target datatype.
CalculatedField.public boolean isSuitableFor(Datatype dataType)
CalculatedFieldAlgorithm
isSuitableFor in interface CalculatedFieldAlgorithmdataType - The target datatype.
public org.mozilla.javascript.Function getJsfunction()
public void setJsfunction(org.mozilla.javascript.Function jsfunction)
jsfunction - The jsfunction to set.public void addTriggerWidget(String widgetname)
public Iterator getTriggerWidgets()
CalculatedFieldAlgorithmCalculatedField value must be recalculated.
getTriggerWidgets in interface CalculatedFieldAlgorithmWidgetFinder.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||