public class AccessControlField extends com.vaadin.ui.CustomField<AccessControlList.Entry>
Support for the access type, as well as chooser pluggability are optional (these only apply to workspace ACLs, not URI ACLs).
Modifier and Type | Class and Description |
---|---|
static interface |
AccessControlField.PathChooserHandler
A hook to the path field for the current entry, in order to choose and update its path.
|
com.vaadin.ui.AbstractField.FocusShortcut, com.vaadin.ui.AbstractField.ReadOnlyStatusChangeEvent
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
com.vaadin.server.Sizeable.Unit
com.vaadin.ui.Field.ValueChangeEvent
com.vaadin.data.Buffered.SourceException
com.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.Transactional<T>, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewer
Constructor and Description |
---|
AccessControlField(Map<Long,String> permissions)
Creates an AccessControlField with a permission select and a path text-field.
|
AccessControlField(Map<Long,String> permissions,
Map<Long,String> accessTypes)
Creates an AccessControlField with a permission type select, access-type select and a path text-field.
|
Modifier and Type | Method and Description |
---|---|
String |
getChooseButtonCaption() |
AccessControlField.PathChooserHandler |
getPathChooserHandler() |
Class<? extends AccessControlList.Entry> |
getType() |
protected com.vaadin.ui.Component |
initContent() |
void |
setChooseButtonCaption(String chooseButtonCaption) |
protected void |
setInternalValue(AccessControlList.Entry newValue) |
void |
setPathChooserHandler(AccessControlField.PathChooserHandler pathChooserHandler) |
void |
setValidationVisible(boolean validateAutomatically) |
attach, getContent, iterator, setHeight, setWidth
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, detach, discard, fireReadOnlyStatusChange, fireValueChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getState, getState, getTabIndex, getValidators, getValue, isBuffered, isEmpty, isImmediate, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readDesign, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValue, setValue, setValue, shouldHideErrors, toString, validate, validate, valueChange, writeDesign
addContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setParent, setPrimaryStyleName, 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, wait, wait, wait
addListener, addStyleName, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidthUndefined
forEach, spliterator
public AccessControlField(Map<Long,String> permissions)
permissions
- a map whose keys are permission values, and whose values are the corresponding captions to display in the permission select.public AccessControlField(Map<Long,String> permissions, Map<Long,String> accessTypes)
permissions
- a map whose keys are permission values, and whose values are the corresponding captions to display in the permission select.accessTypes
- a map whose keys are access type values, and whose values are the corresponding captions to display in the access type select. In the case of the web access field, this param can be ignored.protected com.vaadin.ui.Component initContent()
initContent
in class com.vaadin.ui.CustomField<AccessControlList.Entry>
public Class<? extends AccessControlList.Entry> getType()
getType
in interface com.vaadin.data.Property<AccessControlList.Entry>
getType
in class com.vaadin.ui.AbstractField<AccessControlList.Entry>
protected void setInternalValue(AccessControlList.Entry newValue)
setInternalValue
in class com.vaadin.ui.AbstractField<AccessControlList.Entry>
public void setValidationVisible(boolean validateAutomatically)
setValidationVisible
in class com.vaadin.ui.AbstractField<AccessControlList.Entry>
public String getChooseButtonCaption()
public void setChooseButtonCaption(String chooseButtonCaption)
public AccessControlField.PathChooserHandler getPathChooserHandler()
public void setPathChooserHandler(AccessControlField.PathChooserHandler pathChooserHandler)
Copyright © 2017 Magnolia International Ltd.. All rights reserved.