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
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 ClassesModifier and TypeClassDescriptionstatic classInterface 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
FieldsModifier and TypeFieldDescriptionprotected CmsPushButtonThe Cancel button.protected CmsCheckBoxCheckbox for selecting whether existing property values should be overwritten.protected com.google.gwt.user.client.ui.HTMLThe label with the dialog text.protected CmsPushButtonThe OK button.Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionCmsConfirmTransferWidget(Consumer<Boolean> callback) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the buttons for the dialog.voidonClickCancel(com.google.gwt.event.dom.client.ClickEvent event) The click handler for the cancel button.voidonClickOk(com.google.gwt.event.dom.client.ClickEvent event) The click handler for the OK button.voidSets the popup which this widget is used in.static voidshowDialog(Consumer<Boolean> callback) 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, setWidgetMethods 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, unsinkEventsMethods 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 existing property values should be overwritten. -
m_mainLabel
The label with the dialog text. -
m_okButton
The OK button.
-
-
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
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
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
-