Interface HasCanEditChangedHandlers
- All Superinterfaces:
HasHandlers
- All Known Implementing Classes:
ButtonItem
,CancelItem
,CanvasItem
,DateRangeItem
,FileItem
,IPickTreeItem
,MultiComboBoxItem
,MultiFileItem
,PickTreeItem
,RelativeDateItem
,ResetItem
,RichTextItem
,SectionItem
,ShuttleItem
,SliderItem
,SubmitItem
,ToggleItem
,ToolbarItem
,ViewFileItem
-
Method Summary
Modifier and TypeMethodDescriptionNotification method called when thecanEdit
setting is modified.Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Method Details
-
addCanEditChangedHandler
Notification method called when thecanEdit
setting is modified. Developers may make use of this to toggle between an editable and a read-only appearance of thecanvas
.The default behavior is:
- If
canvas
is aDynamicForm
, the form'sDynamicForm.canEdit
setting is set tocanEdit
. shouldDisableCanvas()
is called to determine if thecanvas
should be disabled.
Standard
CanvasItem
-based form items may customize the default behavior. For example, aMultiComboBoxItem
will hide itscomboForm
if thereadOnlyDisplay
isReadOnlyDisplayAppearance.READONLY
orReadOnlyDisplayAppearance.STATIC
and also disable the buttons when made read-only.- Parameters:
handler
- the canEditChanged handler- Returns:
HandlerRegistration
used to remove this handler
- If
-