public class CmsEditModuleForm 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.String |
COMPLEX_ROW
CSS class.
|
static java.lang.String |
CONFIG_FILE |
static java.lang.String |
ID_EMPTY_SITE
Dummy site root used to identify the 'none' select option in the module site selector.
|
static java.lang.String |
PATH_CLASSES
Classes folder within the module.
|
static java.lang.String |
PATH_ELEMENTS
Elements folder within the module.
|
static java.lang.String |
PATH_FORMATTERS
The formatters folder within the module.
|
static java.lang.String |
PATH_LIB
Lib folder within the module.
|
static java.lang.String |
PATH_RESOURCES
Resources folder within the module.
|
static java.lang.String |
PATH_SCHEMAS
Schemas folder within the module.
|
static java.lang.String |
PATH_TEMPLATES
Template folder within the module.
|
| Constructor and Description |
|---|
CmsEditModuleForm(CmsModule module,
boolean newModule,
java.lang.Runnable updateCallback)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDependencyRow(CmsModuleDependency dep)
Adds another entry to the list of module dependencies in the dependencies tab.
|
void |
addExportPointRow(java.lang.String src,
java.lang.String target)
Adds another entry to the list of export points in the export point tab.
|
static com.vaadin.v7.data.util.IndexedContainer |
getModuleSiteContainer(CmsObject cms,
java.lang.String captionPropertyName,
java.lang.String prevValue)
Builds the container used for the module site selector.
|
void |
updateModule()
Writes the form data back to the module.
|
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.String COMPLEX_ROW
public static final java.lang.String ID_EMPTY_SITE
public static final java.lang.String PATH_CLASSES
public static final java.lang.String PATH_ELEMENTS
public static final java.lang.String PATH_FORMATTERS
public static final java.lang.String PATH_LIB
public static final java.lang.String PATH_RESOURCES
public static final java.lang.String PATH_SCHEMAS
public static final java.lang.String PATH_TEMPLATES
public static final java.lang.String CONFIG_FILE
public CmsEditModuleForm(CmsModule module, boolean newModule, java.lang.Runnable updateCallback)
module - the module to editnewModule - true if the module is a new one, false for editing an existing moduleupdateCallback - the update callbackpublic static com.vaadin.v7.data.util.IndexedContainer getModuleSiteContainer(CmsObject cms, java.lang.String captionPropertyName, java.lang.String prevValue)
cms - the CMS contextcaptionPropertyName - the name of the property used to store captionsprevValue - the value previously set in the modulepublic void addDependencyRow(CmsModuleDependency dep)
dep - the module dependency for which a new row should be addedpublic void addExportPointRow(java.lang.String src, java.lang.String target)
src - the export point sourcetarget - the export point targetpublic void updateModule()