Class DBTwinColSelect
- All Implemented Interfaces:
ExecutionContextAware,ExecutionContextField<Object>,DBMultiBindField,ListenerField<Object>,QueryExecutionListener,Action.ShortcutNotifier,ContextClickEvent.ContextClickNotifier,MethodEventSource,SerializableEventListener,ClientConnector,Sizeable,Connector,Component,Component.Focusable,HasComponents,Buffered,BufferedValidatable,Property<Object>,Property.Editor,Property.ReadOnlyStatusChangeListener,Property.ReadOnlyStatusChangeNotifier,Property.ValueChangeListener,Property.ValueChangeNotifier,Property.Viewer,Validatable,Field<Object>,Serializable,Iterable<Component>,EventListener
public class DBTwinColSelect
extends CustomField<Object>
implements ListenerField<Object>, DBMultiBindField, ExecutionContextField<Object>, QueryExecutionListener
- See Also:
-
Nested Class Summary
Nested 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 Field
Field.ValueChangeEventNested classes/interfaces inherited from interface HasComponents
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListenerNested 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 AbstractComponent
DESIGN_ATTR_PLAIN_TEXTFields 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
ConstructorsConstructorDescriptionDBTwinColSelect(ContainerLoader<DBTwinColSelect> loader, boolean filterable, Object filterPropertyId) DBTwinColSelect(Container.Filterable container, boolean filterable, Object filterPropertyId) DBTwinColSelect(String caption, ContainerLoader<DBTwinColSelect> loader, boolean filterable, Object filterPropertyId) DBTwinColSelect(String caption, Container.Filterable container, boolean filterable, Object filterPropertyId) -
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 propriedadevoidclear()voidColeta o contexto de execucao deste campogetItemCaption(Object itemId) Informa ao sistema a lista de campos que o componente deseja ouvir.intintgetRows()TwinColSelectgetType()protected ComponentbooleanbooleanRetorna a configuracao de atualizacao automatica do componentevoidFornece a referencia ao campo concreto para ouvir alteracoesvoidqueryExecuted(QueryExecutionEvent event) voidsetEnabled(boolean enabled) voidsetExecutionContext(ExecutionContext context) Configura o contexto de execuco do campovoidsetFieldId(String fieldId) voidvoidsetFilterableVisible(boolean visible) voidprotected voidsetInternalValue(Object newValue) voidsetKeyPropertyId(String keyPropertyId) voidsetMaxSelectedItens(int maxSelectedItens) voidsetReadOnly(boolean readOnly) voidsetRefreshOnChange(boolean refreshOnChange) Determina se o campo deve ouvir alteracoes nos campos bindados e se atualizar automaticamentevoidsetRequireFilter(boolean required) voidsetRows(int rows) voidsetSelect(TwinColSelect select) voidvoidMethods inherited from class CustomField
attach, focus, getContent, getTabIndex, iterator, setFocusDelegate, setHeight, setTabIndex, setWidthMethods inherited from class AbstractField
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, commit, detach, discard, fireReadOnlyStatusChange, fireValueChange, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getState, getState, getValidators, getValue, isBuffered, isEmpty, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readDesign, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setRequired, setRequiredError, setValidationVisible, setValue, setValue, shouldHideErrors, validate, validate, valueChange, writeDesignMethods 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, setHeightFull, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidthFull, setWidthUndefinedMethods inherited from class AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, 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, setErrorHandler, setResource, updateDiffstateMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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, markAsDirty, 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, 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
getRequiredError, isEmpty, isRequired, setRequired, setRequiredErrorMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Property
getValue, isReadOnlyMethods 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, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidthFull, setWidthUndefinedMethods inherited from interface Validatable
addValidator, getValidators, isInvalidAllowed, isValid, removeAllValidators, removeValidator, setInvalidAllowed, validate
-
Constructor Details
-
DBTwinColSelect
-
DBTwinColSelect
-
DBTwinColSelect
public DBTwinColSelect(ContainerLoader<DBTwinColSelect> loader, boolean filterable, Object filterPropertyId) -
DBTwinColSelect
public DBTwinColSelect(String caption, ContainerLoader<DBTwinColSelect> loader, boolean filterable, Object filterPropertyId)
-
-
Method Details
-
setFieldId
-
getMaxSelectedItens
public int getMaxSelectedItens() -
setMaxSelectedItens
public void setMaxSelectedItens(int maxSelectedItens) -
getKeyPropertyId
-
setKeyPropertyId
-
setRequireFilter
public void setRequireFilter(boolean required) -
isFilterRequired
public boolean isFilterRequired() -
setValue
-
getItemCaption
-
setRows
public void setRows(int rows) -
getRows
public int getRows() -
setWidth
- Specified by:
setWidthin interfaceSizeable- Overrides:
setWidthin classAbstractComponent
-
setHeight
- Specified by:
setHeightin interfaceSizeable- Overrides:
setHeightin classAbstractComponent
-
setFilter
-
clearFilter
public void clearFilter() -
clear
public void clear() -
setInternalValue
- Overrides:
setInternalValuein classAbstractField<Object>
-
initContent
protected Component initContent()- Specified by:
initContentin classCustomField<Object>
-
getType
-
getSelect
public TwinColSelect getSelect() -
setSelect
public void setSelect(TwinColSelect select) -
setReadOnly
public void setReadOnly(boolean readOnly) -
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceComponent- Overrides:
setEnabledin classAbstractComponent
-
getContainerDataSource
-
listen
Description copied from interface:ListenerFieldFornece a referencia ao campo concreto para ouvir alteracoes- Specified by:
listenin interfaceListenerField<Object>- Parameters:
fieldKey-field-
-
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-
-
setFilterableVisible
public void setFilterableVisible(boolean visible) -
getExecutionContext
Description copied from interface:ExecutionContextAwareColeta o contexto de execucao deste campo- Specified by:
getExecutionContextin interfaceExecutionContextAware- Returns:
-
queryExecuted
- Specified by:
queryExecutedin interfaceQueryExecutionListener
-