Module is.codion.framework.model
Package is.codion.framework.model
Interface ForeignKeyConditionModel.Builder
- Enclosing interface:
ForeignKeyConditionModel
public static interface ForeignKeyConditionModel.Builder
A builder for a
ForeignKeyConditionModel.
The EQUAL and IN operands are each based on either a EntitySearchModel or a EntityComboBoxModel, not both.-
Method Summary
Modifier and TypeMethodDescriptionbuild()equalComboBoxModel(EntityComboBoxModel equalComboBoxModel) Note that the selection of this combo box model is not the EQUAL operand, a component based on it must be linked toConditionModel.Operands.equal().equalSearchModel(EntitySearchModel equalSearchModel) Note that the selection of this search model is not the EQUAL operand, a component based on it must be linked toConditionModel.Operands.equal().inComboBoxModel(EntityComboBoxModel inComboBoxModel) Note that the selection of this combo box model is not the IN operand, a component based on it must be linked toConditionModel.Operands.in().inSearchModel(EntitySearchModel inSearchModel) Note that the selection of this search model is not the IN operand, a component based on it must be linked toConditionModel.Operands.in().Sets the initial operator, the oneAttributeConditionModel.clear()reverts to.
-
Method Details
-
equalSearchModel
Note that the selection of this search model is not the EQUAL operand, a component based on it must be linked toConditionModel.Operands.equal().- Parameters:
equalSearchModel- the search model to base the EQUAL operand component on- Returns:
- this builder
-
equalComboBoxModel
Note that the selection of this combo box model is not the EQUAL operand, a component based on it must be linked toConditionModel.Operands.equal().- Parameters:
equalComboBoxModel- the combo box model to base the EQUAL operand component on- Returns:
- this builder
-
inSearchModel
Note that the selection of this search model is not the IN operand, a component based on it must be linked toConditionModel.Operands.in().- Parameters:
inSearchModel- the search model to base the IN operand component on- Returns:
- this builder
-
inComboBoxModel
Note that the selection of this combo box model is not the IN operand, a component based on it must be linked toConditionModel.Operands.in().- Parameters:
inComboBoxModel- the combo box model to base the IN operand component on- Returns:
- this builder
-
operator
Sets the initial operator, the oneAttributeConditionModel.clear()reverts to. Defaults to the first of the availableAttributeConditionModel.operators(),Operator.EQUALwhen an EQUAL operand is available, otherwiseOperator.IN.- Parameters:
operator- the initial operator, must be one of the available operators- Returns:
- this builder
-
caption
- Parameters:
caption- the caption to associate with the condition model, the foreign key caption for example- Returns:
- this builder
- See Also:
-
build
ForeignKeyConditionModel build()- Returns:
- a new
ForeignKeyConditionModelinstance
-