public abstract class A_CmsSelectResourceTypeDialog extends CmsBasicDialog
CmsBasicDialog.DialogWidthcom.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Modifier and Type | Field and Description |
|---|---|
static java.lang.Boolean |
DEFAULT_LOCATION_DEFAULT
Default value for the 'default location' check box.
|
static CmsUUID |
ID_VIEW_ALL
Id for the 'All' pseudo-view.
|
protected CmsResource |
m_createdResource
The created resource.
|
protected CmsElementView |
m_currentView
The current view id.
|
protected I_CmsDialogContext |
m_dialogContext
The dialog context.
|
protected CmsResource |
m_folderResource
The current folder.
|
protected CmsResourceTypeBean |
m_selectedType
The selected type.
|
protected CmsAddDialogTypeHelper |
m_typeHelper
The type helper.
|
static java.lang.String |
SETTING_STANDARD_VIEW
Setting name for the standard view.
|
static CmsElementView |
VIEW_ALL
The 'All' pseudo-view.
|
| Constructor and Description |
|---|
A_CmsSelectResourceTypeDialog(CmsResource folderResource,
I_CmsDialogContext context)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected CmsAddDialogTypeHelper |
createTypeHelper()
Creates type helper which is responsible for generating the type list.
|
void |
finish(java.util.List<CmsUUID> ids)
Notifies the context that the given ids have changed.
|
abstract com.vaadin.ui.Button |
getCancelButton() |
protected java.lang.String |
getSubtitle(CmsResourceTypeBean type,
boolean useDefault)
Gets the subtitle for the type info widget.
|
CmsResourceInfo |
getTypeInfoLayout() |
abstract com.vaadin.v7.ui.VerticalLayout |
getVerticalLayout() |
abstract com.vaadin.v7.ui.ComboBox |
getViewSelector() |
abstract void |
handleSelection(CmsResourceTypeBean selectedType)
Handles selection of a type.
|
void |
init(CmsElementView view,
boolean useDefault)
Initializes and displays the type list for the given view.
|
void |
setSelectedRunnable(java.lang.Runnable run) |
abstract boolean |
useDefault() |
addButton, addButton, createButtonCancel, createButtonClose, createButtonOK, createResourceListPanel, createResourceListPanelDirectly, displayResourceInfo, displayResourceInfo, displayResourceInfoDirectly, enableMaxHeight, getInfoResources, initActionHandler, prepareWindow, prepareWindow, readDesign, setAbove, setActionHandler, setBelow, setContent, setContentMinHeight, setContentVisibility, setWindowMinFullHeightaddComponentsAndExpand, getState, getStateaddComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, removeComponent, removeLayoutClickListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesignaddComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthaddContextClickListener, 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, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, 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, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddComponents, getComponentIterator, moveComponentsFrom, removeAllComponentsaddListener, 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, setVisibleaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic static final java.lang.Boolean DEFAULT_LOCATION_DEFAULT
public static final CmsUUID ID_VIEW_ALL
public static final java.lang.String SETTING_STANDARD_VIEW
public static final CmsElementView VIEW_ALL
protected CmsResource m_createdResource
protected CmsElementView m_currentView
protected I_CmsDialogContext m_dialogContext
protected CmsResource m_folderResource
protected CmsResourceTypeBean m_selectedType
protected CmsAddDialogTypeHelper m_typeHelper
public A_CmsSelectResourceTypeDialog(CmsResource folderResource, I_CmsDialogContext context)
folderResource - the folder resourcecontext - the contextpublic void finish(java.util.List<CmsUUID> ids)
ids - the idspublic abstract com.vaadin.ui.Button getCancelButton()
public CmsResourceInfo getTypeInfoLayout()
public abstract com.vaadin.v7.ui.VerticalLayout getVerticalLayout()
public abstract com.vaadin.v7.ui.ComboBox getViewSelector()
public abstract void handleSelection(CmsResourceTypeBean selectedType)
selectedType - the selected typepublic void init(CmsElementView view, boolean useDefault)
view - the element viewuseDefault - true if we should use the default location for resource creationpublic void setSelectedRunnable(java.lang.Runnable run)
public abstract boolean useDefault()
protected CmsAddDialogTypeHelper createTypeHelper()
protected java.lang.String getSubtitle(CmsResourceTypeBean type, boolean useDefault)
type - the typeuseDefault - true if we are in 'use default' mode