com.dlsc.flexgantt.policy.layer

## Interface IEditLayerPolicy

- All Superinterfaces:
    IPolicy
  All Known Implementing Classes:
    DefaultEditLayerPolicy

      public interface IEditLayerPolicy
      extends IPolicy

  A policy used to control which layers can be deleted and which commands will be used to remove or add a layer.
  Since:
    1.0
  Version:
    $Revision: 1.4 $
  Author:
    Dirk Lemmermann

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `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.

- - ### Method Detail

    - #### getAddLayerCommand

          ICommand getAddLayerCommand(ILayer layer,
                                      IGanttChartModel model)

      Returns the command used to add a layer to a model.
      Parameters:
        `layer` - the layer to add
        `model` - the model to which the layer will be added
      Returns:
        a command that performs the actual addition of the layer to the model
      Since:
        1.0

    - #### getRemoveLayerCommand

          ICommand getRemoveLayerCommand(ILayer layer,
                                         IGanttChartModel model)

      Returns the command used to remove a layer from a model.
      Parameters:
        `layer` - the layer to remove
        `model` - the model from which the layer will be removed
      Returns:
        a command that performs the actual removal of the layer from the model
      Since:
        1.0

Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.