public class DefaultEventlineSelectionModel extends Object implements IEventlineSelectionModel
Eventline. Eventline objects can be
added to and removed from the selection causing selection events to be sent
to the model listeners.IEventlineSelectionModel.Mode| Constructor and Description |
|---|
DefaultEventlineSelectionModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventlineSelectionListener(IEventlineSelectionListener l)
Adds a selection listener to the model.
|
void |
addSelection(Object eventlineObject)
Adds an object to the selection.
|
void |
clearSelection()
Clear the current selection.
|
protected void |
fireSelectionModelEvent(EventlineSelectionModelEvent evt)
Sends the given selection model event to the attached listeners.
|
Object[] |
getSelection()
Returns all currently selected eventline objects.
|
IEventlineSelectionModel.Mode |
getSelectionMode()
Returns the selection mode.
|
boolean |
isSelected(Object eventlineObject)
Checks whether the given eventline object is currently selected.
|
void |
removeEventlineSelectionListener(IEventlineSelectionListener l)
Removes a selection listener from the model.
|
void |
removeSelection(Object eventlineObject)
Removes an object from the selection.
|
void |
setSelectionMode(IEventlineSelectionModel.Mode mode)
Sets the selection mode.
|
public void addSelection(Object eventlineObject)
IEventlineSelectionModeladdSelection in interface IEventlineSelectionModeleventlineObject - the eventline object that gets added to the current selectionpublic void removeSelection(Object eventlineObject)
IEventlineSelectionModelremoveSelection in interface IEventlineSelectionModeleventlineObject - the eventline object that gets removed from the current
selectionpublic Object[] getSelection()
IEventlineSelectionModelgetSelection in interface IEventlineSelectionModelpublic void clearSelection()
IEventlineSelectionModelclearSelection in interface IEventlineSelectionModelpublic boolean isSelected(Object eventlineObject)
IEventlineSelectionModelisSelected in interface IEventlineSelectionModeleventlineObject - the eventline object to checkpublic void setSelectionMode(IEventlineSelectionModel.Mode mode)
IEventlineSelectionModelsetSelectionMode in interface IEventlineSelectionModelmode - the selection modepublic IEventlineSelectionModel.Mode getSelectionMode()
IEventlineSelectionModelgetSelectionMode in interface IEventlineSelectionModelpublic void addEventlineSelectionListener(IEventlineSelectionListener l)
IEventlineSelectionModeladdEventlineSelectionListener in interface IEventlineSelectionModell - the listener to addIEventlineSelectionModel.removeEventlineSelectionListener(IEventlineSelectionListener)public void removeEventlineSelectionListener(IEventlineSelectionListener l)
IEventlineSelectionModelremoveEventlineSelectionListener in interface IEventlineSelectionModell - the listener to removeIEventlineSelectionModel.addEventlineSelectionListener(IEventlineSelectionListener)protected void fireSelectionModelEvent(EventlineSelectionModelEvent evt)
evt - the selection eventaddEventlineSelectionListener(IEventlineSelectionListener)Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.