|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.makumba.list.ListFormDataProvider
public class ListFormDataProvider
Native implementation of the FormDataProvider by the list. We pass on an AnalysableTag to all our methods in order to provide context to the method, so it knows what kind of data to compute. In addition we also pass some other parameters useful for data computation.
Constructor Summary | |
---|---|
ListFormDataProvider()
|
Method Summary | |
---|---|
String |
computeBasePointer(MultipleKey tagKey,
PageContext pageContext)
|
DataDefinition |
getBasePointerType(AnalysableTag tag,
PageCache pageCache,
String baseObject)
Gives the type corresponding to the base object of a tag, based on its name |
FieldDefinition |
getInputTypeAtAnalysis(AnalysableTag tag,
DataDefinition dd,
String fieldName,
PageCache pageCache)
Gets the type of an input tag |
static ListFormDataProvider |
getInstance()
|
MultipleKey |
getParentListKey(AnalysableTag tag)
|
FieldDefinition |
getTypeOnEndAnalyze(MultipleKey tagKey,
PageCache pageCache)
Computes the type of the field based on the information collected at analysis. |
Object |
getValue(MultipleKey tagKey,
PageContext pageContext,
PageCache pageCache)
Returns the value of the currently running tag, for Input and Option tags. |
FieldDefinition |
onBasicValueEndAnalyze(MultipleKey tagKey,
PageCache pageCache)
Computes data at the end of BasicValueTag analysis (InputTag, OptionTag) |
void |
onBasicValueStartAnalyze(AnalysableTag tag,
boolean isNull,
MultipleKey parentFormKey,
PageCache pageCache,
String ptrExpr)
Computes data at the beginning of BasicValueTag analysis (InputTag, OptionTag) |
void |
onFormEndAnalyze(MultipleKey tagKey,
PageCache pageCache)
Computes data at the end of form analysis. |
void |
onFormEndTag(MultipleKey tagKey,
PageCache pageCache,
PageContext pageContext)
|
void |
onFormStartAnalyze(AnalysableTag tag,
PageCache pageCache,
String ptrExpr)
Computes data at the beginning of form analysis. |
void |
onFormStartTag(MultipleKey tagKey,
PageCache pageCache,
PageContext pageContext)
Computes data at the beginning of form runtime. |
void |
onNonQueryStartAnalyze(AnalysableTag tag,
boolean isNull,
MultipleKey parentFormKey,
PageCache pageCache,
String expr)
Computes data for analysis start in case of tags which aren't wrapped in a query context (of the kind mak:list). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListFormDataProvider()
Method Detail |
---|
public void onFormStartAnalyze(AnalysableTag tag, PageCache pageCache, String ptrExpr)
FormDataProvider
onFormStartAnalyze
in interface FormDataProvider
tag
- the AnalysableTag for whom we do thispageCache
- the pageCache of the current pageptrExpr
- the base pointer expressionpublic void onBasicValueStartAnalyze(AnalysableTag tag, boolean isNull, MultipleKey parentFormKey, PageCache pageCache, String ptrExpr)
FormDataProvider
onBasicValueStartAnalyze
in interface FormDataProvider
tag
- the AnalysableTag for whom we do thispageCache
- the pageCache of the current pageptrExpr
- the expression of the base pointerpublic void onNonQueryStartAnalyze(AnalysableTag tag, boolean isNull, MultipleKey parentFormKey, PageCache pageCache, String expr)
FormDataProvider
onNonQueryStartAnalyze
in interface FormDataProvider
public void onFormEndAnalyze(MultipleKey tagKey, PageCache pageCache)
FormDataProvider
onFormEndAnalyze
in interface FormDataProvider
pageCache
- the pageCache of the current pagepublic FieldDefinition onBasicValueEndAnalyze(MultipleKey tagKey, PageCache pageCache)
FormDataProvider
onBasicValueEndAnalyze
in interface FormDataProvider
pageCache
- the pageCache of the current page
FieldDefinition
corresponding to the object the tag is based onpublic void onFormStartTag(MultipleKey tagKey, PageCache pageCache, PageContext pageContext) throws LogicException
FormDataProvider
onFormStartTag
in interface FormDataProvider
pageCache
- the pageCache of the current pagepageContext
- the pageContext in which the form is
LogicException
public void onFormEndTag(MultipleKey tagKey, PageCache pageCache, PageContext pageContext)
onFormEndTag
in interface FormDataProvider
public FieldDefinition getTypeOnEndAnalyze(MultipleKey tagKey, PageCache pageCache)
FormDataProvider
getTypeOnEndAnalyze
in interface FormDataProvider
pageCache
- the pageCache of the current page
FieldDefinition
indicating the type of what we are interested inpublic DataDefinition getBasePointerType(AnalysableTag tag, PageCache pageCache, String baseObject)
FormDataProvider
getBasePointerType
in interface FormDataProvider
tag
- the tag for which we need to discover the tagpageCache
- the page cache of the current pagebaseObject
- the label of the object we want to discover
DataDefinition
corresponding to the type of the objectpublic String computeBasePointer(MultipleKey tagKey, PageContext pageContext) throws LogicException
computeBasePointer
in interface FormDataProvider
LogicException
public Object getValue(MultipleKey tagKey, PageContext pageContext, PageCache pageCache) throws LogicException
FormDataProvider
getValue
in interface FormDataProvider
pageCache
- the pageCache of the current page
LogicException
public FieldDefinition getInputTypeAtAnalysis(AnalysableTag tag, DataDefinition dd, String fieldName, PageCache pageCache)
FormDataProvider
getInputTypeAtAnalysis
in interface FormDataProvider
tag
- TODOfieldName
- the name of the field of which the type should be returnedpageCache
- the page cache of the current page
public MultipleKey getParentListKey(AnalysableTag tag)
getParentListKey
in interface FormDataProvider
public static ListFormDataProvider getInstance()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |