Class CmsConfirmRemoveWidget
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.containerpage.client.ui.CmsConfirmRemoveWidget
- 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
Widget for asking the user for confirmation whether a container page element should be removed.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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
Modifier and TypeFieldDescriptionprotected CmsPushButton
The Cancel button.protected CmsCheckBox
Checkbox for selecting whether the resource should be deleted.protected boolean
True if this dialog has a checkbox for deleting the resource.protected com.google.gwt.user.client.ui.Panel
The widget containing the element info box.protected com.google.gwt.user.client.ui.Label
The label with the dialog text.protected com.google.gwt.user.client.ui.Label
The label which appears when the user is given the option to delete the resource.protected CmsPushButton
The OK button.protected com.google.gwt.user.client.rpc.AsyncCallback<Boolean>
The callback which will be called when the user has confirmed or cancelled the element removal.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
ConstructorDescriptionCmsConfirmRemoveWidget
(org.opencms.gwt.shared.CmsListInfoBean elementInfo, boolean canDelete, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> removeCallback) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets 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
onValueChange
(com.google.gwt.event.logical.shared.ValueChangeEvent<Boolean> event) Value change handler for the 'delete' checkbox.void
Sets the popup which this widget is used in.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 Details
-
m_cancelButton
The Cancel button. -
m_checkBox
Checkbox for selecting whether the resource should be deleted. -
m_hasDeleteCheckbox
True if this dialog has a checkbox for deleting the resource. -
m_infoBoxContainer
The widget containing the element info box. -
m_mainLabel
The label with the dialog text. -
m_noReferenceLabel
The label which appears when the user is given the option to delete the resource. -
m_okButton
The OK button. -
m_removeCallback
The callback which will be called when the user has confirmed or cancelled the element removal.
-
-
Constructor Details
-
Method Details
-
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
The click handler for the OK button.- Parameters:
event
- the click event
-
setPopup
Sets the popup which this widget is used in.- Parameters:
popup
- the popup
-