|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.policy.AbstractPolicy com.dlsc.flexgantt.policy.layer.DefaultEditLayerPolicy
public class DefaultEditLayerPolicy
The default implementation of the edit policy for layers, which assumes that
the layers to add or remove are instances of Layer
.
Constructor Summary | |
---|---|
DefaultEditLayerPolicy()
|
Method Summary | |
---|---|
ICommand |
getAddLayerCommand(ILayer layer,
IGanttChartModel model)
Returns the command used to add a layer to a model. |
ICommand |
getRemoveLayerCommand(ILayer layer,
IGanttChartModel model)
Returns the command used to remove a layer from a model. |
Methods inherited from class com.dlsc.flexgantt.policy.AbstractPolicy |
---|
assertClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultEditLayerPolicy()
Method Detail |
---|
public ICommand getAddLayerCommand(ILayer layer, IGanttChartModel model)
IEditLayerPolicy
getAddLayerCommand
in interface IEditLayerPolicy
layer
- the layer to addmodel
- the model to which the layer will be added
public ICommand getRemoveLayerCommand(ILayer layer, IGanttChartModel model)
IEditLayerPolicy
getRemoveLayerCommand
in interface IEditLayerPolicy
layer
- the layer to removemodel
- the model from which the layer will be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |