Class FieldCondition
java.lang.Object
com.inet.taskplanner.server.api.field.FieldCondition
- Direct Known Subclasses:
DisableCondition,VisibleCondition
Defines a condition for a field, e.g. visibility according to the value of another field
- Since:
- taskplanner 3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe operation on the values to be appliedstatic enumThe type of a field condition -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates the field condition for the specified type -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldConditiondisabled(Field field, FieldCondition.OP operation, String value) Creates a disabled field condition.protected FieldCondition.TYPEgetType()Returns the type of the condition like e.g.protected voidsetType(FieldCondition.TYPE type) Sets the type of the condition like e.g.static FieldConditionvisible(Field field, FieldCondition.OP operation, String value) Creates a visible field condition.
-
Constructor Details
-
FieldCondition
Creates the field condition for the specified type- Parameters:
type- the type of the condition- Since:
- taskplanner 3.0
-
-
Method Details
-
getType
Returns the type of the condition like e.g. FieldType.visible- Returns:
- the type of the condition
- Since:
- taskplanner 3.0
-
setType
Sets the type of the condition like e.g. FieldType.visible- Parameters:
type- the type of the condition- Since:
- taskplanner 3.0
-
visible
Creates a visible field condition. If the condition is fulfilled, the field the condition is set to, will be visible.- Parameters:
field- the field the value is checked fromoperation- the operation to be appliedvalue- the value the field must have set- Returns:
- the created field condition
- Since:
- taskplanner 3.0
-
disabled
Creates a disabled field condition. If the condition is fulfilled, the field the condition is set to, will be disabled.- Parameters:
field- the field the value is checked fromoperation- the operation to be appliedvalue- the value the field must have set- Returns:
- the created field condition
- Since:
- taskplanner 3.0
-