Package org.opencms.ade.upload.client.ui
Class CmsUploadDialogFormDataImpl
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Panel
-
- com.google.gwt.user.client.ui.SimplePanel
-
- com.google.gwt.user.client.ui.PopupPanel
-
- org.opencms.gwt.client.ui.CmsPopup
-
- org.opencms.ade.upload.client.ui.A_CmsUploadDialog
-
- org.opencms.ade.upload.client.ui.CmsUploadDialogFormDataImpl
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.logical.shared.HasCloseHandlers<com.google.gwt.user.client.ui.PopupPanel>
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.EventPreview
,com.google.gwt.user.client.ui.AcceptsOneWidget
,com.google.gwt.user.client.ui.HasAnimation
,com.google.gwt.user.client.ui.HasOneWidget
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.HasWidgets
,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
,com.google.gwt.user.client.ui.IsWidget
,com.google.gwt.user.client.ui.SourcesPopupEvents
,java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
,I_CmsAutoHider
,I_CmsUploadDialog
- Direct Known Subclasses:
CmsUploadDialogFileApiImpl
public class CmsUploadDialogFormDataImpl extends A_CmsUploadDialog
Provides the upload dialog for form data support.- Since:
- 8.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opencms.gwt.client.ui.CmsPopup
CmsPopup.HistoryHandler
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.PopupPanel
com.google.gwt.user.client.ui.PopupPanel.AnimationType, com.google.gwt.user.client.ui.PopupPanel.PositionCallback
-
-
Field Summary
-
Fields inherited from class org.opencms.ade.upload.client.ui.A_CmsUploadDialog
m_context, m_dragAndDropMessage, m_scrollPanel, m_uploadedFiles
-
Fields inherited from class org.opencms.gwt.client.ui.CmsPopup
DEFAULT_WIDTH, m_closeCommand, m_notificationWidgetInstalled, m_windowWidth, WIDE_WIDTH
-
-
Constructor Summary
Constructors Constructor Description CmsUploadDialogFormDataImpl()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addJsFiles(com.google.gwt.core.client.JavaScriptObject files)
Adds a javascript file array to the list of files to upload.protected long
calculateContentLength()
Returns the content length.org.opencms.gwt.shared.CmsListInfoBean
createInfoBean(CmsFileInfo file)
Creates a bean that can be used for the list item widget.java.lang.String
getFileSizeTooLargeMessage(CmsFileInfo file)
Returns the massage for too large files.boolean
isTooLarge(CmsFileInfo cmsFileInfo)
Returnstrue
if the file is too large,false
otherwise.protected void
removeDragAndDropMessage()
Removes the drag and drop message.protected void
setDragAndDropMessage()
Displays the 'use drag and drop' / 'no drag and drop available' message.void
updateSummary()
Updates the file summary.-
Methods inherited from class org.opencms.ade.upload.client.ui.A_CmsUploadDialog
addCloseHandler, addFileInput, addFiles, cancelUpdateProgress, cancelUpload, createLoadingAnimation, disableOKButton, doResize, enableOKButton, getContentLength, getContentWrapper, getFilesToUnzip, getFilesToUpload, getFileText, getPostCreateHandler, getResourceType, getTargetFolder, getUploadService, getUploadUri, insertUploadForm, loadAndShow, onOkClick, onResize, parseResponse, proceedWorkflow, setContentLength, setContentWrapperHeight, setContext, setIsTargetRootPath, setPostCreateHandler, setSummaryHTML, setTargetFolder, showErrorReport, submit, updateHandler, updateProgress, updateProgressBar
-
Methods inherited from class org.opencms.gwt.client.ui.CmsPopup
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, hide, hide, 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
-
Methods inherited from class com.google.gwt.user.client.ui.PopupPanel
addAutoHidePartner, addPopupListener, getAnimationType, getGlassElement, getGlassStyleName, getOffsetHeight, getOffsetWidth, getPopupLeft, getPopupTop, getStyleElement, getTitle, isAnimationEnabled, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, isGlassEnabled, isModal, isPreviewingAllNativeEvents, isShowing, isVisible, onEventPreview, onKeyDownPreview, onKeyPressPreview, onKeyUpPreview, onUnload, removeAutoHidePartner, removePopupListener, setAnimationEnabled, setAnimationType, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled, setGlassEnabled, setGlassStyleName, setModal, setPopupPosition, setPopupPositionAndShow, setPreviewingAllNativeEvents, setTitle, setVisible, showRelativeTo
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opencms.gwt.client.ui.I_CmsAutoHider
addAutoHidePartner, isAutoHideEnabled, isAutoHideOnHistoryEventsEnabled, removeAutoHidePartner, setAutoHideEnabled, setAutoHideOnHistoryEventsEnabled
-
-
-
-
Constructor Detail
-
CmsUploadDialogFormDataImpl
public CmsUploadDialogFormDataImpl()
Default constructor.
-
-
Method Detail
-
createInfoBean
public org.opencms.gwt.shared.CmsListInfoBean createInfoBean(CmsFileInfo file)
Description copied from class:A_CmsUploadDialog
Creates a bean that can be used for the list item widget.- Specified by:
createInfoBean
in classA_CmsUploadDialog
- Parameters:
file
- the info to create the bean for- Returns:
- a list info bean
- See Also:
A_CmsUploadDialog.createInfoBean(org.opencms.gwt.client.ui.input.upload.CmsFileInfo)
-
getFileSizeTooLargeMessage
public java.lang.String getFileSizeTooLargeMessage(CmsFileInfo file)
Description copied from class:A_CmsUploadDialog
Returns the massage for too large files.- Specified by:
getFileSizeTooLargeMessage
in classA_CmsUploadDialog
- Parameters:
file
- the file- Returns:
- the message
- See Also:
A_CmsUploadDialog.getFileSizeTooLargeMessage(org.opencms.gwt.client.ui.input.upload.CmsFileInfo)
-
isTooLarge
public boolean isTooLarge(CmsFileInfo cmsFileInfo)
Description copied from class:A_CmsUploadDialog
Returnstrue
if the file is too large,false
otherwise.- Specified by:
isTooLarge
in classA_CmsUploadDialog
- Parameters:
cmsFileInfo
- the file to check- Returns:
true
if the file is too large,false
otherwise- See Also:
A_CmsUploadDialog.isTooLarge(org.opencms.gwt.client.ui.input.upload.CmsFileInfo)
-
updateSummary
public void updateSummary()
Description copied from class:A_CmsUploadDialog
Updates the file summary.- Specified by:
updateSummary
in classA_CmsUploadDialog
- See Also:
A_CmsUploadDialog.updateSummary()
-
addJsFiles
protected void addJsFiles(com.google.gwt.core.client.JavaScriptObject files)
Adds a javascript file array to the list of files to upload.- Parameters:
files
- a javascript file array
-
calculateContentLength
protected long calculateContentLength()
Returns the content length.- Returns:
- the content length
-
removeDragAndDropMessage
protected void removeDragAndDropMessage()
Description copied from class:A_CmsUploadDialog
Removes the drag and drop message.- Overrides:
removeDragAndDropMessage
in classA_CmsUploadDialog
- See Also:
A_CmsUploadDialog.removeDragAndDropMessage()
-
setDragAndDropMessage
protected void setDragAndDropMessage()
Description copied from class:A_CmsUploadDialog
Displays the 'use drag and drop' / 'no drag and drop available' message.- Overrides:
setDragAndDropMessage
in classA_CmsUploadDialog
- See Also:
A_CmsUploadDialog.setDragAndDropMessage()
-
-