public class IlvMaxOperator extends IlvCommutativeAssociativeOperator
Constructor and Description |
---|
IlvMaxOperator()
Creates a new instance of this maximizing operator.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(IlvModelWithColumns model,
IlvDataColumnInfo column,
Comparator comparator)
Attaches this operator to a given model and column.
|
void |
attach(IlvTreeModelWithColumns model,
TreePath branchRootPath,
IlvDataColumnInfo column,
Comparator comparator)
Attaches this operator to a given tree model branch and column.
|
protected 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 boolean |
equalValues(Object value1,
Object value2)
Returns
true if two values are to be considered the same. |
protected Object |
identity(Object value)
Returns the value of the operator, when applied to a single argument.
|
protected Object |
neutralValue()
Returns the value of the operator, when applied to zero arguments.
|
attach, attach, getOperatorValue
addOperatorListener, fireEvent, removeOperatorListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOperatorListener, removeOperatorListener
public IlvMaxOperator()
protected Object neutralValue()
neutralValue
in class IlvCommutativeAssociativeOperator
protected Object identity(Object value)
identity
in class IlvCommutativeAssociativeOperator
protected Object combine(Object value1, Object value2)
combine
in class IlvCommutativeAssociativeOperator
protected boolean equalValues(Object value1, Object value2)
true
if two values are to be considered the same.equalValues
in class IlvCommutativeAssociativeOperator
public void attach(IlvModelWithColumns model, IlvDataColumnInfo column, Comparator comparator)
model
- The model containing the column values.column
- The column whose values shall be used.comparator
- The comparator for comparing column values, or
null
which denotes a default comparator.public void attach(IlvTreeModelWithColumns model, TreePath branchRootPath, IlvDataColumnInfo column, Comparator comparator)
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.comparator
- The comparator for comparing column values, or
null
which denotes a default comparator.public void detach()
detach
in interface IlvOperator
detach
in class IlvCommutativeAssociativeOperator
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.