Class JmixTagFieldWidget
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
io.jmix.ui.widget.client.suggestionfield.JmixSuggestionFieldWidget
io.jmix.ui.widget.client.tagfield.JmixTagFieldWidget
- All Implemented Interfaces:
com.google.gwt.event.dom.client.HasAllKeyHandlers
,com.google.gwt.event.dom.client.HasKeyDownHandlers
,com.google.gwt.event.dom.client.HasKeyPressHandlers
,com.google.gwt.event.dom.client.HasKeyUpHandlers
,com.google.gwt.event.logical.shared.HasAttachHandlers
,com.google.gwt.event.logical.shared.HasSelectionHandlers<JmixSuggestionFieldWidget.Suggestion>
,com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>
,com.google.gwt.event.shared.HasHandlers
,com.google.gwt.user.client.EventListener
,com.google.gwt.user.client.TakesValue<String>
,com.google.gwt.user.client.ui.Focusable
,com.google.gwt.user.client.ui.HasEnabled
,com.google.gwt.user.client.ui.HasValue<String>
,com.google.gwt.user.client.ui.HasVisibility
,com.google.gwt.user.client.ui.IsRenderable
,com.google.gwt.user.client.ui.IsWidget
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected class
As widget hides in some cases (readOnly, disabled) TextField that handle blur/focus, TagFieldWidget should handle blur/focus itself.protected class
Nested classes/interfaces inherited from class io.jmix.ui.widget.client.suggestionfield.JmixSuggestionFieldWidget
JmixSuggestionFieldWidget.JmixTextFieldEvents, JmixSuggestionFieldWidget.Suggestion, JmixSuggestionFieldWidget.SuggestionPopup, JmixSuggestionFieldWidget.SuggestionTimer
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
protected com.vaadin.client.ui.VLabel
protected boolean
protected Runnable
protected boolean
static final String
static final String
protected com.google.gwt.user.client.ui.FlowPanel
static final String
protected FocusableFlowPanel
static final String
protected static final String
protected static final String
protected static final String
protected Map<JmixTagLabelWidget,
String> static final String
Fields inherited from class io.jmix.ui.widget.client.suggestionfield.JmixSuggestionFieldWidget
arrowDownActionHandler, asyncSearchDelayMs, cancelSearchHandler, enterActionHandler, focused, iePreventBlur, minSearchStringLength, MODIFIED_STYLENAME, popupStylename, popupWidth, prevQuery, searchExecutor, selectFirstSuggestionOnShow, SUGGESTION_CAPTION, SUGGESTION_ID, SUGGESTION_STYLE_NAME, suggestions, suggestionsContainer, suggestionSelectedHandler, suggestionsPopup, suggestionTimer, textField, V_FILTERSELECT_SUGGESTPOPUP, value
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
createSuggestionPopup
(SuggestionsContainer suggestionsContainer) protected JmixTagLabelWidget
generateTagLabel
(elemental.json.JsonObject json) protected void
handleOnBlur
(com.google.gwt.event.dom.client.BlurEvent event) Handle TextField blurprotected void
handleOnFocus
(com.google.gwt.event.dom.client.FocusEvent event) Handle TextField focusprotected void
protected void
boolean
boolean
protected boolean
protected void
onTagClick
(String tagKey) protected void
onTagRemove
(String tagKey) void
setClearAllVisible
(boolean clearAllVisible) void
setClearItemHandler
(Runnable clearItemHandler) void
setClickableTag
(boolean clickableTag) void
setEnabled
(boolean enabled) void
void
setReadonly
(boolean readonly) void
setTagClickHandler
(Consumer<String> tagClickHandler) void
setTagRemoveHandler
(Consumer<String> tagRemoveHandler) protected void
boolean
protected void
protected void
Methods inherited from class io.jmix.ui.widget.client.suggestionfield.JmixSuggestionFieldWidget
addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addSelectionHandler, addValueChangeHandler, cancelSearch, disableAutocompletion, getMarginBorderPaddingWidth, getTabIndex, getValue, handleArrowDownKeyPressed, handleArrowUpKeyPressed, handleEnterKeyPressed, handleEscKeyPressed, isActive, isEnabled, isFocused, isReadonly, isSelectFirstSuggestionOnShow, preventEvent, resetComponentState, scheduleQuery, searchSuggestions, selectSuggestion, selectSuggestion, setAccessKey, setAsyncSearchDelayMs, setFocus, setInputPrompt, setMinSearchStringLength, setPopupStyleName, setPopupWidth, setSelectFirstSuggestionOnShow, setTabIndex, setValue, setValue, showSuggestions, showSuggestions
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Field Details
-
CLASSNAME
- See Also:
-
LAYOUT
- See Also:
-
CLEAR_ALL_BUTTON
- See Also:
-
FOCUS
- See Also:
-
EMPTY
- See Also:
-
CLEAR_ALL
- See Also:
-
SINGLELINE
- See Also:
-
TEXT_OVERFLOW_TAGLABEL
- See Also:
-
TAG_CAPTION_KEY
- See Also:
-
TAG_STYLE_KEY
- See Also:
-
TAG_KEY
- See Also:
-
root
-
layout
protected com.google.gwt.user.client.ui.FlowPanel layout -
clearAllBtn
protected com.vaadin.client.ui.VLabel clearAllBtn -
tagKeyMap
-
tagClickHandler
-
tagRemoveHandler
-
clearItemHandler
-
clickableTag
protected boolean clickableTag -
clearAllVisible
protected boolean clearAllVisible
-
-
Constructor Details
-
JmixTagFieldWidget
public JmixTagFieldWidget()
-
-
Method Details
-
setupComposition
protected void setupComposition()- Overrides:
setupComposition
in classJmixSuggestionFieldWidget
-
initTextField
protected void initTextField()- Overrides:
initTextField
in classJmixSuggestionFieldWidget
-
addClearAllButton
protected void addClearAllButton() -
initClearAllButton
protected void initClearAllButton() -
addWindowResizeHandler
protected void addWindowResizeHandler() -
setReadonly
public void setReadonly(boolean readonly) - Overrides:
setReadonly
in classJmixSuggestionFieldWidget
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabled
in interfacecom.google.gwt.user.client.ui.HasEnabled
- Overrides:
setEnabled
in classJmixSuggestionFieldWidget
-
updateWidgetsAvailability
protected void updateWidgetsAvailability() -
getTagClickHandler
-
setTagClickHandler
-
getTagRemoveHandler
-
setTagRemoveHandler
-
isClickableTag
public boolean isClickableTag() -
setClickableTag
public void setClickableTag(boolean clickableTag) -
getClearItemHandler
-
setClearItemHandler
-
isClearAllVisible
public boolean isClearAllVisible() -
setClearAllVisible
public void setClearAllVisible(boolean clearAllVisible) -
clearText
public void clearText() -
setItems
-
generateTagLabel
-
onTagClick
-
onTagRemove
-
updateWidgetHeightStyle
public boolean updateWidgetHeightStyle() -
updateWidgetsWidth
protected void updateWidgetsWidth() -
isTagLabelExceedFieldWidth
-
handleOnBlur
protected void handleOnBlur(com.google.gwt.event.dom.client.BlurEvent event) Handle TextField blur- Overrides:
handleOnBlur
in classJmixSuggestionFieldWidget
- Parameters:
event
- blur event
-
handleOnFocus
protected void handleOnFocus(com.google.gwt.event.dom.client.FocusEvent event) Handle TextField focus- Overrides:
handleOnFocus
in classJmixSuggestionFieldWidget
- Parameters:
event
- focus event
-