public abstract class IlvCommutativeAssociativeOperator extends IlvAbstractOperator implements IlvOperator
Modifier | Constructor and Description |
---|---|
protected |
IlvCommutativeAssociativeOperator()
Creates a new instance of this operator.
|
Modifier and Type | Method and Description |
---|---|
protected void |
attach(IlvModelWithColumns model,
IlvDataColumnInfo column)
Attaches this operator to a given model and column.
|
protected void |
attach(IlvTreeModelWithColumns model,
TreePath branchRootPath,
IlvDataColumnInfo column)
Attaches this operator to a given tree model branch and column.
|
protected abstract Object |
combine(Object value1,
Object value2)
Returns the value of the operator, when applied to two operator results.
|
void |
detach()
Detaches this operator from its model and thus deactivates it.
|
protected abstract boolean |
equalValues(Object value1,
Object value2)
Returns
true if two values are to be considered the same. |
Object |
getOperatorValue()
Returns the current minimum of the values in the column.
|
protected abstract Object |
identity(Object value)
Returns the value of the operator, when applied to a single argument.
|
protected abstract Object |
neutralValue()
Returns the value of the operator, when applied to zero arguments.
|
addOperatorListener, fireEvent, removeOperatorListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOperatorListener, removeOperatorListener
protected IlvCommutativeAssociativeOperator()
protected abstract Object neutralValue()
protected abstract Object identity(Object value)
protected abstract Object combine(Object value1, Object value2)
protected abstract boolean equalValues(Object value1, Object value2)
true
if two values are to be considered the same.protected void attach(IlvModelWithColumns model, IlvDataColumnInfo column)
model
- The model containing the column values.column
- The column whose values shall be used.protected void attach(IlvTreeModelWithColumns model, TreePath branchRootPath, IlvDataColumnInfo column)
model
- The model containing the column values.branchRootPath
- The tree path from the root of the model to the root of
the branch onto which to limit the scope of the
operation. The branch root must stay in the model as
long as this operator is attached.column
- The column whose values shall be used.public void detach()
detach
in interface IlvOperator
public Object getOperatorValue()
null
if the column contains no values.getOperatorValue
in interface IlvOperator
IllegalStateException
- If this operator is not attached to a model.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.