Class CmsRestoreView

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.gwt.client.ui.restore.CmsRestoreView
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 CmsRestoreView extends com.google.gwt.user.client.ui.Composite
The content widget for the restore dialog.

  • Nested Class Summary

    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 com.google.gwt.user.client.ui.FlowPanel
    The container for the file info box.
    protected com.google.gwt.user.client.ui.Label
    The label which informs the user that the resource has moved.
    protected com.google.gwt.user.client.ui.Panel
    The section which is displayed when the resource was moved.
    protected CmsPushButton
    The OK button.
    protected CmsPopup
    The popup in which this widget is contained.
    protected org.opencms.gwt.shared.CmsRestoreInfoBean
    The bean containing information about the resource to restore.
    protected CmsCheckBox
    The check box used for selecting whether a move operation should be undone.

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

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsRestoreView(org.opencms.gwt.shared.CmsRestoreInfoBean restoreInfo, Runnable afterRestoreAction)
    Creates a new widget instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    onClickCancel(com.google.gwt.event.dom.client.ClickEvent e)
    Handler for the cancel button.
    protected void
    onClickOk(com.google.gwt.event.dom.client.ClickEvent e)
    Click handler for the OK button.
    void
    Sets the popup in which this widget is displayed.

    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

    • m_cancelButton

      @UiField protected CmsPushButton m_cancelButton
      The cancel button.
    • m_infoBoxContainer

      @UiField protected com.google.gwt.user.client.ui.FlowPanel m_infoBoxContainer
      The container for the file info box.
    • m_movedLabel

      @UiField protected com.google.gwt.user.client.ui.Label m_movedLabel
      The label which informs the user that the resource has moved.
    • m_movedSection

      @UiField protected com.google.gwt.user.client.ui.Panel m_movedSection
      The section which is displayed when the resource was moved.
    • m_okButton

      @UiField protected CmsPushButton m_okButton
      The OK button.
    • m_popup

      protected CmsPopup m_popup
      The popup in which this widget is contained.
    • m_restoreInfo

      protected org.opencms.gwt.shared.CmsRestoreInfoBean m_restoreInfo
      The bean containing information about the resource to restore.
    • m_undoMoveCheckbox

      @UiField protected CmsCheckBox m_undoMoveCheckbox
      The check box used for selecting whether a move operation should be undone.
  • Constructor Details

    • CmsRestoreView

      public CmsRestoreView(org.opencms.gwt.shared.CmsRestoreInfoBean restoreInfo, Runnable afterRestoreAction)
      Creates a new widget instance.

      Parameters:
      restoreInfo - a bean with information about the resource to restore
      afterRestoreAction - the action to execute after restoring the resource
  • Method Details

    • setPopup

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

      Parameters:
      popup - the popup in which this widget is displayed
    • onClickCancel

      @UiHandler("m_cancelButton") protected void onClickCancel(com.google.gwt.event.dom.client.ClickEvent e)
      Handler for the cancel button.

      Parameters:
      e - the click event
    • onClickOk

      @UiHandler("m_okButton") protected void onClickOk(com.google.gwt.event.dom.client.ClickEvent e)
      Click handler for the OK button.

      Parameters:
      e - the click event