Class CancelItem

All Implemented Interfaces:
HasHandlers, HasBlurHandlers, HasCanEditChangedHandlers, HasChangedHandlers, HasChangeHandlers, HasClickHandlers, HasDoubleClickHandlers, HasEditorEnterHandlers, HasEditorExitHandlers, HasFocusHandlers, HasIconClickHandlers, HasIconKeyPressHandlers, HasItemHoverHandlers, HasKeyDownHandlers, HasKeyPressHandlers, HasKeyUpHandlers, HasPendingStatusChangedHandlers, HasPickerIconClickHandlers, HasReadOnlyDisplayChangedHandlers, HasShowContextMenuHandlers, HasShowValueHandlers, HasTitleClickHandlers, HasTitleDoubleClickHandlers, HasTitleHoverHandlers, HasValueHoverHandlers, HasValueIconClickHandlers

public class CancelItem extends ButtonItem
Button that cancels any changes in the form, by calling DynamicForm.cancelEditing when clicked. See DynamicForm.cancelEditing for details on what happens when a form editing is cancelled.
  • Constructor Details

    • CancelItem

      public CancelItem()
    • CancelItem

      public CancelItem(JavaScriptObject jsObj)
    • CancelItem

      public CancelItem(String name)
    • CancelItem

      public CancelItem(String name, String title)
  • Method Details

    • getOrCreateRef

      public static CancelItem getOrCreateRef(JavaScriptObject jsObj)
    • setTitle

      public CancelItem setTitle(String title)
      CancelItems show a title of "Cancel" by default. May be overridden.
      Overrides:
      setTitle in class FormItem
      Parameters:
      title - title Default value is "Cancel"
      Returns:
      {com.smartgwt.client.widgets.form.fields.CancelItem CancelItem} instance, for chaining setter calls
      See Also:
    • getTitle

      public String getTitle()
      CancelItems show a title of "Cancel" by default. May be overridden.
      Overrides:
      getTitle in class FormItem
      Returns:
      String
      See Also: