public abstract class AbstractListComponentModel extends Object implements MutableListModel
| Modifier and Type | Field and Description |
|---|---|
protected List<ListComponentModelListener> |
listeners |
protected Map<TypedObject,Set<TypedObject>> |
updateNotificationMap |
| Constructor and Description |
|---|
AbstractListComponentModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListComponentModelListener(ListComponentModelListener listener) |
void |
addToAdditionalItemChangeUpdateNotificationMap(TypedObject itemToUpdate,
Collection<TypedObject> changedItems) |
protected void |
fireChanged() |
void |
fireEvent(String eventName,
Object value)
This method provides the means necessary to fire generic events which are received by any registered
ListComponentModelListener. |
protected void |
fireItemsActivated(Collection<TypedObject> items) |
protected void |
fireItemsChanged() |
protected void |
fireMoved(int fromIndex,
int toIndex) |
protected void |
fireRemoved(Collection<Integer> indexes) |
protected void |
fireSelectionChanged(List<Integer> indexes) |
Collection<TypedObject> |
getAdditionalItemsToUpdate(TypedObject changedItem) |
boolean |
isForceRenderOnSelectionChanged()
Returns whether cell content should be re-rendered when the selection state of its row has changed.
|
void |
removeListComponentModelListener(ListComponentModelListener listener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetListModel, setActivatable, setActiveItem, setActiveItems, setEditable, setForceRenderOnSelectionChanged, setListModel, setMultiple, setSelectable, setSelectedIndex, setSelectedIndexDirectly, setSelectedIndexes, setSelectedIndexesDirectlygetActiveItem, getActiveItems, getSelectedIndex, getSelectedIndexes, getValueAt, isActivatable, isEditable, isMultiple, isSelectable, isSelectedprotected List<ListComponentModelListener> listeners
protected Map<TypedObject,Set<TypedObject>> updateNotificationMap
public void addListComponentModelListener(ListComponentModelListener listener)
addListComponentModelListener in interface ListComponentModelpublic void removeListComponentModelListener(ListComponentModelListener listener)
removeListComponentModelListener in interface ListComponentModelprotected void fireItemsActivated(Collection<TypedObject> items)
protected void fireMoved(int fromIndex,
int toIndex)
protected void fireRemoved(Collection<Integer> indexes)
protected void fireItemsChanged()
protected void fireChanged()
public boolean isForceRenderOnSelectionChanged()
ListComponentModelisForceRenderOnSelectionChanged in interface ListComponentModeltrue if the cell content should be re-rendered, false otherwisepublic void fireEvent(String eventName, Object value)
ListComponentModelListComponentModelListener.fireEvent in interface ListComponentModeleventName - name of eventvalue - attached valuepublic void addToAdditionalItemChangeUpdateNotificationMap(TypedObject itemToUpdate, Collection<TypedObject> changedItems)
addToAdditionalItemChangeUpdateNotificationMap in interface ListComponentModelpublic Collection<TypedObject> getAdditionalItemsToUpdate(TypedObject changedItem)
getAdditionalItemsToUpdate in interface ListComponentModelCopyright © 2017 SAP SE. All Rights Reserved.