Object
AbstractClientConnector
AbstractComponent
AbstractLegacyComponent
AbstractField<Object>
AbstractSelect
ComboBoxMultiselect
DBComboBoxMultiselect
All Implemented Interfaces:
CaptionField, ExecutionContextAware, ExecutionContextField<Object>, DBMultiBindField, ListenerField<Object>, QueryExecutionListener, Action.ShortcutNotifier, ConnectorEventListener, ContextClickEvent.ContextClickNotifier, MethodEventSource, SerializableEventListener, ClientConnector, Sizeable, VariableOwner, Connector, Component, Component.Focusable, LegacyComponent, Buffered, BufferedValidatable, Container, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.Viewer, Property<Object>, Property.Editor, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer, Validatable, FieldEvents.BlurNotifier, FieldEvents.FocusNotifier, AbstractSelect.Filtering, Field<Object>, Serializable, EventListener

public class DBComboBoxMultiselect extends ComboBoxMultiselect implements ListenerField<Object>, DBMultiBindField, ExecutionContextField<Object>, CaptionField, QueryExecutionListener
Combobox com suporte a filtro online de propriedades baseado em componentes bindaveis
Author:
Eduardo Frazao
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class ComboBoxMultiselect

    ComboBoxMultiselect.ItemStyleGenerator, ComboBoxMultiselect.SelectedCaptionGenerator, ComboBoxMultiselect.ShowButton

    Nested classes/interfaces inherited from class AbstractSelect

    AbstractSelect.AbstractSelectTargetDetails, AbstractSelect.AcceptItem, AbstractSelect.CaptionChangeListener, AbstractSelect.DefaultNewItemHandler, AbstractSelect.Filtering, AbstractSelect.ItemCaptionMode, AbstractSelect.ItemDescriptionGenerator, AbstractSelect.NewItemHandler, AbstractSelect.TargetItemIs, AbstractSelect.VerticalLocationIs

    Nested classes/interfaces inherited from class AbstractField

    AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEvent

    Nested classes/interfaces inherited from interface Buffered

    Buffered.SourceException

    Nested classes/interfaces inherited from interface ClientConnector

    ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener

    Nested classes/interfaces inherited from interface Component

    Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener

    Nested classes/interfaces inherited from interface Container

    Container.Editor, Container.Filter, Container.Filterable, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.SimpleFilterable, Container.Sortable, Container.Viewer

    Nested classes/interfaces inherited from interface Field

    Field.ValueChangeEvent

    Nested classes/interfaces inherited from interface Property

    Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer

    Nested classes/interfaces inherited from interface Sizeable

    Sizeable.Unit
  • Field Summary

    Fields inherited from class ComboBoxMultiselect

    nullCompare, pageLength, SELECTED_PROPERTY

    Fields inherited from class AbstractSelect

    ITEM_CAPTION_MODE_EXPLICIT, ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID, ITEM_CAPTION_MODE_ICON_ONLY, ITEM_CAPTION_MODE_ID, ITEM_CAPTION_MODE_INDEX, ITEM_CAPTION_MODE_ITEM, ITEM_CAPTION_MODE_PROPERTY, itemIdMapper, items

    Fields inherited from class AbstractComponent

    DESIGN_ATTR_PLAIN_TEXT

    Fields inherited from interface AbstractSelect.Filtering

    FILTERINGMODE_CONTAINS, FILTERINGMODE_OFF, FILTERINGMODE_STARTSWITH

    Fields inherited from interface Sizeable

    SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    DBComboBoxMultiselect(Container dataSource)
     
     
     
    DBComboBoxMultiselect(String caption, Container dataSource)
     
    DBComboBoxMultiselect(String caption, Collection<?> options)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bindParameter(BindParameterContextValue contextValue, String propertyName, Object defaultValue)
    Informa ao componente os dados de bindagem contextual
    void
    bindParameter(String fieldId, String propertyName, Object defaultValue)
    Informa ao componente os dados de bindagem do parametro dinamico para o datasource
    void
    bindProperty(String fieldId, String propertyName)
    Informa ao componente os dados de bindagem da propriedade
    void
    changeVariables(Object source, Map<String,Object> variables)
     
     
    Container
     
    Coleta o contexto de execucao deste campo
    Informa ao sistema a lista de campos que o componente deseja ouvir.
    protected List<?>
    getOptionsWithFilter(boolean needNullSelectOption)
     
     
    boolean
     
    boolean
    Retorna a configuracao de atualizacao automatica do componente
    void
    listen(String fieldKey, Field<?> field)
    Fornece a referencia ao campo concreto para ouvir alteracoes
    void
     
    void
     
    void
     
    void
    Configura o contexto de execuco do campo
    void
    setFieldId(String fieldId)
     
    void
    setFilterValue(String property, Object value)
     
    protected void
     
    void
    setRefreshOnChange(boolean refreshOnChange)
    Determina se o campo deve ouvir alteracoes nos campos bindados e se atualizar automaticamente
    void
     

    Methods inherited from class ComboBoxMultiselect

    addBlurListener, addFocusListener, buildFilter, containerItemSetChange, getAllOptionsWithFilter, getClearButtonCaption, getFilteredOptions, getFilteringMode, getInputPrompt, getItemIdsAsList, getItemStyleGenerator, getNullCompare, getPageLength, getSelectAllButtonCaption, getSelectedValueOrder, getSortedFilteredOptions, isCheckboxEnabled, isCreateSelectPropertyIfPossible, isEmpty, isMultiSelect, isNullSelectionAllowed, isScrollToSelectedItem, isShowSelectedOnTop, isTextInputAllowed, paintContent, removeBlurListener, removeFocusListener, resetSelectedStaticCaption, select, selectAll, setCheckboxEnabled, setClearButtonCaption, setComparator, setContainerDataSource, setCreateSelectPropertyIfPossible, setFilteringMode, setInputPrompt, setItemStyleGenerator, setMultiSelect, setNullCompare, setNullSelectionAllowed, setPageLength, setScrollToSelectedItem, setSelectAllButtonCaption, setSelectedStaticCaption, setShowClearButton, setShowSelectAllButton, setShowSelectedOnTop, setTextInputAllowed, setValue, unselect, unselectAll

    Methods inherited from class AbstractSelect

    addContainerProperty, addItem, addItem, addItems, addItems, addItemSetChangeListener, addListener, addListener, addPropertySetChangeListener, attach, containerPropertySetChange, containsId, detach, fireItemSetChange, firePropertySetChange, getCaptionChangeListener, getContainerProperty, getContainerPropertyIds, getItem, getItemCaption, getItemCaptionMode, getItemCaptionPropertyId, getItemIcon, getItemIconPropertyId, getItemIds, getListeners, getNewItemHandler, getNullSelectionItemId, getState, getState, getType, getValue, getVisibleItemIds, isNewItemsAllowed, isSelected, paintItem, readDesign, readItem, readItems, removeAllItems, removeContainerProperty, removeItem, removeItemSetChangeListener, removeListener, removeListener, removePropertySetChangeListener, sanitizeSelection, select, setItemCaption, setItemCaptionMode, setItemCaptionPropertyId, setItemIcon, setItemIconPropertyId, setNewItemHandler, setNewItemsAllowed, setNullSelectionItemId, size, unselect, writeDesign, writeItem, writeItems

    Methods inherited from class AbstractField

    addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, discard, fireReadOnlyStatusChange, fireValueChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, isBuffered, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, shouldHideErrors, validate, validate, valueChange

    Methods inherited from class AbstractLegacyComponent

    getExplicitImmediateValue, isImmediate, setImmediate

    Methods inherited from class AbstractComponent

    addContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined

    Methods inherited from class AbstractClientConnector

    addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, 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, setErrorHandler, setResource, updateDiffstate

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Action.ShortcutNotifier

    addShortcutListener, removeShortcutListener

    Methods inherited from interface Buffered

    commit, discard, isBuffered, isModified, setBuffered

    Methods inherited from interface BufferedValidatable

    isInvalidCommitted, setInvalidCommitted

    Methods inherited from interface ClientConnector

    addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler

    Methods inherited from interface Component

    addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign

    Methods inherited from interface Component.Focusable

    focus, getTabIndex, setTabIndex

    Methods inherited from interface Connector

    getConnectorId

    Methods inherited from interface Field

    clear, getRequiredError, isEmpty, isRequired, setRequired, setRequiredError

    Methods inherited from interface LegacyComponent

    markAsDirty

    Methods inherited from interface Property

    getValue, isReadOnly, setReadOnly

    Methods inherited from interface Property.ValueChangeListener

    valueChange

    Methods inherited from interface Property.ValueChangeNotifier

    addListener, addValueChangeListener, removeListener, removeValueChangeListener

    Methods inherited from interface Property.Viewer

    getPropertyDataSource, setPropertyDataSource

    Methods inherited from interface Sizeable

    getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined

    Methods inherited from interface Validatable

    addValidator, getValidators, isInvalidAllowed, isValid, removeAllValidators, removeValidator, setInvalidAllowed, validate

    Methods inherited from interface VariableOwner

    isEnabled
  • Constructor Details

    • DBComboBoxMultiselect

      public DBComboBoxMultiselect()
    • DBComboBoxMultiselect

      public DBComboBoxMultiselect(String caption, Collection<?> options)
    • DBComboBoxMultiselect

      public DBComboBoxMultiselect(Container dataSource)
    • DBComboBoxMultiselect

      public DBComboBoxMultiselect(String caption, Container dataSource)
    • DBComboBoxMultiselect

      public DBComboBoxMultiselect(String caption, ContainerLoader<DBComboBoxMultiselect> loader)
    • DBComboBoxMultiselect

      public DBComboBoxMultiselect(String caption)
  • Method Details

    • setFieldId

      public void setFieldId(String fieldId)
    • changeVariables

      public void changeVariables(Object source, Map<String,Object> variables)
      Specified by:
      changeVariables in interface VariableOwner
      Overrides:
      changeVariables in class ComboBoxMultiselect
    • getOptionsWithFilter

      protected List<?> getOptionsWithFilter(boolean needNullSelectOption)
      Overrides:
      getOptionsWithFilter in class ComboBoxMultiselect
    • setValue

      public void setValue(Object v)
      Specified by:
      setValue in interface Property<Object>
      Overrides:
      setValue in class AbstractSelect
    • setInternalValue

      protected void setInternalValue(Object newValue)
      Overrides:
      setInternalValue in class AbstractField<Object>
    • getContainerDataSource

      public Container getContainerDataSource()
      Specified by:
      getContainerDataSource in interface Container.Viewer
      Overrides:
      getContainerDataSource in class AbstractSelect
    • setFilterValue

      public void setFilterValue(String property, Object value)
    • removeFilterValue

      public void removeFilterValue(String property)
    • listen

      public void listen(String fieldKey, Field<?> field)
      Description copied from interface: ListenerField
      Fornece a referencia ao campo concreto para ouvir alteracoes
      Specified by:
      listen in interface ListenerField<Object>
      Parameters:
      fieldKey -
      field -
    • refresh

      public void refresh()
    • getListenFields

      public Collection<String> getListenFields()
      Description copied from interface: ListenerField
      Informa ao sistema a lista de campos que o componente deseja ouvir. Apos coletar essa informacao, o consumidor da fabrica de componentes deve localizar os campos necessarios, e invocar o metodo "listen".
      Specified by:
      getListenFields in interface ListenerField<Object>
      Returns:
    • bindProperty

      public void bindProperty(String fieldId, String propertyName)
      Description copied from interface: DBMultiBindField
      Informa ao componente os dados de bindagem da propriedade
      Specified by:
      bindProperty in interface DBMultiBindField
      Parameters:
      fieldId -
      propertyName -
    • bindParameter

      public void bindParameter(String fieldId, String propertyName, Object defaultValue)
      Description copied from interface: DBMultiBindField
      Informa ao componente os dados de bindagem do parametro dinamico para o datasource
      Specified by:
      bindParameter in interface DBMultiBindField
      Parameters:
      fieldId -
      propertyName -
      defaultValue -
    • bindParameter

      public void bindParameter(BindParameterContextValue contextValue, String propertyName, Object defaultValue)
      Description copied from interface: DBMultiBindField
      Informa ao componente os dados de bindagem contextual
      Specified by:
      bindParameter in interface DBMultiBindField
      Parameters:
      contextValue -
      propertyName -
      defaultValue -
    • setRefreshOnChange

      public void setRefreshOnChange(boolean refreshOnChange)
      Description copied from interface: DBMultiBindField
      Determina se o campo deve ouvir alteracoes nos campos bindados e se atualizar automaticamente
      Specified by:
      setRefreshOnChange in interface DBMultiBindField
      Parameters:
      refreshOnChange -
    • isRefreshOnChante

      public boolean isRefreshOnChante()
      Description copied from interface: DBMultiBindField
      Retorna a configuracao de atualizacao automatica do componente
      Specified by:
      isRefreshOnChante in interface DBMultiBindField
      Returns:
    • isMultiValue

      public boolean isMultiValue()
    • setExecutionContext

      public void setExecutionContext(ExecutionContext context)
      Description copied from interface: ExecutionContextAware
      Configura o contexto de execuco do campo
      Specified by:
      setExecutionContext in interface ExecutionContextAware
      Parameters:
      context -
    • getExecutionContext

      public ExecutionContext getExecutionContext()
      Description copied from interface: ExecutionContextAware
      Coleta o contexto de execucao deste campo
      Specified by:
      getExecutionContext in interface ExecutionContextAware
      Returns:
    • getCaptionValue

      public String getCaptionValue()
      Specified by:
      getCaptionValue in interface CaptionField
    • getType

      public Class<?> getType()
      Specified by:
      getType in interface Property<Object>
      Overrides:
      getType in class AbstractSelect
    • queryExecuted

      public void queryExecuted(QueryExecutionEvent event)
      Specified by:
      queryExecuted in interface QueryExecutionListener