Class 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
Componente Wrapper para TextFields MultiValores
- Author:
- Eduardo Frazao
- 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.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
ConstructorsConstructorDescriptionMultivalueTextField(TextField editorField, Type type) MultivalueTextField(TextField editorField, Type type, boolean allowDuplicate) -
Method Summary
Modifier and TypeMethodDescriptionVerticalLayoutintgetRows()getType()Tableprotected ComponentbooleanbooleanbooleanvoidvoidsetAllowDuplicate(boolean allowDuplicate) voidsetConfirmToDelete(boolean confirmToDelete) voidsetEnabled(boolean enabled) voidsetHeight(float height, Sizeable.Unit unit) protected voidsetInternalValue(Object newValue) voidsetReadOnly(boolean readOnly) voidsetRows(int rows) voidsetWidth(float height, Sizeable.Unit unit) Methods inherited from class CustomField
attach, focus, getContent, getTabIndex, iterator, setFocusDelegate, setTabIndexMethods 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, 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, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, 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, 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 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, 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 Connector
getConnectorIdMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidthFull, setWidthUndefined
-
Constructor Details
-
MultivalueTextField
-
MultivalueTextField
-
-
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:
setHeightin interfaceSizeable- Overrides:
setHeightin classCustomField<Object>
-
setWidth
public void setWidth(float height, Sizeable.Unit unit) - Specified by:
setWidthin interfaceSizeable- Overrides:
setWidthin classCustomField<Object>
-
removeAllValues
public void removeAllValues() -
setReadOnly
public void setReadOnly(boolean readOnly) -
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceComponent- Overrides:
setEnabledin classAbstractComponent
-
setRows
public void setRows(int rows) -
getRows
public int getRows() -
initContent
protected Component initContent()- Specified by:
initContentin classCustomField<Object>
-
getType
-
setInternalValue
- Overrides:
setInternalValuein classAbstractField<Object>
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfaceBuffered- Overrides:
isModifiedin classAbstractField<Object>
-
getValues
-
getValuesTable
public Table getValuesTable()
-