@GwtCompatible public final class TypedValueFacet extends Facet<TypedValue>
This class holds the metadata for a facet and its options. For example, a Car record could have a Color facet with the options Black, White, Silver.
Modifier and Type | Class and Description |
---|---|
static class |
TypedValueFacet.TypedValueFacetBuilder
A builder that will construct a TypedValueFacet with the correct parameters
|
DEFAULT_OPTION, LOCAL_PART, QNAME, VISIBLE_BY_DEFAULT, XML_ROOT_ELEMENT
Constructor and Description |
---|
TypedValueFacet(java.lang.Long id,
java.lang.String name,
boolean isVisible,
java.lang.String defaultOption,
java.util.List<FacetOption<TypedValue>> options,
int numOmittedOptions,
int omittedOptionsDataCount,
boolean isExclusiveOptions,
boolean allowMultipleSelections,
java.lang.String facetType,
java.lang.Object facetData,
java.lang.String sourceRef) |
TypedValueFacet(java.lang.String name,
boolean isVisible,
java.lang.String defaultOption,
java.util.List<FacetOption<TypedValue>> options,
int numOmittedOptions,
int omittedOptionsDataCount,
boolean isExclusiveOptions)
Constructs a new selection/dropdown facet.
|
TypedValueFacet(java.lang.String name,
boolean isVisible,
java.lang.String defaultOption,
java.util.List<FacetOption<TypedValue>> options,
int numOmittedOptions,
int omittedOptionsDataCount,
boolean isExclusiveOptions,
boolean allowMultipleSelections,
java.lang.String facetType,
java.lang.Object facetData,
java.lang.String sourceRef) |
TypedValueFacet(java.lang.String name,
boolean isVisible,
java.lang.String facetType,
java.lang.Object facetData,
java.lang.String sourceRef)
Constructs a new date range facet (Assuming the DATE_RANGE "facetType" is passed in)
|
TypedValueFacet(com.appiancorp.type.cdt.UserDtoFacetOptionGroup dtoFacet) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowMultipleSelections() |
java.lang.Object |
getFacetData() |
java.lang.Long |
getId() |
java.util.List<FacetOption<TypedValue>> |
getOptions() |
protected void |
setAllowMultipleSelections(boolean allowMultipleSelections) |
protected void |
setFacetData(java.lang.Object facetData) |
protected void |
setOptions(java.util.List<FacetOption<TypedValue>> options)
Sets the options for this facet.
|
equalDataCheck, equals, findOptionById, findOptionById, findOptionByIdReadOnly, findOptionByIdReadOnly, getAppliedOptions, getDefaultOption, getFacetType, getName, getNumOmittedOptions, getOmittedOptionsDataCount, getOptionsReadOnly, getSourceRef, getTotalNumOptions, hashCode, isExclusiveOptions, isVisible, multilineToString, setAppliedOptions, setAppliedOptions, toString
public TypedValueFacet(java.lang.String name, boolean isVisible, java.lang.String defaultOption, java.util.List<FacetOption<TypedValue>> options, int numOmittedOptions, int omittedOptionsDataCount, boolean isExclusiveOptions)
name
- The name of the facet.options
- The list of options for this facet.defaultOption
- The label name of the option to be appliedisVisible
- is the facet visible at run time to the user.numOmittedOptions
- The number of additional options that are available, but are not included
in the provided list of options.omittedOptionsDataCount
- The number of objects that contain data matched by the omitted options.
This allows the UI to present the generic option "Other" along with a count.isExclusiveOptions
- Whether this facet's options are exclusive or not. See
Facet.isExclusiveOptions()
.public TypedValueFacet(java.lang.String name, boolean isVisible, java.lang.String facetType, java.lang.Object facetData, java.lang.String sourceRef)
name
- The name of the facetisVisible
- is the facet visible at run timefacetType
- from FieldCfg$FacetType enum (Right now we only know how to process DATE_RANGE)facetData
- data fields specific to this type of facetsourceRef
- name of the field (record list is bring filtered on)public TypedValueFacet(java.lang.String name, boolean isVisible, java.lang.String defaultOption, java.util.List<FacetOption<TypedValue>> options, int numOmittedOptions, int omittedOptionsDataCount, boolean isExclusiveOptions, boolean allowMultipleSelections, java.lang.String facetType, java.lang.Object facetData, java.lang.String sourceRef)
public TypedValueFacet(java.lang.Long id, java.lang.String name, boolean isVisible, java.lang.String defaultOption, java.util.List<FacetOption<TypedValue>> options, int numOmittedOptions, int omittedOptionsDataCount, boolean isExclusiveOptions, boolean allowMultipleSelections, java.lang.String facetType, java.lang.Object facetData, java.lang.String sourceRef)
public TypedValueFacet(com.appiancorp.type.cdt.UserDtoFacetOptionGroup dtoFacet)
public java.lang.Long getId()
public java.util.List<FacetOption<TypedValue>> getOptions()
getOptions
in class Facet<TypedValue>
protected void setOptions(java.util.List<FacetOption<TypedValue>> options)
Facet
setOptions
in class Facet<TypedValue>
options
- the list of optionspublic java.lang.Object getFacetData()
protected void setFacetData(java.lang.Object facetData)
public boolean getAllowMultipleSelections()
protected void setAllowMultipleSelections(boolean allowMultipleSelections)
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.