V
- public abstract class AbstractComboBox<W extends AbstractComboBox<W,V>,V> extends TriggerField<AbstractComboBox<W,V>,V> implements HasClickHandlers<AbstractComboBox<W,V>>
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractComboBox.InputWidget |
Modifier and Type | Field and Description |
---|---|
protected AbstractComboBox.InputWidget |
inputWidget |
boolean |
preserveTypedCase |
autocorrect, autofill, editRenderer, editTextAlign, parser, placeholder, required, textAlign
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
AbstractComboBox(HTMLDivElement element,
Model<V> model,
Converter<V,U> getter,
Converter<String,V> setter,
Renderer<U> renderer,
Filter<V,String> filter) |
AbstractComboBox(Model<V> model) |
AbstractComboBox(Model<V> model,
Converter<V,U> getter) |
AbstractComboBox(Model<V> model,
Converter<V,U> getter,
Converter<String,V> setter) |
AbstractComboBox(Model<V> model,
Converter<V,U> getter,
Converter<String,V> setter,
Filter<V,String> filter) |
AbstractComboBox(Model<V> model,
Converter<V,U> getter,
Converter<String,V> setter,
Renderer<U> renderer) |
AbstractComboBox(Model<V> model,
Converter<V,U> getter,
Converter<String,V> setter,
Renderer<U> renderer,
Filter<V,String> filter) |
AbstractComboBox(Model<V> model,
Converter<V,U> getter,
Renderer<U> renderer) |
AbstractComboBox(Model<V> model,
Filter<V,String> filter) |
AbstractComboBox(Model<V> model,
Renderer<V> renderer) |
AbstractComboBox(Model<V> model,
Renderer<V> renderer,
Filter<V,String> filter) |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addKeyPressHandler(KeyPressHandler<AbstractComboBox<W,V>> keyPressHandler) |
W |
blur() |
W |
edit() |
W |
focus()
WARNING: On IOS, only work when a touch/click/event is fired.
|
Model<V> |
getModel() |
String |
getTextValue() |
boolean |
isEditing() |
boolean |
isPreserveTypedCase() |
protected V |
parseValue() |
protected void |
renderEditValue(V value) |
protected void |
renderValue(V value) |
AbstractComboBox<W,V> |
reset() |
W |
setAutocapitalize(Autocapitalize autocapitalize) |
AbstractComboBox<W,V> |
setAutocorrect(Autocorrect autocorrect) |
AbstractComboBox<W,V> |
setAutofill(Autofill autofill) |
W |
setBackgroundColor(Color backgroundColor)
Set the background color.
|
W |
setPlaceHolder(String placeholder) |
void |
setPreserveTypedCase(boolean preserveTypedCase)
Preserve the typed case when auto-completing value
|
W |
setReadOnly(boolean readOnly)
Sets the read only status
|
W |
setRequired(boolean required) |
W |
setValue(V value) |
fireValueInputEvent
addValueInputHandler, allowNullRender, getAutocorrect, getAutofill, getEditRenderer, getParser, getPlaceHolder, getRenderer, isRequired, setAllowBlank, setAllowNullRender, setEditRenderer, setParser, setRenderer
addFieldChangeHandler, addValidator, fireFieldChangeEvent, getValidators, getValue, isReadOnly, isValid, removeValidator, setValue, validate, validate
focusNext, focusPrevious
add, addActionHandler, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireEvent, fireEvent, fireResizeEvent, getAbsoluteLeft, getAbsoluteTop, getAncestor, getChildren, getChildrenCount, getComputedStyle, getContextMenu, getContextMenuHandler, getDeepestWidget, getDragSource, getDropTargetList, getElement, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getOffsetHeight, getOffsetWidth, getParent, getScrollLeft, getScrollTop, getStyle, hasClassName, hasFocus, insert, isAttached, isDropTarget, isEnabled, isInEventThread, onAttach, onDetach, remove, removeClassName, removeDropTarget, removeStyleName, setClassName, setContextMenu, setDragSource, setDropTarget, setEnabled, setHeight, setHeight, setHeight, setId, setLeft, setLeftAndTop, setMaxHeight, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setMinWidth, setParent, setPixelSize, setScrollLeft, setScrollTop, setSize, setTextAlign, setTextColor, setTop, setWidth, setWidth, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClickHandler, addClickHandler
addEventHandler, addEventHandler
addChangeHandler, addChangeHandler
addInputHandler, addInputHandler
click, getElement
addBlurHandler, addBlurHandler
addFocusHandler, addFocusHandler
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
addAttachHandler
addDetachHandler
addTransitionEndHandler, addTransitionEndHandler
addMouseDownHandler, addMouseDownHandler
addMouseMoveHandler, addMouseMoveHandler
addMouseOutHandler, addMouseOutHandler
addMouseOverHandler, addMouseOverHandler
addMouseUpHandler, addMouseUpHandler
addWheelHandler, addWheelHandler
addDoubleClickHandler, addDoubleClickHandler
addContextMenuHandler, addContextMenuHandler
addTouchStartHandler, addTouchStartHandler
addTouchMoveHandler, addTouchMoveHandler
addTouchForceChangeHandler, addTouchForceChangeHandler
addTouchEndHandler, addTouchEndHandler
addTouchCancelHandler, addTouchCancelHandler
addTouchHoldHandler
addTapHandler
addDoubleTapHandler
addKeyDownHandler, addKeyDownHandler
addKeyUpHandler, addKeyUpHandler
addKeyPressHandler
addScrollHandler, addScrollHandler
addAnimationStartHandler, addAnimationStartHandler
addAnimationIterationHandler, addAnimationIterationHandler
addAnimationEndHandler, addAnimationEndHandler
addActionHandler
addDoubleActionHandler
protected AbstractComboBox.InputWidget inputWidget
public boolean preserveTypedCase
public AbstractComboBox(Model<V> model, Converter<V,U> getter, Converter<String,V> setter)
public AbstractComboBox(Model<V> model, Converter<V,U> getter, Converter<String,V> setter, Renderer<U> renderer)
public AbstractComboBox(Model<V> model, Converter<V,U> getter, Renderer<U> renderer)
public AbstractComboBox(Model<V> model, Renderer<V> renderer, Filter<V,String> filter)
public AbstractComboBox(Model<V> model, Converter<V,U> getter, Converter<String,V> setter, Filter<V,String> filter)
public AbstractComboBox(Model<V> model, Converter<V,U> getter, Converter<String,V> setter, Renderer<U> renderer, Filter<V,String> filter)
public W setPlaceHolder(String placeholder)
setPlaceHolder
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
public void setPreserveTypedCase(boolean preserveTypedCase)
preserveTypedCase
- the preserveTypedCase to setpublic boolean isPreserveTypedCase()
public W setValue(V value)
setValue
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
Field.setValue(java.lang.Object)
public W setRequired(boolean required)
setRequired
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
required
- public W focus()
IsFocusable
focus
in interface IsFocusable<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>>
public W blur()
blur
in interface IsFocusable<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>>
public HandlerRegistration addKeyPressHandler(KeyPressHandler<AbstractComboBox<W,V>> keyPressHandler)
addKeyPressHandler
in interface HasKeyPressHandlers<AbstractComboBox<W extends AbstractComboBox<W,V>,V>>
protected void renderValue(V value)
renderValue
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
protected void renderEditValue(V value)
renderEditValue
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
protected V parseValue()
parseValue
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
public AbstractComboBox<W,V> reset()
reset
in class Field<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
public W setBackgroundColor(Color backgroundColor)
Widget
Widget.clearBackgroundColor()
, the theme's background color will be used.setBackgroundColor
in class TriggerField<AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
backgroundColor
- the background color to setpublic W setReadOnly(boolean readOnly)
setReadOnly
in class Field<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
readOnly
- the read only status to setpublic W edit()
edit
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
public boolean isEditing()
isEditing
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
@WillMutate public AbstractComboBox<W,V> setAutofill(Autofill autofill)
setAutofill
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
public AbstractComboBox<W,V> setAutocorrect(Autocorrect autocorrect)
setAutocorrect
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
@WillMutate public W setAutocapitalize(Autocapitalize autocapitalize)
public String getTextValue()
getTextValue
in class ValueField<HTMLDivElement,AbstractComboBox<W extends AbstractComboBox<W,V>,V>,V>
Copyright © 2018 Xalys. All rights reserved.