public class CubaTokenList<T extends io.jmix.core.Entity>
extends com.vaadin.ui.CustomField<java.util.Collection<T>>
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
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.HasContextHelp, 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
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ADD_BTN_STYLENAME |
protected io.jmix.core.common.event.Subscription |
addButtonSub |
protected static java.lang.String |
CLEAR_BTN_STYLENAME |
protected io.jmix.core.common.event.Subscription |
clearBtnClickSubscription |
protected java.util.Map<io.jmix.ui.widget.JmixTokenListLabel,T> |
componentItems |
protected com.vaadin.ui.CssLayout |
composition |
protected com.vaadin.ui.CssLayout |
editor |
protected static java.lang.String |
INLINE_STYLENAME |
protected java.util.Map<T,io.jmix.ui.widget.JmixTokenListLabel> |
itemComponents |
protected WebTokenList<T> |
owner |
protected static java.lang.String |
POSITION_BOTTOM_STYLENAME |
protected static java.lang.String |
POSITION_TOP_STYLENAME |
protected static java.lang.String |
READONLY_STYLENAME |
protected io.jmix.ui.widget.JmixScrollBoxLayout |
tokenContainer |
protected com.vaadin.ui.CssLayout |
tokenContainerWrapper |
protected static java.lang.String |
TOKENLIST_COMPOSITION_STYLENAME |
protected static java.lang.String |
TOKENLIST_EDITOR_STYLENAME |
protected static java.lang.String |
TOKENLIST_SCROLLBOX_STYLENAME |
protected static java.lang.String |
TOKENLIST_STYLENAME |
protected static java.lang.String |
TOKENLIST_WRAPPER_STYLENAME |
Constructor and Description |
---|
CubaTokenList(WebTokenList<T> owner) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearValue() |
protected io.jmix.ui.widget.JmixTokenListLabel |
createToken() |
protected void |
doClick(io.jmix.ui.widget.JmixTokenListLabel source) |
protected void |
doRemove(io.jmix.ui.widget.JmixTokenListLabel source) |
protected void |
doSetValue(java.util.Collection<T> value) |
protected void |
fireValueChangeEvent(java.util.Collection<T> oldValue) |
java.util.Collection<T> |
getValue() |
protected com.vaadin.ui.Component |
initContent() |
protected void |
initField() |
boolean |
isEmpty() |
void |
refreshClickListeners(TokenList.ItemClickListener listener) |
void |
refreshComponent() |
void |
refreshTokens(java.util.Collection<T> newValue) |
void |
setHeight(float height,
com.vaadin.server.Sizeable.Unit unit) |
protected void |
setTokenStyle(io.jmix.ui.widget.JmixTokenListLabel label,
java.lang.Object itemId) |
void |
setWidth(float width,
com.vaadin.server.Sizeable.Unit unit) |
protected void |
updateEditorMargins() |
protected void |
updateSizes() |
protected void |
updateTokenContainerVisibility() |
protected void |
updateTokensEditable() |
attach, focus, getContent, getState, getState, getTabIndex, iterator, setFocusDelegate, setTabIndex
addValueChangeListener, createValueChange, getCustomAttributes, isDifferentValue, isReadOnly, isRequiredIndicatorVisible, readDesign, setReadOnly, setRequiredIndicatorVisible, setValue, setValue, writeDesign
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setJTestId, setLocale, setParent, setPrimaryStyleName, setRequiredError, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected static final java.lang.String TOKENLIST_STYLENAME
protected static final java.lang.String TOKENLIST_EDITOR_STYLENAME
protected static final java.lang.String TOKENLIST_COMPOSITION_STYLENAME
protected static final java.lang.String TOKENLIST_SCROLLBOX_STYLENAME
protected static final java.lang.String TOKENLIST_WRAPPER_STYLENAME
protected static final java.lang.String ADD_BTN_STYLENAME
protected static final java.lang.String CLEAR_BTN_STYLENAME
protected static final java.lang.String INLINE_STYLENAME
protected static final java.lang.String READONLY_STYLENAME
protected static final java.lang.String POSITION_TOP_STYLENAME
protected static final java.lang.String POSITION_BOTTOM_STYLENAME
protected WebTokenList<T extends io.jmix.core.Entity> owner
protected com.vaadin.ui.CssLayout composition
protected com.vaadin.ui.CssLayout tokenContainerWrapper
protected io.jmix.ui.widget.JmixScrollBoxLayout tokenContainer
protected com.vaadin.ui.CssLayout editor
protected java.util.Map<T extends io.jmix.core.Entity,io.jmix.ui.widget.JmixTokenListLabel> itemComponents
protected java.util.Map<io.jmix.ui.widget.JmixTokenListLabel,T extends io.jmix.core.Entity> componentItems
protected io.jmix.core.common.event.Subscription addButtonSub
protected io.jmix.core.common.event.Subscription clearBtnClickSubscription
public CubaTokenList(WebTokenList<T> owner)
protected void doSetValue(java.util.Collection<T> value)
doSetValue
in class com.vaadin.ui.AbstractField<java.util.Collection<T extends io.jmix.core.Entity>>
public java.util.Collection<T> getValue()
public boolean isEmpty()
public void setHeight(float height, com.vaadin.server.Sizeable.Unit unit)
setHeight
in interface com.vaadin.server.Sizeable
setHeight
in class com.vaadin.ui.CustomField<java.util.Collection<T extends io.jmix.core.Entity>>
public void setWidth(float width, com.vaadin.server.Sizeable.Unit unit)
setWidth
in interface com.vaadin.server.Sizeable
setWidth
in class com.vaadin.ui.CustomField<java.util.Collection<T extends io.jmix.core.Entity>>
protected com.vaadin.ui.Component initContent()
initContent
in class com.vaadin.ui.CustomField<java.util.Collection<T extends io.jmix.core.Entity>>
protected void initField()
protected void clearValue()
public void refreshComponent()
protected void updateTokensEditable()
public void refreshTokens(@Nullable java.util.Collection<T> newValue)
protected void updateTokenContainerVisibility()
protected void updateEditorMargins()
protected void updateSizes()
public void refreshClickListeners(@Nullable TokenList.ItemClickListener listener)
protected io.jmix.ui.widget.JmixTokenListLabel createToken()
protected void doRemove(io.jmix.ui.widget.JmixTokenListLabel source)
protected void doClick(io.jmix.ui.widget.JmixTokenListLabel source)
protected void setTokenStyle(io.jmix.ui.widget.JmixTokenListLabel label, @Nullable java.lang.Object itemId)
protected void fireValueChangeEvent(java.util.Collection<T> oldValue)