Package de.xima.fc.form.common.condition
Class XItemConditionProcessor
- java.lang.Object
 - 
- de.xima.fc.form.common.condition.XItemConditionProcessor
 
 
- 
public class XItemConditionProcessor extends Object
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 methodsisItemReadOnly(XItem)andisItemRenderable(XItem)take into account the item and all its parents.Note: you must not call
isItemReadOnly(XItem)andisItemRenderable(XItem)with any item that is not included in the form passed to the constructor.- Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Constructor Summary
Constructors Constructor Description XItemConditionProcessor()Creates a new item conditions processor without any conditions.XItemConditionProcessor(IXForm form, XItemConditionsWrapper conditionsWrapper) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanisItemReadOnly(XItem item)Deprecated.booleanisItemReadOnly(IXItemPropertiesData item)booleanisItemRenderable(XItem item)Deprecated.booleanisItemRenderable(IXItemPropertiesData item) 
 - 
 
- 
- 
Constructor Detail
- 
XItemConditionProcessor
public XItemConditionProcessor()
Creates a new item conditions processor without any conditions. 
- 
XItemConditionProcessor
public XItemConditionProcessor(IXForm form, XItemConditionsWrapper conditionsWrapper)
- Parameters:
 form- The form with all items.conditionsWrapper- Conditions indicating whether the items are read-only / not rendered.
 
 - 
 
- 
Method Detail
- 
isItemReadOnly
public boolean isItemReadOnly(IXItemPropertiesData item)
- Parameters:
 item- The item to check.- Returns:
 truewhen the given item is set to read-only (cannot be edited), orfalseotherwise.
 
- 
isItemReadOnly
@Deprecated public boolean isItemReadOnly(XItem item)
Deprecated.- Parameters:
 item- The item to check.- Returns:
 truewhen the given item is set to read-only (cannot be edited), orfalseotherwise.
 
- 
isItemRenderable
public boolean isItemRenderable(IXItemPropertiesData item)
- Parameters:
 item- The item to check.- Returns:
 truewhen the given item is allowed to be rendered, orfalseotherwise.
 
- 
isItemRenderable
@Deprecated public boolean isItemRenderable(XItem item)
Deprecated.- Parameters:
 item- The item to check.- Returns:
 truewhen the given item is allowed to be rendered, orfalseotherwise.
 
 - 
 
 -