Adds a listener to an event type.
When an event of the type pType fires, the callback pListener will be called. This function
returns a unique string id that may be used in removeEventListenerById to allow simple
listener removal.
It is possible to add an object that will be included in the callback to avoid creating too many closures.
The id of the inserted callback (actually an UUID).
Adds a listener to an event type.
When an event of the type pType fires, the callback pListener will be called. This function
returns a unique string id that may be used in removeEventListenerById to allow simple
listener removal.
The id of the inserted callback (actually an UUID).
Creates and adds a new range item into the list of range items of the object.
The newly created filter range item.
Gets rid of this object.
After this call, this object can no longer be used.
If the object is an InfiniteObjectDispatcherInterface, then the ObjectDisposed signal is emitted.
Further uses of the object (with the exception of isDisposed and getInfiniteObjectType) will log a message with LL_UsingDisposedObject.
Gets the operator to apply with this FilterItemInterface and its closest enabled predecessor in its parent container.
The FilterItemInterface operator of the first enabled FilterItemInterface in a parent list (FilterSolverInterface, FilterSetInterface, FilterCompoundInterface) is always ignored, but a warning is outputted in the console when the FilterOperator is different that FO_UNION.
A FilterItemInterface has the FO_UNION operator by default.
The operator to combine this FilterItemInterface and its first enabled predecessor.
Tells the type of the given interface.
The type of the given interface.
Gets the identifier of the parent container that contains this FilterItemInterface (getFilterId()).
Such a container may be a FilterSolverInterface, FilterSetInterface or a FilterCompoundInterface. Returns an empty string if the FilterItemInterface is not included in a parent container.
The identifier of the parent container.
Gets the range item at index pRangeIndex.
If pRangeIndex is negative or superior or equal to the number of range items, this function does nothing and returns undefined.
The given FilterRangeItemInterface (this is the actual data held by the FilterRangeInterface, and not a copy) if pRangeIndex is valid else return undefined.
Gets the list of all range items.
This function should not be used to add or remove range items, the FilterRangeInterface will not see the modifications if the array is modified.
However, modifying items inside the array is allowed.
Tells if the EventDispatcher has such a callback registered for the given event type.
true if such a listener is installed for the given type of event.
Tells if this object has been gotten rid off.
true if dispose has been called on this object.
Tells if the FilterItemInterface is enabled.
If disabled, this FilterItemInterface is completely ignored during all the computations (the behavior is the same as if it had not been created).
A FilterItemInterface is enabled by default.
true if the FilterItemInterface is enabled.
Tells if the FilterItemInterface is "inverted".
When "inverted", a FilterItemInterface elects all the part instances that were not selected if it was not inverted.
A FilterItemInterface is not "inverted" by default.
true if such a FilterItemInterface is "inverted".
Removes a listener from an event type.
If no such listener is found, then the function returns false and does nothing. You must use the exact parameters that were used in addEventListener to actually remove the listener.
true if the callback was removed else false.
The listener function that gets removed.
The listener object that was used when addEventListener was called.
Removes a listener from an event type.
If no such listener is found, then the function returns false and does nothing. You must use the exact parameters that were used in addEventListener to actually remove the listener.
true if the callback was removed else false.
The listener function that gets removed.
Removes a listener by its id.
If no such listener is found, then the function returns false and does nothing. You must use the return value of addEventListener to actually remove the listener.
true if the callback was removed else false.
Removes the range item at the position pRangeIndex.
If pRangeIndex is negative or superior or equal to the number of range items, this function does nothing and returns false. Returns true if the item is effectively removed.
true if the item was removed else return false.
Sets the name of the attribute to filter with.
Using an unknown attribute name or an invalid attribute type (only ATTR_NUMBER, ATTR_DATE ATTR_NUMBER_RANGE and ATTR_DATE_RANGE types are accepted) will return false and leave the FilterRangeInterface unchanged.
Setting the same attribute name will return true and leave the FilterRangeInterface unchanged.
Setting a valid and new attribute name will clear the ranges that may have previously created by createFilterRangeItem.
Use addEventListener on the event FilterDataChanged to know when the filter data is changed.
true if pAttributeName refers to an existing and valid attribute.
Sets the FilterItemInterface enabled/disabled status.
If disabled, this FilterItemInterface is completely ignored during all the computations (the behavior is the same as if it had not been created). Use addEventListener on the event FilterEnabledChanged to know when the FilterItemInterface has changed its enabled status.
A FilterItemInterface is enabled by default.
Sets the content of the FilterItemInterface from a former call to getFilterData.
Use addEventListener on the event FilterDataChanged to know when the FilterItemInterface internal data changed.
true if the data is set.
Sets the operator to apply with this FilterItemInterface and its closest enabled predecessor in its parent container.
The FilterItemInterface operator of the first enabled FilterItemInterface in a parent list (FilterSolverInterface, FilterSetInterface, FilterCompoundInterface) is always ignored, but a warning is outputted in the console when the FilterOperator is different that FO_UNION. Use addEventListener on the event FilterInvertedChanged to know when the FilterItemInterface operator changed.
A FilterItemInterface has the FO_UNION operator by default.
Sets the "inverted" status of the FilterItemInterface.
When "inverted", a FilterItemInterface elects all the part instances that were not selected if it was not inverted.
Use addEventListener on the event FilterInvertedChanged
to know when the FilterItemInterface has changed its "inverted" status.
A FilterItemInterface is not "inverted" by default.
The FilterRangeInterface interface is a FilterItemInterface to elect
part instancesthat have a numeric/date metadata inside or that intersects a fixed set of ranges.The filter range interface works on metadata of type :
The type of the metadata is given by the getAttributeType from the AttributesDictionaryInterface once the DMU is loaded.
This interface allows to create range items FilterRangeItemInterface to allow the creation of an union of ranges, to be tested against a value or another range (be it numeric or a date).
The API only exposes numbers. Indeed, date types must be converted to a number : dates must be expressed as number of milliseconds since January 1, 1970, 00:00:00 UTC, dates must be converted with the use of the
getTimefunctions, and created or modified with the Date constructor from a number (the number of milliseconds since January 1, 1970, 00:00:00 UTC) or with thesetTimefunction. Negative values are accepted.Suppose the user wants to get all
part instancesthat are created between yesterday and the current date time. The relevantpart instanceshave the metadataCreationDatewith the ATTR_DATE type :This interface MUST be used in a [FilterSolverInterface](FilterSolverInterface.html), which in turn should refer to a valid [VisibilityContextInterface](VisibilityContextInterface.html) (see Filtering Context).
See
FilterRangeItemInterface