public class CmsConfirmRemoveWidget
extends com.google.gwt.user.client.ui.Composite
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CmsConfirmRemoveWidget.MessageStrings
Interface with message string constants.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected CmsPushButton |
m_cancelButton
The Cancel button.
|
protected CmsCheckBox |
m_checkBox
Checkbox for selecting whether the resource should be deleted.
|
protected boolean |
m_hasDeleteCheckbox
True if this dialog has a checkbox for deleting the resource.
|
protected com.google.gwt.user.client.ui.Panel |
m_infoBoxContainer
The widget containing the element info box.
|
protected com.google.gwt.user.client.ui.Label |
m_mainLabel
The label with the dialog text.
|
protected com.google.gwt.user.client.ui.Label |
m_noReferenceLabel
The label which appears when the user is given the option to delete the resource.
|
protected CmsPushButton |
m_okButton
The OK button.
|
protected com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> |
m_removeCallback
The callback which will be called when the user has confirmed or cancelled the element removal.
|
| 构造器和说明 |
|---|
CmsConfirmRemoveWidget(CmsListInfoBean elementInfo,
boolean canDelete,
com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> removeCallback)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<CmsPushButton> |
getButtons()
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 |
onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.Boolean> event)
Value change handler for the 'delete' checkbox.
|
void |
setPopup(CmsPopup popup)
Sets the popup which this widget is used in.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEvents@UiField protected CmsPushButton m_cancelButton
@UiField protected CmsCheckBox m_checkBox
protected boolean m_hasDeleteCheckbox
@UiField protected com.google.gwt.user.client.ui.Panel m_infoBoxContainer
@UiField protected com.google.gwt.user.client.ui.Label m_mainLabel
@UiField protected com.google.gwt.user.client.ui.Label m_noReferenceLabel
@UiField protected CmsPushButton m_okButton
protected com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> m_removeCallback
public CmsConfirmRemoveWidget(CmsListInfoBean elementInfo, boolean canDelete, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Boolean> removeCallback)
elementInfo - the element info beancanDelete - true if the user should be given the option to delete the resourceremoveCallback - the callback to execute after the dialog closespublic java.util.List<CmsPushButton> getButtons()
@UiHandler(value="m_cancelButton") public void onClickCancel(com.google.gwt.event.dom.client.ClickEvent event)
event - the click event@UiHandler(value="m_okButton") public void onClickOk(com.google.gwt.event.dom.client.ClickEvent event)
event - the click event@UiHandler(value="m_checkBox") public void onValueChange(com.google.gwt.event.logical.shared.ValueChangeEvent<java.lang.Boolean> event)
event - the value change eventpublic void setPopup(CmsPopup popup)
popup - the popup