public class CmsUserEditRoleDialog extends A_CmsEditUserGroupRoleDialog
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.DetachListenerm_app, m_cms, m_principal| Constructor and Description |
|---|
CmsUserEditRoleDialog(CmsObject cms,
CmsUUID userId,
com.vaadin.ui.Window window,
CmsAccountsApp app)
public constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(java.util.Set<java.lang.String> data)
Adds given items.
|
java.lang.String |
getAddActionCaption()
Caption for the add action.
|
java.lang.String |
getAddCaptionText()
Caption for the list with items to add.
|
com.vaadin.v7.data.util.IndexedContainer |
getAvailableItemsIndexedContainer(java.lang.String caption,
java.lang.String icon)
Gets container with items which are available but not set.
|
com.vaadin.ui.Button |
getCloseButton()
Gets the close button to close the window.
|
java.lang.String |
getCurrentTableCaption()
Gets the caption for the table with the currently set elements for the user.
|
java.lang.String |
getDescriptionForItemId(java.lang.Object itemId)
Gets the description for the item.
|
java.lang.String |
getEmptyMessage()
Gets the empty message.
|
java.lang.String |
getFurtherColumnId()
Further ID for a column.
|
com.vaadin.v7.ui.HorizontalLayout |
getHLayout()
Gets the horizontal layout holding the tables.
|
java.lang.String |
getItemName()
Get name of the items.
|
com.vaadin.v7.data.util.IndexedContainer |
getItemsOfUserIndexedContainer(java.lang.String propName,
java.lang.String propIcon,
java.lang.String propStatus)
Gets container for items which are set for the user.
|
com.vaadin.v7.ui.VerticalLayout |
getLeftTableLayout()
Gets layout for the table with items which are set to the user.
|
com.vaadin.v7.ui.VerticalLayout |
getParentLayout()
Gets the parent layout.
|
com.vaadin.v7.ui.VerticalLayout |
getRightTableLayout()
Gets layout for the table with available item.
|
java.util.Set<java.lang.String> |
getStringSetValue(java.util.Set<java.lang.Object> value)
Get string values from given set of item-object.
|
java.lang.String |
getWindowCaptionMessageKey()
Gets the window caption message key.
|
void |
removeItem(java.util.Set<java.lang.String> items)
Remove items represented as strings (see getStringSetValue()).
|
initaddButton, 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 CmsUserEditRoleDialog(CmsObject cms, CmsUUID userId, com.vaadin.ui.Window window, CmsAccountsApp app)
cms - CmsObjectuserId - id of userwindow - windowapp - public void addItem(java.util.Set<java.lang.String> data)
A_CmsEditUserGroupRoleDialogaddItem in class A_CmsEditUserGroupRoleDialogdata - data containing information about item to add (see getStringSetValue())A_CmsEditUserGroupRoleDialog.addItem(java.util.Set)public java.lang.String getAddActionCaption()
A_CmsEditUserGroupRoleDialoggetAddActionCaption in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getAddActionCaption()public java.lang.String getAddCaptionText()
A_CmsEditUserGroupRoleDialoggetAddCaptionText in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getAddCaptionText()public com.vaadin.v7.data.util.IndexedContainer getAvailableItemsIndexedContainer(java.lang.String caption, java.lang.String icon)
A_CmsEditUserGroupRoleDialoggetAvailableItemsIndexedContainer in class A_CmsEditUserGroupRoleDialogcaption - caption propertyicon - icon propertyA_CmsEditUserGroupRoleDialog.getAvailableItemsIndexedContainer(java.lang.String, java.lang.String)public com.vaadin.ui.Button getCloseButton()
A_CmsEditUserGroupRoleDialoggetCloseButton in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getCloseButton()public java.lang.String getCurrentTableCaption()
A_CmsEditUserGroupRoleDialoggetCurrentTableCaption in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getCurrentTableCaption()public java.lang.String getDescriptionForItemId(java.lang.Object itemId)
A_CmsEditUserGroupRoleDialoggetDescriptionForItemId in class A_CmsEditUserGroupRoleDialogitemId - to get description forA_CmsEditUserGroupRoleDialog.getDescriptionForItemId(java.lang.Object)public java.lang.String getEmptyMessage()
A_CmsEditUserGroupRoleDialoggetEmptyMessage in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getEmptyMessage()public java.lang.String getFurtherColumnId()
A_CmsEditUserGroupRoleDialoggetFurtherColumnId in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getFurtherColumnId()public com.vaadin.v7.ui.HorizontalLayout getHLayout()
A_CmsEditUserGroupRoleDialoggetHLayout in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getHLayout()public java.lang.String getItemName()
A_CmsEditUserGroupRoleDialoggetItemName in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getItemName()public com.vaadin.v7.data.util.IndexedContainer getItemsOfUserIndexedContainer(java.lang.String propName, java.lang.String propIcon, java.lang.String propStatus)
A_CmsEditUserGroupRoleDialoggetItemsOfUserIndexedContainer in class A_CmsEditUserGroupRoleDialogpropName - caption propertypropIcon - icon propertypropStatus - status propertyA_CmsEditUserGroupRoleDialog.getItemsOfUserIndexedContainer(java.lang.String, java.lang.String, java.lang.String)public com.vaadin.v7.ui.VerticalLayout getLeftTableLayout()
A_CmsEditUserGroupRoleDialoggetLeftTableLayout in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getLeftTableLayout()public com.vaadin.v7.ui.VerticalLayout getParentLayout()
A_CmsEditUserGroupRoleDialoggetParentLayout in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getParentLayout()public com.vaadin.v7.ui.VerticalLayout getRightTableLayout()
A_CmsEditUserGroupRoleDialoggetRightTableLayout in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getRightTableLayout()public java.util.Set<java.lang.String> getStringSetValue(java.util.Set<java.lang.Object> value)
A_CmsEditUserGroupRoleDialoggetStringSetValue in class A_CmsEditUserGroupRoleDialogvalue - set of items to create string set fromA_CmsEditUserGroupRoleDialog.getStringSetValue(java.util.Set)public java.lang.String getWindowCaptionMessageKey()
A_CmsEditUserGroupRoleDialoggetWindowCaptionMessageKey in class A_CmsEditUserGroupRoleDialogA_CmsEditUserGroupRoleDialog.getWindowCaptionMessageKey()public void removeItem(java.util.Set<java.lang.String> items)
A_CmsEditUserGroupRoleDialogremoveItem in class A_CmsEditUserGroupRoleDialogitems - to be removedA_CmsEditUserGroupRoleDialog.removeItem(java.util.Set)