|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dlsc.flexgantt.model.eventline.DefaultEventlineSelectionModel
public class DefaultEventlineSelectionModel
A selection model used by the Eventline. Eventline objects can be
added to and removed from the selection causing selection events to be sent
to the model listeners.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.dlsc.flexgantt.model.eventline.IEventlineSelectionModel |
|---|
IEventlineSelectionModel.Mode |
| Constructor Summary | |
|---|---|
DefaultEventlineSelectionModel()
|
|
| Method Summary | |
|---|---|
void |
addEventlineSelectionListener(IEventlineSelectionListener l)
Adds a selection listener to the model. |
void |
addSelection(java.lang.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. |
java.lang.Object[] |
getSelection()
Returns all currently selected eventline objects. |
IEventlineSelectionModel.Mode |
getSelectionMode()
Returns the selection mode. |
boolean |
isSelected(java.lang.Object eventlineObject)
Checks whether the given eventline object is currently selected. |
void |
removeEventlineSelectionListener(IEventlineSelectionListener l)
Removes a selection listener from the model. |
void |
removeSelection(java.lang.Object eventlineObject)
Removes an object from the selection. |
void |
setSelectionMode(IEventlineSelectionModel.Mode mode)
Sets the selection mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEventlineSelectionModel()
| Method Detail |
|---|
public void addSelection(java.lang.Object eventlineObject)
IEventlineSelectionModel
addSelection in interface IEventlineSelectionModeleventlineObject - the eventline object that gets added to the current selectionpublic void removeSelection(java.lang.Object eventlineObject)
IEventlineSelectionModel
removeSelection in interface IEventlineSelectionModeleventlineObject - the eventline object that gets removed from the current
selectionpublic java.lang.Object[] getSelection()
IEventlineSelectionModel
getSelection in interface IEventlineSelectionModelpublic void clearSelection()
IEventlineSelectionModel
clearSelection in interface IEventlineSelectionModelpublic boolean isSelected(java.lang.Object eventlineObject)
IEventlineSelectionModel
isSelected in interface IEventlineSelectionModeleventlineObject - the eventline object to check
public void setSelectionMode(IEventlineSelectionModel.Mode mode)
IEventlineSelectionModel
setSelectionMode in interface IEventlineSelectionModelmode - the selection modepublic IEventlineSelectionModel.Mode getSelectionMode()
IEventlineSelectionModel
getSelectionMode in interface IEventlineSelectionModelpublic void addEventlineSelectionListener(IEventlineSelectionListener l)
IEventlineSelectionModel
addEventlineSelectionListener in interface IEventlineSelectionModell - the listener to addIEventlineSelectionModel.removeEventlineSelectionListener(IEventlineSelectionListener)public void removeEventlineSelectionListener(IEventlineSelectionListener l)
IEventlineSelectionModel
removeEventlineSelectionListener in interface IEventlineSelectionModell - the listener to removeIEventlineSelectionModel.addEventlineSelectionListener(IEventlineSelectionListener)protected void fireSelectionModelEvent(EventlineSelectionModelEvent evt)
evt - the selection eventaddEventlineSelectionListener(IEventlineSelectionListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||