Package de.xima.fc.form.common.condition
Class XItemConditionProcessor
java.lang.Object
de.xima.fc.form.common.condition.XItemConditionProcessor
Wrapper to check evaluate the render and read-only conditions of items. Note that when a parent is read-only / not
rendered, all children are also read-only / not rendered. This is taken care of by this class, the methods
isItemReadOnly(XItem) and isItemRenderable(XItem) take into account the item and all its parents.
Note: you must not call isItemReadOnly(XItem) and isItemRenderable(XItem) with any item that is
not included in the form passed to the constructor.
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new item conditions processor without any conditions.XItemConditionProcessor(IXForm form, XItemConditionsWrapper conditionsWrapper) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisItemReadOnly(XItem item) Deprecated.booleanbooleanisItemRenderable(XItem item) Deprecated.boolean
-
Constructor Details
-
XItemConditionProcessor
public XItemConditionProcessor()Creates a new item conditions processor without any conditions. -
XItemConditionProcessor
- Parameters:
form- The form with all items.conditionsWrapper- Conditions indicating whether the items are read-only / not rendered.
-
-
Method Details
-
isItemReadOnly
- Parameters:
item- The item to check.- Returns:
truewhen the given item is set to read-only (cannot be edited), orfalseotherwise.
-
isItemReadOnly
Deprecated.- Parameters:
item- The item to check.- Returns:
truewhen the given item is set to read-only (cannot be edited), orfalseotherwise.
-
isItemRenderable
- Parameters:
item- The item to check.- Returns:
truewhen the given item is allowed to be rendered, orfalseotherwise.
-
isItemRenderable
Deprecated.- Parameters:
item- The item to check.- Returns:
truewhen the given item is allowed to be rendered, orfalseotherwise.
-
isItemReadOnly(IXItemPropertiesData).