Class CmsConfirmTransferWidget

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.ade.postupload.client.ui.CmsConfirmTransferWidget
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class CmsConfirmTransferWidget extends com.google.gwt.user.client.ui.Composite
Widget for asking the user for confirmation whether a property value should be transferred to all uploaded files.

Has an additional checkbox for enabling/disabling overwrite mode, which controls whether properties should also be copied to files on which the corresponding property is already set.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Interface with message string constants.

    Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

    com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected CmsPushButton
    The Cancel button.
    protected CmsCheckBox
    Checkbox for selecting whether existing property values should be overwritten.
    protected com.google.gwt.user.client.ui.HTML
    The label with the dialog text.
    protected CmsPushButton
    The OK button.

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the buttons for the dialog.
    void
    onClickCancel(com.google.gwt.event.dom.client.ClickEvent event)
    The click handler for the cancel button.
    void
    onClickOk(com.google.gwt.event.dom.client.ClickEvent event)
    The click handler for the OK button.
    void
    Sets the popup which this widget is used in.
    static void
    Opens the dialog for confirming a property transfer.

    Methods inherited from class com.google.gwt.user.client.ui.Composite

    claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents

    Methods inherited from class com.google.gwt.user.client.ui.UIObject

    addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • CmsConfirmTransferWidget

      Creates a new instance.

      Parameters:
      callback - the callback to call with the value of the 'overwrite' option (only called if the user clicks OK)
  • Method Details

    • showDialog

      public static void showDialog(Consumer<Boolean> callback)
      Opens the dialog for confirming a property transfer.
      Parameters:
      callback - the callback to call with the value of the 'overwrite' option
    • getButtons

      Gets the buttons for the dialog.

      Returns:
      the buttons for the dialog
    • onClickCancel

      @UiHandler("m_cancelButton") public void onClickCancel(com.google.gwt.event.dom.client.ClickEvent event)
      The click handler for the cancel button.

      Parameters:
      event - the click event
    • onClickOk

      @UiHandler("m_okButton") public void onClickOk(com.google.gwt.event.dom.client.ClickEvent event)
      The click handler for the OK button.

      Parameters:
      event - the click event
    • setPopup

      public void setPopup(CmsPopup popup)
      Sets the popup which this widget is used in.

      Parameters:
      popup - the popup