|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FilterConditionInterface
This defines an interface describing the conditional operator and how many arguments it takes. The label is displayed on the dialog but the actual getCondition() object is stored in the FilterLogic result.
Method Summary | |
---|---|
java.lang.String |
format(java.lang.String item,
java.util.List values)
Formats the current conditional into a user readable message |
java.lang.Object |
getCondition()
This object is defined by the adaptor implementor and will be returned as part of the completed filter data |
int |
getConditionArgumentCount()
Returns the number of allowed arguments for this Condition |
java.lang.String |
getConditionArgumentLabel(int argument)
Returns a label to display to the user for a specific argument. |
java.lang.String[] |
getConditionArgumentLabels()
Returns an array of the labels to display to the user. |
java.lang.String |
getConditionLabel()
The plain text label that will be shown to the user. |
java.lang.String |
getConditionLabel(java.util.Locale locale)
The plain text label that will be shown to the user. |
java.lang.String |
getConditionMessageFormat()
Returns a string usable by java.text.MessageFormat.format(...) to display this condition in a end user understandable message. |
boolean |
isConditionObjectNegated()
Should the normal meaning of the condition object be negated when evaluated |
boolean |
isExpressionValueAllowed()
Returns TRUE if users are allowed to edit value expressions, false otherwise. |
boolean |
isPromptValueAllowed()
Returns TRUE if users are allowed to create a prompt value, false otherwise. |
boolean |
isUserValueAllowed()
Returns TRUE if users are allowed to type in their own values, false otherwise. |
boolean |
isValueListAllowed()
Returns TRUE if users are allowed to select values from a list (if available), false otherwise. |
void |
setConditionMessageFormat(java.lang.String messageFormat)
Set the java.text.MessageFormat to use for generating a end usable message. |
void |
setLocale(java.util.Locale locale)
|
Method Detail |
---|
java.lang.Object getCondition()
java.lang.String getConditionLabel()
java.lang.String getConditionLabel(java.util.Locale locale)
locale
-
int getConditionArgumentCount()
java.lang.String[] getConditionArgumentLabels()
java.lang.String getConditionArgumentLabel(int argument)
index
- (1 based)
java.lang.String getConditionMessageFormat()
void setConditionMessageFormat(java.lang.String messageFormat)
String
- messageFormat (based on java.text.MessageFormat formatting)java.lang.String format(java.lang.String item, java.util.List values)
String
- Itemjava.util.List
- Values
boolean isConditionObjectNegated()
boolean isUserValueAllowed()
boolean isValueListAllowed()
boolean isExpressionValueAllowed()
boolean isPromptValueAllowed()
void setLocale(java.util.Locale locale)
locale
-
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |