Package org.dashbuilder.displayer
Class DisplayerConstraints
- java.lang.Object
-
- org.dashbuilder.displayer.DisplayerConstraints
-
public class DisplayerConstraints extends Object
Every Displayer implementation use this class to specify what are the supported DisplayerSettings attributes as well as the supported data sets in order to fit the displayer needs.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.dashbuilder.dataset.DataSetLookupConstraintsdataSetLookupConstraintsstatic intERROR_DATASET_LOOKUP_CONSTRAINTS_NOT_FOUNDprotected Set<DisplayerAttributeDef>excludedEditorAttributesprotected Set<DisplayerAttributeDef>supportedEditorAttributesprotected Set<String>supportedEditorAttrStringsprotected booleansupportingComponentAttributes
-
Constructor Summary
Constructors Constructor Description DisplayerConstraints(org.dashbuilder.dataset.DataSetLookupConstraints dataSetLookupConstraints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dashbuilder.dataset.ValidationErrorcheck(DisplayerSettings settings)protected org.dashbuilder.dataset.ValidationErrorcreateValidationError(int error)DisplayerConstraintsexcludeAttribute(DisplayerAttributeDef attributeDef)org.dashbuilder.dataset.DataSetLookupConstraintsgetDataSetLookupConstraints()Set<DisplayerAttributeDef>getSupportedAttributes()voidremoveUnsupportedAttributes(DisplayerSettings displayerSettings)DisplayerConstraintssetDataSetLookupConstraints(org.dashbuilder.dataset.DataSetLookupConstraints dataSetLookupConstraints)DisplayerConstraintssupportingComponentAttributes(boolean supportingComponentAttributes)DisplayerConstraintssupportsAttribute(DisplayerAttributeDef attributeDef)
-
-
-
Field Detail
-
dataSetLookupConstraints
protected org.dashbuilder.dataset.DataSetLookupConstraints dataSetLookupConstraints
-
supportedEditorAttributes
protected Set<DisplayerAttributeDef> supportedEditorAttributes
-
excludedEditorAttributes
protected Set<DisplayerAttributeDef> excludedEditorAttributes
-
supportingComponentAttributes
protected boolean supportingComponentAttributes
-
ERROR_DATASET_LOOKUP_CONSTRAINTS_NOT_FOUND
public static final int ERROR_DATASET_LOOKUP_CONSTRAINTS_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
supportingComponentAttributes
public DisplayerConstraints supportingComponentAttributes(boolean supportingComponentAttributes)
-
supportsAttribute
public DisplayerConstraints supportsAttribute(DisplayerAttributeDef attributeDef)
-
excludeAttribute
public DisplayerConstraints excludeAttribute(DisplayerAttributeDef attributeDef)
-
getSupportedAttributes
public Set<DisplayerAttributeDef> getSupportedAttributes()
-
getDataSetLookupConstraints
public org.dashbuilder.dataset.DataSetLookupConstraints getDataSetLookupConstraints()
-
setDataSetLookupConstraints
public DisplayerConstraints setDataSetLookupConstraints(org.dashbuilder.dataset.DataSetLookupConstraints dataSetLookupConstraints)
-
removeUnsupportedAttributes
public void removeUnsupportedAttributes(DisplayerSettings displayerSettings)
-
check
public org.dashbuilder.dataset.ValidationError check(DisplayerSettings settings)
-
createValidationError
protected org.dashbuilder.dataset.ValidationError createValidationError(int error)
-
-