Package de.xima.fc.gui.common.bean
Class ABooleanExpressionBean
- java.lang.Object
-
- de.xima.fc.gui.common.bean.ABooleanExpressionBean
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClientAuthorizationBean
,FcMultipleConditionBean
,FcSwitchCaseBean
public abstract class ABooleanExpressionBean extends Object implements Serializable
Base bean for multiple condition UIs.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected LocaleBean
localeBean
-
Constructor Summary
Constructors Constructor Description ABooleanExpressionBean()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<String>
completeCustomExpression(org.primefaces.extensions.event.CompleteEvent event)
Autocomplete method for the code mirror used to edit the custom boolean infix expression.protected static String
findNewVariableName(Set<String> names)
protected abstract Set<String>
getAllVariables()
List<EMultipleConditionCombinationType>
getOrderedCombinationTypes()
List<EMatchCondition>
getOrderedMatchConditions()
void
lintCustomExpression()
Performs linting for the boolean infix expression the user has entered in the code mirror window.
-
-
-
Field Detail
-
localeBean
@Inject protected LocaleBean localeBean
-
-
Method Detail
-
completeCustomExpression
public List<String> completeCustomExpression(org.primefaces.extensions.event.CompleteEvent event)
Autocomplete method for the code mirror used to edit the custom boolean infix expression.- Parameters:
event
- Autocomplete event triggered by theCodeMirror
widget.- Returns:
- All suggestions, including variable names, operators, and constants.
-
getOrderedCombinationTypes
public List<EMultipleConditionCombinationType> getOrderedCombinationTypes()
- Returns:
- All available combination types, in the order they are to be shown in the UI.
-
getOrderedMatchConditions
public List<EMatchCondition> getOrderedMatchConditions()
- Returns:
- All available match conditions, in the order they are to be shown in the UI.
-
lintCustomExpression
public void lintCustomExpression()
Performs linting for the boolean infix expression the user has entered in the code mirror window.
-
-