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)
IEventlineSelectionModel
addSelection
in interface IEventlineSelectionModel
eventlineObject
- the eventline object that gets added to the current selectionpublic void removeSelection(Object eventlineObject)
IEventlineSelectionModel
removeSelection
in interface IEventlineSelectionModel
eventlineObject
- the eventline object that gets removed from the current
selectionpublic Object[] getSelection()
IEventlineSelectionModel
getSelection
in interface IEventlineSelectionModel
public void clearSelection()
IEventlineSelectionModel
clearSelection
in interface IEventlineSelectionModel
public boolean isSelected(Object eventlineObject)
IEventlineSelectionModel
isSelected
in interface IEventlineSelectionModel
eventlineObject
- the eventline object to checkpublic void setSelectionMode(IEventlineSelectionModel.Mode mode)
IEventlineSelectionModel
setSelectionMode
in interface IEventlineSelectionModel
mode
- the selection modepublic IEventlineSelectionModel.Mode getSelectionMode()
IEventlineSelectionModel
getSelectionMode
in interface IEventlineSelectionModel
public void addEventlineSelectionListener(IEventlineSelectionListener l)
IEventlineSelectionModel
addEventlineSelectionListener
in interface IEventlineSelectionModel
l
- the listener to addIEventlineSelectionModel.removeEventlineSelectionListener(IEventlineSelectionListener)
public void removeEventlineSelectionListener(IEventlineSelectionListener l)
IEventlineSelectionModel
removeEventlineSelectionListener
in interface IEventlineSelectionModel
l
- 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.