Package org.opencms.ui.apps.modules
Class A_CmsModuleImportForm
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- com.vaadin.ui.AbstractComponentContainer
-
- com.vaadin.ui.AbstractLayout
-
- com.vaadin.ui.CssLayout
-
- org.opencms.ui.apps.modules.A_CmsModuleImportForm
-
- All Implemented Interfaces:
com.vaadin.event.ContextClickEvent.ContextClickNotifier
,com.vaadin.event.LayoutEvents.LayoutClickNotifier
,com.vaadin.event.MethodEventSource
,com.vaadin.server.ClientConnector
,com.vaadin.server.Sizeable
,com.vaadin.shared.Connector
,com.vaadin.ui.Component
,com.vaadin.ui.ComponentContainer
,com.vaadin.ui.HasComponents
,com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
,com.vaadin.ui.Layout
,java.io.Serializable
,java.lang.Iterable<com.vaadin.ui.Component>
- Direct Known Subclasses:
CmsModuleImportForm
,CmsServerModuleImportForm
public abstract class A_CmsModuleImportForm extends com.vaadin.ui.CssLayout
Abstract superclass for the module import forms.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
-
-
Field Summary
Fields Modifier and Type Field Description protected CmsModuleApp
m_app
The module manager app instance.protected CmsModuleImportFile
m_importFile
A bean representing the module zip file to be imported.
-
Constructor Summary
Constructors Constructor Description A_CmsModuleImportForm(CmsModuleApp app, com.vaadin.v7.ui.VerticalLayout start, com.vaadin.v7.ui.VerticalLayout report, java.lang.Runnable run)
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<com.vaadin.ui.Button>
getButtons()
Gets the list of buttons for the form.protected abstract com.vaadin.ui.Button
getCancelButton()
Gets the cancel button.protected abstract com.vaadin.ui.Button
getOkButton()
Gets the OK button.protected abstract CmsAutoItemCreatingComboBox
getSiteSelector()
Returns the site selector for the module import.protected java.lang.String
processFileName(java.lang.String name)
Takes the file name given in the upload and processes it to return the file name under which the upload should be stored in the file system.protected void
validateModuleFile()
Validates the module file to be imported.-
Methods inherited from class com.vaadin.ui.CssLayout
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, writeDesign
-
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
-
Methods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible
-
Methods inherited from interface com.vaadin.ui.ComponentContainer
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponents
-
-
-
-
Field Detail
-
m_app
protected CmsModuleApp m_app
The module manager app instance.
-
m_importFile
protected CmsModuleImportFile m_importFile
A bean representing the module zip file to be imported.
-
-
Constructor Detail
-
A_CmsModuleImportForm
public A_CmsModuleImportForm(CmsModuleApp app, com.vaadin.v7.ui.VerticalLayout start, com.vaadin.v7.ui.VerticalLayout report, java.lang.Runnable run)
Constructor.- Parameters:
app
- the app instance for which this form is opened
-
-
Method Detail
-
getButtons
public java.util.List<com.vaadin.ui.Button> getButtons()
Gets the list of buttons for the form.- Returns:
- the buttons
-
getCancelButton
protected abstract com.vaadin.ui.Button getCancelButton()
Gets the cancel button.- Returns:
- the cancel button
-
getOkButton
protected abstract com.vaadin.ui.Button getOkButton()
Gets the OK button.- Returns:
- the OK button
-
getSiteSelector
protected abstract CmsAutoItemCreatingComboBox getSiteSelector()
Returns the site selector for the module import.- Returns:
- the site selector
-
processFileName
protected java.lang.String processFileName(java.lang.String name)
Takes the file name given in the upload and processes it to return the file name under which the upload should be stored in the file system.- Parameters:
name
- the upload file name- Returns:
- the RFS file name
-
validateModuleFile
protected void validateModuleFile()
Validates the module file to be imported.
-
-