|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.swing.layer.DefaultLayerContainerSelectionModel
public class DefaultLayerContainerSelectionModel
The default implementation of ILayerContainerSelectionModel
.
Constructor Summary | |
---|---|
DefaultLayerContainerSelectionModel()
|
Method Summary | |
---|---|
void |
addLayerContainerSelectionModelListener(ILayerContainerSelectionModelListener l)
Adds a listener to the selection model. |
void |
addSelectedTimeSpan(java.lang.Object node,
ITimeSpan span)
Adds a time span to the list of selected time spans of the given tree table node object. |
void |
clearSelectedTimeSpans()
Removes all selected time spans from the selection model. |
void |
clearSelectedTimeSpans(java.lang.Object node)
Removes all of those selected time spans that belong to the given tree node object. |
protected void |
fireTimeSpansAdded(java.lang.Object node,
java.util.List<ITimeSpan> spans)
Sends a TimeSpanSelectionEvent to all listeners informing them
that time spans have been added to the selection model. |
protected void |
fireTimeSpansRemoved(java.lang.Object node,
java.util.List<ITimeSpan> spans)
Sends a TimeSpanSelectionEvent to all listeners informing them
that time spans have been removed from the selection model. |
java.util.Iterator<ITimeSpan> |
getSelectedTimeSpans(java.lang.Object owner,
ITimeSpan span)
Returns an iterator for iterating over the list of selected time spans of the given node within the given time span. |
boolean |
isEmpty()
Checks whether the selection model contains any selections at all. |
boolean |
isEmpty(java.lang.Object node)
Checks whether the selection model contains any selections for the given tree node object. |
boolean |
isSelected(java.lang.Object node,
ITimeSpan span)
Returns TRUE if the given time span is currently selected on the given tree table node. |
void |
removeLayerContainerSelectionModelListener(ILayerContainerSelectionModelListener l)
Removes a listener from the selection model. |
void |
removeSelectedTimeSpan(java.lang.Object node,
ITimeSpan removedSpan)
Removes a time span from the list of selected time spans of the given tree table node object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLayerContainerSelectionModel()
Method Detail |
---|
public boolean isEmpty()
ILayerContainerSelectionModel
isEmpty
in interface ILayerContainerSelectionModel
public boolean isEmpty(java.lang.Object node)
ILayerContainerSelectionModel
isEmpty
in interface ILayerContainerSelectionModel
node
- the node to check for selections
public void clearSelectedTimeSpans()
ILayerContainerSelectionModel
clearSelectedTimeSpans
in interface ILayerContainerSelectionModel
ILayerContainerSelectionModel.clearSelectedTimeSpans(Object)
,
ILayerContainerSelectionModel.removeSelectedTimeSpan(Object, ITimeSpan)
public void clearSelectedTimeSpans(java.lang.Object node)
ILayerContainerSelectionModel
clearSelectedTimeSpans
in interface ILayerContainerSelectionModel
node
- the tree table node objectILayerContainerSelectionModel.clearSelectedTimeSpans()
,
ILayerContainerSelectionModel.removeSelectedTimeSpan(Object, ITimeSpan)
public void addSelectedTimeSpan(java.lang.Object node, ITimeSpan span)
ILayerContainerSelectionModel
addSelectedTimeSpan
in interface ILayerContainerSelectionModel
node
- the tree table node objectspan
- the time span to addILayerContainerSelectionModel.removeSelectedTimeSpan(Object, ITimeSpan)
public void removeSelectedTimeSpan(java.lang.Object node, ITimeSpan removedSpan)
ILayerContainerSelectionModel
removeSelectedTimeSpan
in interface ILayerContainerSelectionModel
node
- the tree table node objectremovedSpan
- the time span to removeILayerContainerSelectionModel.addSelectedTimeSpan(Object, ITimeSpan)
public java.util.Iterator<ITimeSpan> getSelectedTimeSpans(java.lang.Object owner, ITimeSpan span)
ILayerContainerSelectionModel
getSelectedTimeSpans
in interface ILayerContainerSelectionModel
owner
- the tree table node objectspan
- the time span for which an iterator gets created
public boolean isSelected(java.lang.Object node, ITimeSpan span)
ILayerContainerSelectionModel
isSelected
in interface ILayerContainerSelectionModel
node
- the tree table node objectspan
- the time span to check
ITimeSpan.contains(ITimeSpan)
public void addLayerContainerSelectionModelListener(ILayerContainerSelectionModelListener l)
ILayerContainerSelectionModel
addLayerContainerSelectionModelListener
in interface ILayerContainerSelectionModel
l
- the listener to addILayerContainerSelectionModel.removeLayerContainerSelectionModelListener(ILayerContainerSelectionModelListener)
public void removeLayerContainerSelectionModelListener(ILayerContainerSelectionModelListener l)
ILayerContainerSelectionModel
removeLayerContainerSelectionModelListener
in interface ILayerContainerSelectionModel
l
- the listener to removeILayerContainerSelectionModel.addLayerContainerSelectionModelListener(ILayerContainerSelectionModelListener)
protected void fireTimeSpansAdded(java.lang.Object node, java.util.List<ITimeSpan> spans)
TimeSpanSelectionEvent
to all listeners informing them
that time spans have been added to the selection model.
node
- the tree node on which time spans were added to the selectionspans
- the time spans that were addedprotected void fireTimeSpansRemoved(java.lang.Object node, java.util.List<ITimeSpan> spans)
TimeSpanSelectionEvent
to all listeners informing them
that time spans have been removed from the selection model.
node
- the tree node on which time spans were removed from the
selectionspans
- the time spans that were removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |