V
- value typepublic class JmixTagContainer<V>
extends com.vaadin.ui.CssLayout
JmixTagLabel
.com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler
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
Modifier and Type | Field and Description |
---|---|
protected boolean |
editable |
protected com.google.common.collect.BiMap<V,JmixTagLabel> |
itemComponent |
protected java.util.List<V> |
items |
protected java.util.function.Consumer<V> |
removeTagHandler |
protected java.util.function.Function<V,java.lang.String> |
tagCaptionProvider |
protected java.util.function.Consumer<V> |
tagClickHandler |
protected java.util.Comparator<? super V> |
tagComparator |
static java.lang.String |
TAGCONTAINER_INLINE_STYLENAME |
static java.lang.String |
TAGCONTAINER_READONLY_STYLENAME |
static java.lang.String |
TAGCONTAINER_STYLENAME |
static java.lang.String |
TAGCONTAINER_VERTICAL_STYLENAME |
protected java.util.function.Function<? super V,java.lang.String> |
tagStyleProvider |
Constructor and Description |
---|
JmixTagContainer() |
Modifier and Type | Method and Description |
---|---|
protected JmixTagLabel |
createTagLabel() |
protected void |
doRefreshTags(java.util.Collection<V> itemsToShow) |
java.util.Comparator<? super V> |
getTagComparator() |
java.util.function.Function<? super V,java.lang.String> |
getTagStyleProvider() |
boolean |
isEditable() |
boolean |
isInlineTags() |
protected void |
onTagLabelClick(JmixTagLabel label) |
protected void |
onTagLabelRemove(JmixTagLabel label) |
void |
refreshTags() |
void |
setEditable(boolean editable) |
void |
setInlineTags(boolean inline) |
void |
setRemoveTagHandler(java.util.function.Consumer<V> removeTagHandler) |
void |
setTagCaptionProvider(java.util.function.Function<V,java.lang.String> tagCaptionProvider) |
void |
setTagClickHandler(java.util.function.Consumer<V> tagClickHandler) |
void |
setTagComparator(java.util.Comparator<? super V> comparator) |
void |
setTagStyleProvider(java.util.function.Function<? super V,java.lang.String> tagStyleProvider) |
void |
showTags(java.util.Collection<V> itemsToShow) |
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, writeDesign
isRequiredIndicatorVisible, readMargin, setRequiredIndicatorVisible, writeMargin
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, focus, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, 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, setReadOnly, 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
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponents
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public static final java.lang.String TAGCONTAINER_STYLENAME
public static final java.lang.String TAGCONTAINER_READONLY_STYLENAME
public static final java.lang.String TAGCONTAINER_INLINE_STYLENAME
public static final java.lang.String TAGCONTAINER_VERTICAL_STYLENAME
protected java.util.List<V> items
protected java.util.function.Function<V,java.lang.String> tagCaptionProvider
protected java.util.function.Function<? super V,java.lang.String> tagStyleProvider
protected java.util.function.Consumer<V> tagClickHandler
protected java.util.function.Consumer<V> removeTagHandler
protected java.util.Comparator<? super V> tagComparator
protected boolean editable
protected com.google.common.collect.BiMap<V,JmixTagLabel> itemComponent
public boolean isEditable()
public void setEditable(boolean editable)
public boolean isInlineTags()
public void setInlineTags(boolean inline)
public void setTagCaptionProvider(java.util.function.Function<V,java.lang.String> tagCaptionProvider)
@Nullable public java.util.function.Function<? super V,java.lang.String> getTagStyleProvider()
public void setTagStyleProvider(@Nullable java.util.function.Function<? super V,java.lang.String> tagStyleProvider)
public void setTagClickHandler(@Nullable java.util.function.Consumer<V> tagClickHandler)
public void setRemoveTagHandler(java.util.function.Consumer<V> removeTagHandler)
@Nullable public java.util.Comparator<? super V> getTagComparator()
public void setTagComparator(@Nullable java.util.Comparator<? super V> comparator)
public void showTags(@Nullable java.util.Collection<V> itemsToShow)
public void refreshTags()
protected void doRefreshTags(java.util.Collection<V> itemsToShow)
protected JmixTagLabel createTagLabel()
protected void onTagLabelRemove(JmixTagLabel label)
protected void onTagLabelClick(JmixTagLabel label)