public abstract class IlvAbstractFlatListModel extends Object implements IlvFlatListModel, IlvDataConverter, Cloneable
IlvFlatListModel
interface which handles the notification to listeners of the model.
However, it does not constrain the nature of the objects stored in the model or of their attributes.
BEFORE_COLUMN_REMOVED_MASK, BEFORE_DATA_CHANGE_MASK, BEFORE_OBJECTS_REMOVED_MASK
Constructor and Description |
---|
IlvAbstractFlatListModel()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addFlatListModelListener(FlatListModelListener listener)
Adds a listener.
|
Object |
clone()
Returns a copy of this object.
|
double |
convertToDouble(Object value)
Converts an object to a double.
|
void |
endBatch()
Terminates a group of modifications.
|
void |
fireModelEvent(FlatListModelEvent event)
Notifies the listeners of a model event.
|
int |
getSupportedEventsMask()
Returns a bit mask denoting the optional kinds of events that are guaranteed
to be sent by this model to the registered listeners.
|
void |
removeFlatListModelListener(FlatListModelListener listener)
Removes a listener.
|
void |
startBatch()
Starts a group of modifications.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getColumn, getColumnCount, getDoubleAt, getObjects, getValueAt, setDoubleAt, setValueAt
public IlvAbstractFlatListModel()
public void startBatch()
startBatch
in interface IlvFlatListModel
startBatch
in interface IlvBatchable
public void fireModelEvent(FlatListModelEvent event)
public void endBatch()
endBatch
in interface IlvFlatListModel
endBatch
in interface IlvBatchable
public void addFlatListModelListener(FlatListModelListener listener)
addFlatListModelListener
in interface IlvFlatListModel
public void removeFlatListModelListener(FlatListModelListener listener)
removeFlatListModelListener
in interface IlvFlatListModel
public int getSupportedEventsMask()
This implementation returns 0. It ought to be overridden in subclasses.
getSupportedEventsMask
in interface IlvFlatListModel
IlvFlatListModel.BEFORE_DATA_CHANGE_MASK
,
IlvFlatListModel.BEFORE_OBJECTS_REMOVED_MASK
,
IlvFlatListModel.BEFORE_COLUMN_REMOVED_MASK
public double convertToDouble(Object value)
getDoubleAt
for columns that are not
of type Double
.convertToDouble
in interface IlvDataConverter
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.