com.smartgwt.client.widgets.form.fields.events

## Interface HasCanEditChangedHandlers

- All Superinterfaces:
    com.google.gwt.event.shared.HasHandlers
  All Known Implementing Classes:
    ButtonItem, CancelItem, CanvasItem, DateRangeItem, FileItem, IPickTreeItem, MultiComboBoxItem, MultiFileItem, PickTreeItem, RelativeDateItem, ResetItem, RichTextItem, SectionItem, SliderItem, SubmitItem, ToggleItem, ToolbarItem, ViewFileItem

      public interface HasCanEditChangedHandlers
      extends com.google.gwt.event.shared.HasHandlers

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `com.google.gwt.event.shared.HandlerRegistration` | `addCanEditChangedHandler(CanEditChangedHandler handler)` Notification method called when the `canEdit` setting is modified.

    - ### Methods inherited from interface com.google.gwt.event.shared.HasHandlers

      `fireEvent`

- - ### Method Detail

    - #### addCanEditChangedHandler

          com.google.gwt.event.shared.HandlerRegistration addCanEditChangedHandler(CanEditChangedHandler handler)

      Notification method called when the `canEdit` setting is modified. Developers may make use of this to toggle between an editable and a read-only appearance of the `canvas`.

      The default behavior is:

      - If `canvas` is a `DynamicForm`, the form's `DynamicForm.canEdit` setting is set to `canEdit`.
      - `shouldDisableCanvas()` is called to determine if the `canvas` should be disabled.

      Standard `CanvasItem`-based form items may customize the default behavior. For example, a `MultiComboBoxItem` will hide its `comboForm` if the `readOnlyDisplay` is `ReadOnlyDisplayAppearance.READONLY` or `ReadOnlyDisplayAppearance.STATIC` and also disable the buttons when made read-only.

      Parameters:
        `handler` - the canEditChanged handler
      Returns:
        `HandlerRegistration` used to remove this handler