|
||||||||||
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.Condition
A Condition in a report instance. This contains the chosen operator and the value or values of the condition.
Nested Class Summary | |
protected class |
Condition.ValueEntry
|
Field Summary | |
protected static java.lang.String |
CONDITION_EL
|
protected ConditionDefinition |
definition
|
protected static java.lang.String |
NAME_ATTR
|
protected boolean |
noValue
boolean to check whether the user has selected this condition. |
protected Operator |
operator
|
protected static java.lang.String |
OPERATOR_EL
|
protected static java.lang.String |
REQUIRED_ATTR
|
protected static java.lang.String |
SELECTED_ATTR
|
protected static java.lang.String |
VALID_ATTR
|
protected static java.lang.String |
VALID_MSG_ATTR
|
protected static java.lang.String |
VALUE_EL
|
protected java.util.List |
values
|
protected static java.lang.String |
VALUES_EL
|
Constructor Summary | |
Condition(ConditionDefinition conditionDefinition)
|
Method Summary | |
int |
bind(java.sql.PreparedStatement statement,
int start,
ExecutionContext reportContext)
|
protected Condition.ValueEntry |
createRequiredValueEntry(ExecutionContext executionContext)
|
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. |
int |
getArgumentCount()
|
DataType |
getDataType()
|
java.lang.String[] |
getFormattedValues(ResourceHandle resourceHandle)
Returns the string representation of the values of this condition. |
java.lang.String |
getName()
|
Operator |
getOperator()
|
boolean |
hasValue()
|
boolean |
isRequired()
|
boolean |
isValid()
|
void |
readStoredEntry(UserEntryStore userEntryStore,
User user,
ResourceHandle resourceHandle)
Allows an inputfield to initialize itself using a previously stored value. |
void |
reset()
|
protected void |
store(ReportState reportState,
java.lang.String key,
java.lang.String value)
|
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 ConditionDefinition definition
protected java.util.List values
protected Operator operator
protected boolean noValue
protected static final java.lang.String CONDITION_EL
protected static final java.lang.String VALUES_EL
protected static final java.lang.String VALUE_EL
protected static final java.lang.String NAME_ATTR
protected static final java.lang.String VALID_ATTR
protected static final java.lang.String VALID_MSG_ATTR
protected static final java.lang.String OPERATOR_EL
protected static final java.lang.String SELECTED_ATTR
protected static final java.lang.String REQUIRED_ATTR
Constructor Detail |
public Condition(ConditionDefinition conditionDefinition)
Method Detail |
public java.lang.String getName()
getName
in class InputField
public boolean isRequired()
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
protected Condition.ValueEntry createRequiredValueEntry(ExecutionContext executionContext)
public boolean isValid()
isValid
in class InputField
public boolean hasValue()
hasValue
in class InputField
public DataType getDataType()
getDataType
in class InputField
public Operator getOperator()
public int getArgumentCount()
public int bind(java.sql.PreparedStatement statement, int start, ExecutionContext reportContext) throws java.sql.SQLException
java.sql.SQLException
public void reset()
reset
in class InputField
public java.lang.String[] getFormattedValues(ResourceHandle resourceHandle)
This method should only be called on a successfully validated condition!
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
protected void store(ReportState reportState, java.lang.String key, java.lang.String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |