Class DBComboBox
Object
AbstractClientConnector
AbstractComponent
AbstractLegacyComponent
AbstractField<Object>
AbstractSelect
ComboBox
DBComboBox
- 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 DBComboBox
extends ComboBox
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 ComboBox
ComboBox.ItemStyleGeneratorNested 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.VerticalLocationIsNested classes/interfaces inherited from class AbstractField
AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEventNested classes/interfaces inherited from interface Buffered
Buffered.SourceExceptionNested classes/interfaces inherited from interface ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerNested classes/interfaces inherited from interface Component
Component.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerNested 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.ViewerNested classes/interfaces inherited from interface Field
Field.ValueChangeEventNested classes/interfaces inherited from interface Property
Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeEvent, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.ViewerNested classes/interfaces inherited from interface Sizeable
Sizeable.Unit -
Field Summary
Fields inherited from class ComboBox
pageLengthFields 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, itemsFields inherited from class AbstractComponent
DESIGN_ATTR_PLAIN_TEXTFields inherited from interface AbstractSelect.Filtering
FILTERINGMODE_CONTAINS, FILTERINGMODE_OFF, FILTERINGMODE_STARTSWITHFields 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
ConstructorsConstructorDescriptionDBComboBox(String caption) DBComboBox(String caption, ContainerLoader<DBComboBox> loader) DBComboBox(String caption, Container dataSource) DBComboBox(String caption, Collection<?> options) -
Method Summary
Modifier and TypeMethodDescriptionvoidbindParameter(BindParameterContextValue contextValue, String propertyName, Object defaultValue) Informa ao componente os dados de bindagem contextualvoidbindParameter(String fieldId, String propertyName, Object defaultValue) Informa ao componente os dados de bindagem do parametro dinamico para o datasourcevoidbindProperty(String fieldId, String propertyName) Informa ao componente os dados de bindagem da propriedadeColeta o contexto de execucao deste campoInforma ao sistema a lista de campos que o componente deseja ouvir.booleanbooleanRetorna a configuracao de atualizacao automatica do componentevoidFornece a referencia ao campo concreto para ouvir alteracoesvoidqueryExecuted(QueryExecutionEvent event) voidrefresh()voidremoveFilterValue(String property) voidsetExecutionContext(ExecutionContext context) Configura o contexto de execuco do campovoidsetFieldId(String fieldId) voidsetFilterValue(String property, Object value) voidsetRefreshOnChange(boolean refreshOnChange) Determina se o campo deve ouvir alteracoes nos campos bindados e se atualizar automaticamentevoidtoString()Methods inherited from class ComboBox
addBlurListener, addFocusListener, buildFilter, changeVariables, containerItemSetChange, getFilteredOptions, getFilteringMode, getInputPrompt, getItemStyleGenerator, getOptionsWithFilter, getPageLength, getPopupWidth, getState, isMultiSelect, isScrollToSelectedItem, isTextInputAllowed, paintContent, removeBlurListener, removeFocusListener, setFilteringMode, setInputPrompt, setItemStyleGenerator, setMultiSelect, setPageLength, setPopupWidth, setScrollToSelectedItem, setTextInputAllowedMethods inherited from class AbstractSelect
addContainerProperty, addItem, addItem, addItems, addItems, addItemSetChangeListener, addListener, addListener, addPropertySetChangeListener, attach, containerPropertySetChange, containsId, detach, fireItemSetChange, firePropertySetChange, getCaptionChangeListener, getContainerDataSource, getContainerProperty, getContainerPropertyIds, getItem, getItemCaption, getItemCaptionMode, getItemCaptionPropertyId, getItemIcon, getItemIconPropertyId, getItemIds, getListeners, getNewItemHandler, getNullSelectionItemId, getState, getType, getType, getValue, getVisibleItemIds, isEmpty, isNewItemsAllowed, isNullSelectionAllowed, isSelected, paintItem, readDesign, readItem, readItems, removeAllItems, removeContainerProperty, removeItem, removeItemSetChangeListener, removeListener, removeListener, removePropertySetChangeListener, sanitizeSelection, select, setContainerDataSource, setItemCaption, setItemCaptionMode, setItemCaptionPropertyId, setItemIcon, setItemIconPropertyId, setNewItemHandler, setNewItemsAllowed, setNullSelectionAllowed, setNullSelectionItemId, setValue, size, unselect, writeDesign, writeItem, writeItemsMethods 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, setInternalValue, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, shouldHideErrors, validate, validate, valueChangeMethods inherited from class AbstractLegacyComponent
getExplicitImmediateValue, isImmediate, setImmediateMethods 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, setWidthUndefinedMethods 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, updateDiffstateMethods inherited from interface Action.ShortcutNotifier
addShortcutListener, removeShortcutListenerMethods inherited from interface Buffered
commit, discard, isBuffered, isModified, setBufferedMethods inherited from interface BufferedValidatable
isInvalidCommitted, setInvalidCommittedMethods inherited from interface ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods 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, writeDesignMethods inherited from interface Component.Focusable
focus, getTabIndex, setTabIndexMethods inherited from interface Connector
getConnectorIdMethods inherited from interface Field
clear, getRequiredError, isEmpty, isRequired, setRequired, setRequiredErrorMethods inherited from interface LegacyComponent
markAsDirtyMethods inherited from interface Property
getType, getValue, isReadOnly, setReadOnlyMethods inherited from interface Property.ValueChangeListener
valueChangeMethods inherited from interface Property.ValueChangeNotifier
addListener, addValueChangeListener, removeListener, removeValueChangeListenerMethods inherited from interface Property.Viewer
getPropertyDataSource, setPropertyDataSourceMethods inherited from interface Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefinedMethods inherited from interface Validatable
addValidator, getValidators, isInvalidAllowed, isValid, removeAllValidators, removeValidator, setInvalidAllowed, validateMethods inherited from interface VariableOwner
isEnabled
-
Constructor Details
-
DBComboBox
public DBComboBox() -
DBComboBox
-
DBComboBox
-
DBComboBox
-
DBComboBox
-
-
Method Details
-
setFieldId
-
isMultiValue
public boolean isMultiValue() -
setValue
- Specified by:
setValuein interfaceProperty<Object>- Overrides:
setValuein classAbstractSelect
-
getSQLContainerDataSource
-
setFilterValue
-
removeFilterValue
-
listen
Description copied from interface:ListenerFieldFornece a referencia ao campo concreto para ouvir alteracoes- Specified by:
listenin interfaceListenerField<Object>- Parameters:
fieldKey-field-
-
refresh
public void refresh() -
getListenFields
Description copied from interface:ListenerFieldInforma 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:
getListenFieldsin interfaceListenerField<Object>- Returns:
-
bindProperty
Description copied from interface:DBMultiBindFieldInforma ao componente os dados de bindagem da propriedade- Specified by:
bindPropertyin interfaceDBMultiBindField- Parameters:
fieldId-propertyName-
-
bindParameter
Description copied from interface:DBMultiBindFieldInforma ao componente os dados de bindagem do parametro dinamico para o datasource- Specified by:
bindParameterin interfaceDBMultiBindField- Parameters:
fieldId-propertyName-defaultValue-
-
bindParameter
public void bindParameter(BindParameterContextValue contextValue, String propertyName, Object defaultValue) Description copied from interface:DBMultiBindFieldInforma ao componente os dados de bindagem contextual- Specified by:
bindParameterin interfaceDBMultiBindField- Parameters:
contextValue-propertyName-defaultValue-
-
setRefreshOnChange
public void setRefreshOnChange(boolean refreshOnChange) Description copied from interface:DBMultiBindFieldDetermina se o campo deve ouvir alteracoes nos campos bindados e se atualizar automaticamente- Specified by:
setRefreshOnChangein interfaceDBMultiBindField- Parameters:
refreshOnChange-
-
isRefreshOnChante
public boolean isRefreshOnChante()Description copied from interface:DBMultiBindFieldRetorna a configuracao de atualizacao automatica do componente- Specified by:
isRefreshOnChantein interfaceDBMultiBindField- Returns:
-
setExecutionContext
Description copied from interface:ExecutionContextAwareConfigura o contexto de execuco do campo- Specified by:
setExecutionContextin interfaceExecutionContextAware- Parameters:
context-
-
getExecutionContext
Description copied from interface:ExecutionContextAwareColeta o contexto de execucao deste campo- Specified by:
getExecutionContextin interfaceExecutionContextAware- Returns:
-
getCaptionValue
- Specified by:
getCaptionValuein interfaceCaptionField
-
toString
-
queryExecuted
- Specified by:
queryExecutedin interfaceQueryExecutionListener
-