com.dlsc.flexgantt.policy.layer
Class DefaultSelectionPolicy
java.lang.Object
com.dlsc.flexgantt.policy.AbstractPolicy
com.dlsc.flexgantt.policy.layer.DefaultSelectionPolicy
- All Implemented Interfaces:
- IPolicy, ISelectionPolicy
public class DefaultSelectionPolicy
- extends AbstractPolicy
- implements ISelectionPolicy
The default implmementation of selection policy. For a general description of
this policy please refer to the policy interface ISelectionPolicy
.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
Method Summary |
boolean |
isSelectable(java.lang.Object node,
ITimeSpan span,
IGanttChartModel model)
Returns TRUE if the given time span on the given node can be selected by
the user (or programmatically) or not. |
boolean |
isSelectable(java.lang.Object node,
java.lang.Object timelineObject,
IGanttChartModel model)
Returns TRUE if the given timeline object on the given node can be
selected by the user (or programmatically) or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSelectionPolicy
public DefaultSelectionPolicy()
isSelectable
public boolean isSelectable(java.lang.Object node,
java.lang.Object timelineObject,
IGanttChartModel model)
- Description copied from interface:
ISelectionPolicy
- Returns TRUE if the given timeline object on the given node can be
selected by the user (or programmatically) or not.
- Specified by:
isSelectable
in interface ISelectionPolicy
- Parameters:
node
- the tree node to which the timeline object belongstimelineObject
- the timeline object to check whether it can be selected or notmodel
- the data source that returned the node and timeline object
- Returns:
- TRUE if the given timeline object that belongs to the given node
can be selected, FALSE otherwise
isSelectable
public boolean isSelectable(java.lang.Object node,
ITimeSpan span,
IGanttChartModel model)
- Description copied from interface:
ISelectionPolicy
- Returns TRUE if the given time span on the given node can be selected by
the user (or programmatically) or not.
- Specified by:
isSelectable
in interface ISelectionPolicy
- Parameters:
node
- the tree node on which to select the time spanspan
- the time span checkedsmodel
- the data source that returned the node
- Returns:
- TRUE if the given time span can be selected, FALSE otherwise