public class CmsNewDialog extends CmsBasicDialog
CmsBasicDialog.DialogWidth
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler
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
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
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
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 com.vaadin.ui.Button |
m_cancelButton
The cancel button.
|
protected CmsResource |
m_createdResource
The created resource.
|
protected CmsElementView |
m_currentView
The current view id.
|
protected com.vaadin.ui.CheckBox |
m_defaultLocationCheckbox
Check box for enabling / disabling default creation folders.
|
protected I_CmsDialogContext |
m_dialogContext
The dialog context.
|
protected CmsResource |
m_folderResource
The current folder.
|
protected CmsResourceTypeBean |
m_selectedType
The selected type.
|
protected com.vaadin.ui.VerticalLayout |
m_typeContainer
Container for the type list.
|
protected CmsAddDialogTypeHelper |
m_typeHelper
The type helper.
|
protected com.vaadin.ui.ComboBox |
m_viewSelector
Element view selector.
|
static java.lang.String |
SETTING_STANDARD_VIEW
Setting name for the standard view.
|
static CmsElementView |
VIEW_ALL
The 'All' pseudo-view.
|
Constructor and Description |
---|
CmsNewDialog(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.
|
protected java.lang.String |
getActionIconHtml()
Gets the HTML for the action buttons the type info boxes.
|
protected java.lang.String |
getLabelClass()
Returns the class for the button label.
|
protected java.lang.String |
getSubtitle(CmsResourceTypeBean type,
boolean useDefault)
Gets the subtitle for the type info widget.
|
protected 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.
|
addButton, addButton, createButtonCancel, createButtonOK, createResourceListPanel, displayResourceInfo, getInfoResources, initActionHandler, prepareWindow, prepareWindow, readDesign, setAbove, setActionHandler, setBelow, setContent
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, getState, isSpacing, iterator, removeComponent, removeLayoutClickListener, removeListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesign
addComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidth
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefined
addAttachListener, 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
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addComponents, addListener, addListener, getComponentIterator, moveComponentsFrom, removeAllComponents, removeListener, removeListener
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public 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 com.vaadin.ui.Button m_cancelButton
protected CmsResource m_createdResource
protected CmsElementView m_currentView
protected com.vaadin.ui.CheckBox m_defaultLocationCheckbox
protected I_CmsDialogContext m_dialogContext
protected CmsResource m_folderResource
protected CmsResourceTypeBean m_selectedType
protected com.vaadin.ui.VerticalLayout m_typeContainer
protected CmsAddDialogTypeHelper m_typeHelper
protected com.vaadin.ui.ComboBox m_viewSelector
public CmsNewDialog(CmsResource folderResource, I_CmsDialogContext context)
folderResource
- the folder resourcecontext
- the contextpublic void finish(java.util.List<CmsUUID> ids)
ids
- the idspublic void init(CmsElementView view, boolean useDefault)
view
- the element viewuseDefault
- true if we should use the default location for resource creationprotected CmsAddDialogTypeHelper createTypeHelper()
protected java.lang.String getActionIconHtml()
protected java.lang.String getLabelClass()
protected java.lang.String getSubtitle(CmsResourceTypeBean type, boolean useDefault)
type
- the typeuseDefault
- true if we are in 'use default' modeprotected void handleSelection(CmsResourceTypeBean selectedType)
selectedType
- the selected type