|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.outerj.xreporter.report.instance.InputField
org.outerj.xreporter.report.instance.Parameter
Field Summary | |
protected ParameterDefinition |
definition
|
protected java.lang.String |
enteredValue
|
protected java.lang.String |
validationErrorMsg
|
protected java.lang.Object |
value
|
Constructor Summary | |
Parameter(ParameterDefinition definition)
|
Method Summary | |
int |
bind(java.sql.PreparedStatement statement,
int start,
ExecutionContext reportContext)
|
void |
generateInfoSaxFragment(org.xml.sax.ContentHandler contentHandler,
ExecutionContext executionContext,
ResourceHandle resourceHandle)
Similar to generateSaxFragment, but only contains the state of the inputfield, not other information like the datatype or validation errors. |
void |
generateSaxFragment(org.xml.sax.ContentHandler contentHandler,
ExecutionContext executionContext,
ResourceHandle resourceHandle)
Generates a piece of SAX representing the state and metadata of this inputfield. |
DataType |
getDataType()
|
java.lang.String |
getName()
|
java.lang.Object |
getValue()
|
boolean |
hasValue()
|
boolean |
isValid()
|
void |
readStoredEntry(UserEntryStore userEntryStore,
User user,
ResourceHandle resourceHandle)
Allows an inputfield to initialize itself using a previously stored value. |
void |
reset()
|
void |
storeEntry(UserEntryStore userEntryStore,
User user)
Allows an inputfield to store its value into the user entry store. |
void |
storeState(ReportState reportState)
|
void |
submit(java.util.Map submitValues,
ExecutionContext executionContext)
Same as submit(values, executionContext, false). |
void |
submit(java.util.Map submitValues,
ExecutionContext executionContext,
boolean rawLocale)
Submit (user input) values to this inputField. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ParameterDefinition definition
protected java.lang.Object value
protected java.lang.String enteredValue
protected java.lang.String validationErrorMsg
Constructor Detail |
public Parameter(ParameterDefinition definition)
Method Detail |
public java.lang.String getName()
getName
in class InputField
public void generateSaxFragment(org.xml.sax.ContentHandler contentHandler, ExecutionContext executionContext, ResourceHandle resourceHandle) throws java.lang.Exception
InputField
generateSaxFragment
in class InputField
java.lang.Exception
public void generateInfoSaxFragment(org.xml.sax.ContentHandler contentHandler, ExecutionContext executionContext, ResourceHandle resourceHandle) throws org.xml.sax.SAXException
InputField
The purpose of this method is to include information about the InputFields on the output page. Hence this method should only be called after the containing step has been completed successfully.
generateInfoSaxFragment
in class InputField
org.xml.sax.SAXException
public void submit(java.util.Map submitValues, ExecutionContext executionContext, boolean rawLocale)
InputField
submit
in class InputField
submitValues
- a Map wherein the values are Strings.rawLocale
- ignore the user locale and use the built-in default localepublic void submit(java.util.Map submitValues, ExecutionContext executionContext)
InputField
submit
in class InputField
public boolean isValid()
isValid
in class InputField
public java.lang.Object getValue()
public boolean hasValue()
hasValue
in class InputField
public DataType getDataType()
getDataType
in class InputField
public void reset()
reset
in class InputField
public int bind(java.sql.PreparedStatement statement, int start, ExecutionContext reportContext) throws java.sql.SQLException
java.sql.SQLException
public void readStoredEntry(UserEntryStore userEntryStore, User user, ResourceHandle resourceHandle) throws UserEntryStoreException
InputField
readStoredEntry
in class InputField
UserEntryStoreException
public void storeEntry(UserEntryStore userEntryStore, User user) throws UserEntryStoreException
InputField
storeEntry
in class InputField
UserEntryStoreException
public void storeState(ReportState reportState)
storeState
in class InputField
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |