Package org.opencms.ui.apps.dbmanager
Class A_CmsImportForm
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- com.vaadin.ui.AbstractComponentContainer
-
- com.vaadin.ui.AbstractLayout
-
- com.vaadin.ui.AbstractOrderedLayout
-
- com.vaadin.ui.VerticalLayout
-
- com.vaadin.v7.ui.VerticalLayout
-
- org.opencms.ui.apps.dbmanager.A_CmsImportForm
-
- 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
,com.vaadin.ui.Layout.AlignmentHandler
,com.vaadin.ui.Layout.MarginHandler
,com.vaadin.ui.Layout.SpacingHandler
,java.io.Serializable
,java.lang.Iterable<com.vaadin.ui.Component>
- Direct Known Subclasses:
A_CmsHTTPImportForm
,A_CmsServerImportForm
public abstract class A_CmsImportForm extends com.vaadin.v7.ui.VerticalLayout
Abstract class for a form to import a file.- 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 I_CmsReportApp
m_app
App which uses the form.protected CmsImportFile
m_importFile
Import file object.
-
Constructor Summary
Constructors Constructor Description A_CmsImportForm(I_CmsReportApp app)
public constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract com.vaadin.ui.Button
getCancelButton()
Gets a button for a cancel function.protected CmsObject
getCmsObject()
Returns a cms object set to the site corresponding to siteselector.protected abstract com.vaadin.ui.Button
getOkButton()
Gets a button for a ok function.protected abstract com.vaadin.v7.ui.ComboBox
getProjectSelector()
Gets a combobox used for the site selector.protected abstract java.lang.String
getReportPath()
Get the path (state) for the app to show the report for the import thread.protected abstract com.vaadin.v7.ui.ComboBox
getSiteSelector()
Gets a combobox used for the site selector.protected abstract A_CmsReportThread
getThread()
Gets the thread which gets started by clicking the ok button.protected abstract java.lang.String
getTitle()
Gets the title of the report to show.protected java.lang.String
processFileName(java.lang.String name)
Processes a filename.protected void
validateModuleFile()
Validates a file for module import.-
Methods inherited from class com.vaadin.ui.VerticalLayout
addComponentsAndExpand, getState, getState
-
Methods inherited from class com.vaadin.ui.AbstractOrderedLayout
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, 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, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, 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, beforeClientResponse, 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 I_CmsReportApp m_app
App which uses the form.
-
m_importFile
protected CmsImportFile m_importFile
Import file object.
-
-
Constructor Detail
-
A_CmsImportForm
public A_CmsImportForm(I_CmsReportApp app)
public constructor.- Parameters:
app
- calling instance of app
-
-
Method Detail
-
getCancelButton
protected abstract com.vaadin.ui.Button getCancelButton()
Gets a button for a cancel function.- Returns:
- a vaadin button
-
getCmsObject
protected CmsObject getCmsObject()
Returns a cms object set to the site corresponding to siteselector.- Returns:
- a cms object
-
getOkButton
protected abstract com.vaadin.ui.Button getOkButton()
Gets a button for a ok function.- Returns:
- a vaadin button
-
getProjectSelector
protected abstract com.vaadin.v7.ui.ComboBox getProjectSelector()
Gets a combobox used for the site selector.- Returns:
- a vaadin combobox
-
getReportPath
protected abstract java.lang.String getReportPath()
Get the path (state) for the app to show the report for the import thread.- Returns:
- path to be called for showing report of thread
-
getSiteSelector
protected abstract com.vaadin.v7.ui.ComboBox getSiteSelector()
Gets a combobox used for the site selector.- Returns:
- a vaadin combobox
-
getThread
protected abstract A_CmsReportThread getThread()
Gets the thread which gets started by clicking the ok button.- Returns:
- a thread
-
getTitle
protected abstract java.lang.String getTitle()
Gets the title of the report to show.- Returns:
- title name
-
processFileName
protected java.lang.String processFileName(java.lang.String name)
Processes a filename.- Parameters:
name
- to be processed- Returns:
- a valid file name
-
validateModuleFile
protected void validateModuleFile()
Validates a file for module import.
-
-