public interface HasCanEditChangedHandlers extends HasHandlers
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addCanEditChangedHandler(CanEditChangedHandler handler)
Notification method called when the
canEdit setting
is modified. |
fireEvent
HandlerRegistration addCanEditChangedHandler(CanEditChangedHandler handler)
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:
canvas
is a DynamicForm
, the form's canEdit
setting is set to canEdit
. CanvasItem.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.
handler
- the canEditChanged handlerHandlerRegistration
used to remove this handler