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.
-
-
Field Summary
Fields Modifier and Type Field Description protected CmsPushButton
m_cancelButton
The cancel button.protected com.google.gwt.user.client.ui.FlowPanel
m_infoBoxContainer
The container for the file info box.protected com.google.gwt.user.client.ui.Label
m_movedLabel
The label which informs the user that the resource has moved.protected com.google.gwt.user.client.ui.Panel
m_movedSection
The section which is displayed when the resource was moved.protected CmsPushButton
m_okButton
The OK button.protected CmsPopup
m_popup
The popup in which this widget is contained.protected org.opencms.gwt.shared.CmsRestoreInfoBean
m_restoreInfo
The bean containing information about the resource to restore.protected CmsCheckBox
m_undoMoveCheckbox
The check box used for selecting whether a move operation should be undone.
-
Constructor Summary
Constructors Constructor Description CmsRestoreView(org.opencms.gwt.shared.CmsRestoreInfoBean restoreInfo, java.lang.Runnable afterRestoreAction)
Creates a new widget instance.
-
Method Summary
All Methods Instance Methods Concrete Methods 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
setPopup(CmsPopup popup)
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
-
-
-
-
Field Detail
-
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_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 Detail
-
CmsRestoreView
public CmsRestoreView(org.opencms.gwt.shared.CmsRestoreInfoBean restoreInfo, java.lang.Runnable afterRestoreAction)
Creates a new widget instance.- Parameters:
restoreInfo
- a bean with information about the resource to restoreafterRestoreAction
- the action to execute after restoring the resource
-
-
Method Detail
-
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
-
-