Class UserInfoFieldWrapper<T>

Object
AbstractClientConnector
AbstractComponent
AbstractLegacyComponent
AbstractField<T>
CustomField<T>
FieldWrapper<T>
UserInfoFieldWrapper<T>
Type Parameters:
T -
All Implemented Interfaces:
ExecutionContextAware, ExecutionContextField<T>, Action.ShortcutNotifier, ContextClickEvent.ContextClickNotifier, MethodEventSource, SerializableEventListener, ClientConnector, Sizeable, Connector, Component, Component.Focusable, HasComponents, Buffered, BufferedValidatable, Property<T>, Property.Editor, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer, Validatable, Field<T>, Serializable, Iterable<Component>, EventListener

public class UserInfoFieldWrapper<T> extends FieldWrapper<T> implements ExecutionContextField<T>
Wrapper de campos, com um sistema de contexto de execucao. Ao envelopar um campo nesta classe, assim que um contexto for informado ao componente, o sistema tentara setar o valor inicial do campo para a informacao de contexto configurada. Caso uma propriedade seja configurada, o sistema tentara recuperar a propriedade do usuario e este sera o valor a ser inserido.
Author:
Eduardo Frazao
See Also:
  • Nested Class Summary

    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 Field

    Field.ValueChangeEvent

    Nested classes/interfaces inherited from interface HasComponents

    HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener

    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 AbstractComponent

    DESIGN_ATTR_PLAIN_TEXT

    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
    UserInfoFieldWrapper(Field<T> field, UserContext userContext)
     
    UserInfoFieldWrapper(Field<T> field, UserContext userContext, String propertyName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Coleta o contexto de execucao deste campo
     
    void
    Configura o contexto de execuco do campo
    void
    setTypeHint(Class<?> typeHint)
     

    Methods inherited from class CustomField

    attach, getContent, iterator, setFocusDelegate

    Methods inherited from class AbstractField

    addListener, addListener, addReadOnlyStatusChangeListener, beforeClientResponse, detach, fireReadOnlyStatusChange, fireValueChange, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getState, getState, isValidationVisible, readDesign, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInternalValue, setLocale, setValidationVisible, setValue, setValue, shouldHideErrors, validate, writeDesign

    Methods inherited from class AbstractLegacyComponent

    getExplicitImmediateValue, isImmediate, setImmediate

    Methods inherited from class AbstractComponent

    addContextClickListener, addListener, addShortcutListener, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getIcon, getId, getLocale, getParent, isCaptionAsHtml, isConnectorEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, removeContextClickListener, removeListener, removeShortcutListener, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setHeightFull, setIcon, setId, setParent, setRequiredIndicatorVisible, setResponsive, setWidthFull

    Methods inherited from class AbstractClientConnector

    addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, 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, markAsDirty, 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 Iterable

    forEach, spliterator

    Methods inherited from interface Property

    getType, getValue, isReadOnly, setReadOnly, setValue

    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