Class MultivalueTextField

Object
AbstractClientConnector
AbstractComponent
AbstractLegacyComponent
AbstractField<Object>
CustomField<Object>
MultivalueTextField
All Implemented Interfaces:
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 MultivalueTextField extends CustomField<Object>
Componente Wrapper para TextFields MultiValores
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.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
    MultivalueTextField(TextField editorField, Type type)
     
    MultivalueTextField(TextField editorField, Type type, boolean allowDuplicate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    VerticalLayout
     
    int
     
    Class<? extends Object>
     
     
    Table
     
    protected Component
     
    boolean
     
    boolean
     
    boolean
     
    void
     
    void
    setAllowDuplicate(boolean allowDuplicate)
     
    void
    setConfirmToDelete(boolean confirmToDelete)
     
    void
    setEnabled(boolean enabled)
     
    void
    setHeight(float height, Sizeable.Unit unit)
     
    protected void
     
    void
    setReadOnly(boolean readOnly)
     
    void
    setRows(int rows)
     
    void
    setWidth(float height, Sizeable.Unit unit)
     

    Methods inherited from class CustomField

    attach, focus, getContent, getTabIndex, iterator, setFocusDelegate, setTabIndex

    Methods inherited from class AbstractField

    addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, detach, discard, fireReadOnlyStatusChange, fireValueChange, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getState, getState, getValidators, getValue, isBuffered, isEmpty, isInvalidAllowed, isInvalidCommitted, 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, setValue, shouldHideErrors, validate, validate, valueChange, writeDesign

    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, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, 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, 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, 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 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, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign

    Methods inherited from interface Connector

    getConnectorId

    Methods inherited from interface Iterable

    forEach, spliterator

    Methods inherited from interface Sizeable

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

    • MultivalueTextField

      public MultivalueTextField(TextField editorField, Type type)
    • MultivalueTextField

      public MultivalueTextField(TextField editorField, Type type, boolean allowDuplicate)
  • Method Details

    • getMainLayout

      public VerticalLayout getMainLayout()
    • isConfirmToDelete

      public boolean isConfirmToDelete()
    • setConfirmToDelete

      public void setConfirmToDelete(boolean confirmToDelete)
    • isAllowDuplicate

      public boolean isAllowDuplicate()
    • setAllowDuplicate

      public void setAllowDuplicate(boolean allowDuplicate)
    • setHeight

      public void setHeight(float height, Sizeable.Unit unit)
      Specified by:
      setHeight in interface Sizeable
      Overrides:
      setHeight in class CustomField<Object>
    • setWidth

      public void setWidth(float height, Sizeable.Unit unit)
      Specified by:
      setWidth in interface Sizeable
      Overrides:
      setWidth in class CustomField<Object>
    • removeAllValues

      public void removeAllValues()
    • setReadOnly

      public void setReadOnly(boolean readOnly)
      Specified by:
      setReadOnly in interface Property<Object>
      Overrides:
      setReadOnly in class AbstractField<Object>
    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface Component
      Overrides:
      setEnabled in class AbstractComponent
    • setRows

      public void setRows(int rows)
    • getRows

      public int getRows()
    • initContent

      protected Component initContent()
      Specified by:
      initContent in class CustomField<Object>
    • getType

      public Class<? extends Object> getType()
      Specified by:
      getType in interface Property<Object>
      Specified by:
      getType in class AbstractField<Object>
    • setInternalValue

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

      public boolean isModified()
      Specified by:
      isModified in interface Buffered
      Overrides:
      isModified in class AbstractField<Object>
    • getValues

      public Collection<Object> getValues()
    • getValuesTable

      public Table getValuesTable()