public class CmsReplaceDialog extends CmsPopup implements I_CmsUploadDialog
com.google.gwt.user.client.ui.PopupPanel.PositionCallback
限定符和类型 | 字段和说明 |
---|---|
protected CmsReplaceContentWidget |
m_mainPanel
The main content panel.
|
m_closeCommand, m_notificationWidgetInstalled, m_windowWidth
构造器和说明 |
---|
CmsReplaceDialog(CmsReplaceHandler handler)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel> handler) |
protected void |
cancelReplace()
Cancels the replace process.
|
protected void |
cancelUpdateProgress()
Cancels the upload progress timer.
|
java.lang.Runnable |
getFinishAction()
Returns the action which should be executed when the upload dialog is finished.
|
protected java.lang.String |
getResourceType(CmsFileInfo file)
Returns the resource type name for a given filename.
|
protected I_CmsUploadServiceAsync |
getUploadService()
Returns the upload service instance.
|
protected java.lang.String |
getUploadUri()
Returns the upload JSP uri.
|
void |
hide()
Hides the widget.
|
protected void |
initContent(CmsReplaceInfo replaceInfo)
Initializes the dialog content with the replace information.
|
protected void |
initContent(CmsUUID structureId)
Initializes the dialog content.
|
void |
parseResponse(java.lang.String results)
Parses the upload response of the server and decides what to do.
|
protected void |
setFileInput(CmsFileInput fileInput)
Sets the file input.
|
void |
setFinishAction(java.lang.Runnable action)
Sets an action that should be executed if the upload dialog is finished.
|
void |
showErrorReport(java.lang.String message,
java.lang.String stacktrace)
Shows the error report.
|
protected void |
updateProgress()
Retrieves the progress information from the server.
|
protected void |
updateProgressBar(CmsUploadProgessInfo info)
Updates the progress bar.
|
protected void |
uploadFile()
Uploads the selected file.
|
add, add, addButton, addButton, addDialogClose, adjustIndex, beginDragging, catchNotifications, center, centerHorizontally, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, clear, continueDragging, createDialogNotificationWidget, doAttachChildren, doDetachChildren, endDragging, getAvailableHeight, getCaption, getChildren, getContainerElement, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, getWidth, hasCaption, insert, insert, insertFront, installNotificationWidget, iterator, onBrowserEvent, onDetach, onPreviewNativeEvent, remove, remove, removeAllButtons, removeButton, removePadding, setBackgroundColor, setCaption, setHeight, setHeight, setMainContent, setPixelSize, setPositionFixed, setSize, setSpecialBackgroundClass, setUseAnimation, setWidget, setWidth, setWidth, show, showArrow, wrapWithBorderPadding
addAutoHidePartner, addPopupListener, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, hide, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, showRelativeTo
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, toString, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAutoHidePartner, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, removeAutoHidePartner, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled
protected CmsReplaceContentWidget m_mainPanel
public CmsReplaceDialog(CmsReplaceHandler handler)
handler
- the dialog handlerpublic com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel> handler)
addCloseHandler
在接口中 com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>
addCloseHandler
在类中 com.google.gwt.user.client.ui.PopupPanel
PopupPanel.addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler)
public java.lang.Runnable getFinishAction()
public void hide()
I_CmsAutoHider
hide
在接口中 I_CmsAutoHider
hide
在类中 CmsPopup
CmsPopup.hide()
public void parseResponse(java.lang.String results)
parseResponse
在接口中 I_CmsUploadDialog
results
- a JSON Objectpublic void setFinishAction(java.lang.Runnable action)
action
- the action to execute when finishedpublic void showErrorReport(java.lang.String message, java.lang.String stacktrace)
showErrorReport
在接口中 I_CmsUploadDialog
message
- the message to showstacktrace
- the stacktrace to showprotected void cancelReplace()
protected void cancelUpdateProgress()
protected java.lang.String getResourceType(CmsFileInfo file)
file
- the file infoprotected I_CmsUploadServiceAsync getUploadService()
protected java.lang.String getUploadUri()
protected void initContent(CmsReplaceInfo replaceInfo)
replaceInfo
- the replace informationprotected void initContent(CmsUUID structureId)
structureId
- the structure id of the file to replaceprotected void setFileInput(CmsFileInput fileInput)
fileInput
- the file inputprotected void updateProgress()
protected void updateProgressBar(CmsUploadProgessInfo info)
info
- the progress infoprotected void uploadFile()