public class CmsGitToolOptionsPanel extends com.vaadin.v7.ui.VerticalLayout
com.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 |
ADDINFO_EMAIL
Additional info key for the email address.
|
static java.lang.String |
ADDINFO_MESSAGE
Additional info key for the commit message.
|
static java.lang.String |
ADDINFO_USER
Additional info key for the user name.
|
protected boolean |
m_advancedVisible
True when advanced options are currently visible.
|
| Constructor and Description |
|---|
CmsGitToolOptionsPanel(CmsGitCheckin checkinBean)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.ui.Window |
addAsWindow(com.vaadin.ui.Component component)
Opens a modal window with the given component as content.
|
void |
addSelectableModule(java.lang.String moduleName)
Adds a check box and info widget for a module which should be selectable for check-in.
|
void |
enableCheckboxesForNotInstalledModules(boolean enable)
Enables/disables checkboxes for listed modules which are not installed.
|
java.util.Collection<java.lang.String> |
getSelectedModules()
Gets the modules which are selected for check-in.
|
void |
runAction(org.opencms.ui.apps.git.CmsGitToolOptionsPanel.ActionType action)
Executes one of the dialog actions.
|
void |
setActionFlags()
Sets the flags for the current action.
|
void |
setAdvancedVisible(boolean visible)
Changes visibility of the advanced options.
|
void |
setTab(org.opencms.ui.apps.git.CmsGitToolOptionsPanel.DialogTab dialogTab)
Called when the active tab is switched.
|
protected void |
updateForNewConfiguration(CmsGitConfiguration gitConfig)
Updates the options panel for a special configuration.
|
void |
updateNewModuleSelector()
Updates the selection widget for adding new modules.
|
addComponentsAndExpand, getState, getStateaddComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, readDesign, 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 ADDINFO_EMAIL
public static final java.lang.String ADDINFO_MESSAGE
public static final java.lang.String ADDINFO_USER
protected boolean m_advancedVisible
public CmsGitToolOptionsPanel(CmsGitCheckin checkinBean)
checkinBean - the bean to be used for the check-in operation.public com.vaadin.ui.Window addAsWindow(com.vaadin.ui.Component component)
component - the window contentpublic void addSelectableModule(java.lang.String moduleName)
moduleName - the name of the modulepublic void enableCheckboxesForNotInstalledModules(boolean enable)
enable - true if the checkboxes for modules which are not installed should be enabled, false if they should be disabledpublic java.util.Collection<java.lang.String> getSelectedModules()
public void runAction(org.opencms.ui.apps.git.CmsGitToolOptionsPanel.ActionType action)
action - the action to performpublic void setActionFlags()
public void setAdvancedVisible(boolean visible)
visible - true if the options should be shownpublic void setTab(org.opencms.ui.apps.git.CmsGitToolOptionsPanel.DialogTab dialogTab)
dialogTab - the dialog tab to which the user has switchedpublic void updateNewModuleSelector()
protected void updateForNewConfiguration(CmsGitConfiguration gitConfig)
gitConfig - the git configuration.