public class JmixTagPicker<V> extends JmixComboBoxPickerField<java.util.Collection<V>>
Modifier and Type | Class and Description |
---|---|
static class |
JmixTagPicker.TagContainerPosition |
JmixPickerField.FieldValueChangeEvent<V>, JmixPickerField.FieldValueChangeListener<V>
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 com.vaadin.ui.CssLayout |
composition |
protected JmixTagPicker.TagContainerPosition |
containerPosition |
protected com.vaadin.ui.ItemCaptionGenerator<V> |
defaultOptionCaptionProvider |
protected com.vaadin.ui.ItemCaptionGenerator<V> |
optionCaptionProvider |
protected java.util.function.Consumer<V> |
tagClickHandler |
protected JmixTagContainer<V> |
tagContainer |
static java.lang.String |
TAGCONTAINER_COMPOSITION_STYLENAME |
static java.lang.String |
TAGPICKER_STYLENAME |
static java.lang.String |
TAGS_BOTTOM_STYLENAME |
static java.lang.String |
TAGS_LEFT_STYLENAME |
static java.lang.String |
TAGS_RIGHT_STYLENAME |
static java.lang.String |
TAGS_TOP_STYLENAME |
protected java.util.function.Function<? super V,java.lang.String> |
tagStyleProvider |
COMBOBOX_FIELD_STYLENAME, COMBOBOX_PICKERFIELD_STYLENAME
BUTTON_STYLENAME, buttons, container, field, fieldReadOnly, fieldValueChangeListener, iconGenerator, inputWrapper, internalValue, LAYOUT_STYLENAME, PRIMARY_STYLENAME, suppressTextChangeListener, TEXT_FIELD_STYLENAME, textFieldValueProvider
Constructor and Description |
---|
JmixTagPicker() |
Modifier and Type | Method and Description |
---|---|
com.vaadin.shared.Registration |
addValueChangeListener(com.vaadin.data.HasValue.ValueChangeListener<java.util.Collection<V>> listener) |
protected void |
doSetValue(java.util.Collection<V> value) |
protected boolean |
equalCollections(java.util.Collection<V> a,
java.util.Collection<V> b) |
java.util.Comparator<? super V> |
getTagComparator() |
JmixTagPicker.TagContainerPosition |
getTagContainerPosition() |
java.util.function.Function<? super V,java.lang.String> |
getTagStyleProvider() |
java.util.Collection<V> |
getValue() |
protected com.vaadin.ui.Component |
initContent() |
protected void |
initField() |
protected void |
initLayout() |
protected boolean |
isDifferentValue(java.util.Collection<V> newValue) |
boolean |
isInlineTags() |
protected void |
onFieldValueChange(com.vaadin.data.HasValue.ValueChangeEvent<?> event) |
protected void |
onTagLabelRemove(V item) |
void |
refreshTags() |
void |
setInlineTags(boolean inline) |
void |
setReadOnly(boolean readOnly) |
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> tagComparator) |
void |
setTagContainerPosition(JmixTagPicker.TagContainerPosition containerPosition) |
void |
setTagStyleProvider(java.util.function.Function<? super V,java.lang.String> tagStyleProvider) |
protected void |
updateTagContainerVisibility() |
getEmptySelectionCaption, getFieldInternal, getItemCaptionGenerator, getItemIconGenerator, getNewItemHandler, getPageLength, getPlaceholder, getPopupWidth, init, isEmptySelectionAllowed, isTextInputAllowed, setEmptySelectionAllowed, setEmptySelectionCaption, setItemCaptionGenerator, setItemIconGenerator, setItems, setItems, setItems, setItems, setItems, setNewItemHandler, setPageLength, setPlaceholder, setPopupWidth, setStyleGenerator, setTextInputAllowed, updateFieldReadOnlyFocusable
addActionHandler, addButton, addFieldListener, attach, focus, getButtons, getEmptyStringRepresentation, getField, getIconGenerator, getStringRepresentation, getTabIndex, getTextFieldValueProvider, isEmpty, isFieldReadOnly, removeActionHandler, removeButton, setFieldReadOnly, setHeight, setIconGenerator, setTabIndex, setTextFieldValueProvider, setWidth, updateFieldReadOnly, updateIcon, updateTextRepresentation
getContent, getState, getState, iterator, setFocusDelegate
createValueChange, getCustomAttributes, isReadOnly, isRequiredIndicatorVisible, readDesign, 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
public static final java.lang.String TAGPICKER_STYLENAME
public static final java.lang.String TAGCONTAINER_COMPOSITION_STYLENAME
public static final java.lang.String TAGS_TOP_STYLENAME
public static final java.lang.String TAGS_RIGHT_STYLENAME
public static final java.lang.String TAGS_BOTTOM_STYLENAME
public static final java.lang.String TAGS_LEFT_STYLENAME
protected com.vaadin.ui.CssLayout composition
protected JmixTagContainer<V> tagContainer
protected com.vaadin.ui.ItemCaptionGenerator<V> defaultOptionCaptionProvider
protected com.vaadin.ui.ItemCaptionGenerator<V> optionCaptionProvider
protected java.util.function.Function<? super V,java.lang.String> tagStyleProvider
protected java.util.function.Consumer<V> tagClickHandler
protected JmixTagPicker.TagContainerPosition containerPosition
protected void initLayout()
initLayout
in class JmixPickerField<java.util.Collection<V>>
protected void initField()
initField
in class JmixComboBoxPickerField<java.util.Collection<V>>
protected com.vaadin.ui.Component initContent()
initContent
in class JmixPickerField<java.util.Collection<V>>
protected void onFieldValueChange(com.vaadin.data.HasValue.ValueChangeEvent<?> event)
onFieldValueChange
in class JmixPickerField<java.util.Collection<V>>
public java.util.Collection<V> getValue()
getValue
in interface com.vaadin.data.HasValue<java.util.Collection<V>>
getValue
in class JmixComboBoxPickerField<java.util.Collection<V>>
protected void doSetValue(java.util.Collection<V> value)
doSetValue
in class JmixComboBoxPickerField<java.util.Collection<V>>
protected boolean isDifferentValue(java.util.Collection<V> newValue)
isDifferentValue
in class JmixPickerField<java.util.Collection<V>>
public com.vaadin.shared.Registration addValueChangeListener(com.vaadin.data.HasValue.ValueChangeListener<java.util.Collection<V>> listener)
addValueChangeListener
in interface com.vaadin.data.HasValue<java.util.Collection<V>>
addValueChangeListener
in class JmixComboBoxPickerField<java.util.Collection<V>>
public void setReadOnly(boolean readOnly)
setReadOnly
in interface com.vaadin.data.HasValue<java.util.Collection<V>>
setReadOnly
in class JmixPickerField<java.util.Collection<V>>
public boolean isInlineTags()
public void setInlineTags(boolean inline)
public JmixTagPicker.TagContainerPosition getTagContainerPosition()
public void setTagContainerPosition(JmixTagPicker.TagContainerPosition containerPosition)
public void refreshTags()
public void setTagCaptionProvider(java.util.function.Function<V,java.lang.String> tagCaptionProvider)
public void setTagClickHandler(@Nullable java.util.function.Consumer<V> tagClickHandler)
@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)
@Nullable public java.util.Comparator<? super V> getTagComparator()
public void setTagComparator(@Nullable java.util.Comparator<? super V> tagComparator)
protected void updateTagContainerVisibility()
protected void onTagLabelRemove(V item)