Class AbstractTextField
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- com.vaadin.ui.AbstractField<String>
-
- com.vaadin.ui.AbstractTextField
-
- All Implemented Interfaces:
Buffered
,BufferedValidatable
,Property<String>
,Property.Editor
,Property.ReadOnlyStatusChangeListener
,Property.ReadOnlyStatusChangeNotifier
,Property.ValueChangeListener
,Property.ValueChangeNotifier
,Property.Viewer
,Validatable
,Action.ShortcutNotifier
,ConnectorEventListener
,ContextClickEvent.ContextClickNotifier
,FieldEvents.BlurNotifier
,FieldEvents.FocusNotifier
,FieldEvents.TextChangeNotifier
,MethodEventSource
,ClientConnector
,Sizeable
,VariableOwner
,Connector
,Component
,Component.Focusable
,Field<String>
,LegacyComponent
,Serializable
,EventListener
- Direct Known Subclasses:
PasswordField
,TextArea
,TextField
public abstract class AbstractTextField extends AbstractField<String> implements FieldEvents.BlurNotifier, FieldEvents.FocusNotifier, FieldEvents.TextChangeNotifier, LegacyComponent
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractTextField.TextChangeEventImpl
static class
AbstractTextField.TextChangeEventMode
Different modes how the TextField can triggerFieldEvents.TextChangeEvent
s.-
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractField
AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEvent
-
Nested classes/interfaces inherited from interface com.vaadin.data.Buffered
Buffered.SourceException
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.Field
Field.ValueChangeEvent
-
Nested classes/interfaces inherited from interface com.vaadin.data.Property
Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer
-
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
Sizeable.Unit
-
-
Field Summary
-
Fields inherited from class com.vaadin.ui.AbstractComponent
DESIGN_ATTR_PLAIN_TEXT
-
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTextField()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addBlurListener(FieldEvents.BlurListener listener)
Adds aBlurListener
to the Component which gets fired when aField
loses keyboard focus.void
addFocusListener(FieldEvents.FocusListener listener)
Adds aFocusListener
to the Component which gets fired when aField
receives keyboard focus.void
addListener(FieldEvents.BlurListener listener)
Deprecated.As of 7.0, replaced byaddBlurListener(BlurListener)
void
addListener(FieldEvents.FocusListener listener)
Deprecated.As of 7.0, replaced byaddFocusListener(FocusListener)
void
addListener(FieldEvents.TextChangeListener listener)
Deprecated.As of 7.0, replaced byaddTextChangeListener(TextChangeListener)
void
addTextChangeListener(FieldEvents.TextChangeListener listener)
void
beforeClientResponse(boolean initial)
Called before the shared state and RPC invocations are sent to the client.void
changeVariables(Object source, Map<String,Object> variables)
Called when one or more variables handled by the implementing class are changed.int
getColumns()
Gets the number of columns in the editor.int
getCursorPosition()
Returns the last known cursor position of the field.protected Collection<String>
getCustomAttributes()
Returns a collection of attributes that should not be handled by the basic implementation of theAbstractComponent.readDesign(org.jsoup.nodes.Element,com.vaadin.ui.declarative.DesignContext)
andAbstractComponent.writeDesign(org.jsoup.nodes.Element,com.vaadin.ui.declarative.DesignContext)
methods.String
getInputPrompt()
Gets the current input prompt.int
getMaxLength()
Returns the maximum number of characters in the field.String
getNullRepresentation()
Gets the null-string representation.protected AbstractTextFieldState
getState()
Returns the shared state bean with information to be sent from the server to the client.protected AbstractTextFieldState
getState(boolean markAsDirty)
Returns the shared state for this connector.AbstractTextField.TextChangeEventMode
getTextChangeEventMode()
int
getTextChangeTimeout()
Gets the timeout used to fireFieldEvents.TextChangeEvent
s when thegetTextChangeEventMode()
isAbstractTextField.TextChangeEventMode.LAZY
orAbstractTextField.TextChangeEventMode.TIMEOUT
.Class<String>
getType()
Returns the type of the Field.boolean
isEmpty()
Is the field empty? In general, "empty" state is same as null.boolean
isNullSettingAllowed()
Is setting nulls with null-string representation allowed.void
paintContent(PaintTarget target)
Paints the Paintable into a UIDL stream.void
readDesign(org.jsoup.nodes.Element design, DesignContext designContext)
Reads the component state from the given design.void
removeBlurListener(FieldEvents.BlurListener listener)
Removes aBlurListener
from the Component.void
removeFocusListener(FieldEvents.FocusListener listener)
Removes aFocusListener
from the Component.void
removeListener(FieldEvents.BlurListener listener)
Deprecated.As of 7.0, replaced byremoveBlurListener(BlurListener)
void
removeListener(FieldEvents.FocusListener listener)
Deprecated.As of 7.0, replaced byremoveFocusListener(FocusListener)
void
removeListener(FieldEvents.TextChangeListener listener)
Deprecated.As of 7.0, replaced byremoveTextChangeListener(TextChangeListener)
void
removeTextChangeListener(FieldEvents.TextChangeListener listener)
void
selectAll()
Selects all text in the field.void
setColumns(int columns)
Sets the number of columns in the editor.void
setCursorPosition(int pos)
Sets the cursor position in the field.void
setInputPrompt(String inputPrompt)
Sets the input prompt - a textual prompt that is displayed when the field would otherwise be empty, to prompt the user for input.protected void
setInternalValue(String newValue)
Sets the internal field value.void
setMaxLength(int maxLength)
Sets the maximum number of characters in the field.void
setNullRepresentation(String nullRepresentation)
Sets the null-string representation.void
setNullSettingAllowed(boolean nullSettingAllowed)
Sets the null conversion mode.void
setSelectionRange(int pos, int length)
Sets the range of text to be selected.void
setTextChangeEventMode(AbstractTextField.TextChangeEventMode inputEventMode)
Sets the mode how the TextField triggersFieldEvents.TextChangeEvent
s.void
setTextChangeTimeout(int timeout)
The text change timeout modifies how often text change events are communicated to the application whengetTextChangeEventMode()
isAbstractTextField.TextChangeEventMode.LAZY
orAbstractTextField.TextChangeEventMode.TIMEOUT
.void
setValue(String newValue)
Sets the value of the field.void
writeDesign(org.jsoup.nodes.Element design, DesignContext designContext)
Writes the component state to the given design.-
Methods inherited from class com.vaadin.ui.AbstractField
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, attach, clear, commit, detach, discard, fireReadOnlyStatusChange, fireValueChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, getValue, isBuffered, isImmediate, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, setValue, shouldHideErrors, toString, validate, validate, valueChange
-
Methods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, 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, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.vaadin.event.Action.ShortcutNotifier
addShortcutListener, removeShortcutListener
-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
-
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
-
Methods inherited from interface com.vaadin.ui.LegacyComponent
markAsDirty
-
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
-
Methods inherited from interface com.vaadin.server.VariableOwner
isEnabled, isImmediate
-
-
-
-
Method Detail
-
getState
protected AbstractTextFieldState getState()
Description copied from class:AbstractComponent
Returns the shared state bean with information to be sent from the server to the client. Subclasses should override this method and set any relevant fields of the state returned by super.getState().- Overrides:
getState
in classAbstractField<String>
- Returns:
- updated component shared state
-
getState
protected AbstractTextFieldState getState(boolean markAsDirty)
Description copied from class:AbstractClientConnector
Returns the shared state for this connector.- Overrides:
getState
in classAbstractField<String>
- Parameters:
markAsDirty
- true if the connector should automatically be marked dirty, false otherwise- Returns:
- The shared state for this connector. Never null.
- See Also:
AbstractClientConnector.getState()
-
beforeClientResponse
public void beforeClientResponse(boolean initial)
Description copied from interface:ClientConnector
Called before the shared state and RPC invocations are sent to the client. Gives the connector an opportunity to set computed/dynamic state values or to invoke last minute RPC methods depending on other component features.- Specified by:
beforeClientResponse
in interfaceClientConnector
- Overrides:
beforeClientResponse
in classAbstractField<String>
- Parameters:
initial
-true
if the client-side connector will be created and initialized after this method has been invoked.false
if there is already an initialized client-side connector.
-
paintContent
public void paintContent(PaintTarget target) throws PaintException
Description copied from interface:LegacyComponent
Paints the Paintable into a UIDL stream. This method creates the UIDL sequence describing it and outputs it to the given UIDL stream.
It is called when the contents of the component should be painted in response to the component first being shown or having been altered so that its visual representation is changed.
- Specified by:
paintContent
in interfaceLegacyComponent
- Parameters:
target
- the target UIDL stream where the component should paint itself to.- Throws:
PaintException
- if the paint operation failed.
-
changeVariables
public void changeVariables(Object source, Map<String,Object> variables)
Description copied from interface:VariableOwner
Called when one or more variables handled by the implementing class are changed.- Specified by:
changeVariables
in interfaceVariableOwner
- Parameters:
source
- the Source of the variable change. This is the origin of the event. For example in Web Adapter this is the request.variables
- the Mapping from variable names to new variable values.
-
getType
public Class<String> getType()
Description copied from class:AbstractField
Returns the type of the Field. The methodsgetValue
andsetValue
must be compatible with this type: one must be able to safely cast the value returned fromgetValue
to the given type and pass any variable assignable to this type as an argument tosetValue
.
-
getNullRepresentation
public String getNullRepresentation()
Gets the null-string representation.The null-valued strings are represented on the user interface by replacing the null value with this string. If the null representation is set null (not 'null' string), painting null value throws exception.
The default value is string 'null'.
- Returns:
- the String Textual representation for null strings.
- See Also:
isNullSettingAllowed()
-
isNullSettingAllowed
public boolean isNullSettingAllowed()
Is setting nulls with null-string representation allowed.If this property is true, writing null-representation string to text field always sets the field value to real null. If this property is false, null setting is not made, but the null values are maintained. Maintenance of null-values is made by only converting the textfield contents to real null, if the text field matches the null-string representation and the current value of the field is null.
By default this setting is false
- Returns:
- boolean Should the null-string represenation be always converted to null-values.
- See Also:
getNullRepresentation()
-
setNullRepresentation
public void setNullRepresentation(String nullRepresentation)
Sets the null-string representation.The null-valued strings are represented on the user interface by replacing the null value with this string. If the null representation is set null (not 'null' string), painting null value throws exception.
The default value is string 'null'
- Parameters:
nullRepresentation
- Textual representation for null strings.- See Also:
setNullSettingAllowed(boolean)
-
setNullSettingAllowed
public void setNullSettingAllowed(boolean nullSettingAllowed)
Sets the null conversion mode.If this property is true, writing null-representation string to text field always sets the field value to real null. If this property is false, null setting is not made, but the null values are maintained. Maintenance of null-values is made by only converting the textfield contents to real null, if the text field matches the null-string representation and the current value of the field is null.
By default this setting is false.
- Parameters:
nullSettingAllowed
- Should the null-string representation always be converted to null-values.- See Also:
getNullRepresentation()
-
isEmpty
public boolean isEmpty()
Description copied from interface:Field
Is the field empty? In general, "empty" state is same as null. As an exception, TextField also treats empty string as "empty".
-
getMaxLength
public int getMaxLength()
Returns the maximum number of characters in the field. Value -1 is considered unlimited. Terminal may however have some technical limits.- Returns:
- the maxLength
-
setMaxLength
public void setMaxLength(int maxLength)
Sets the maximum number of characters in the field. Value -1 is considered unlimited. Terminal may however have some technical limits.- Parameters:
maxLength
- the maxLength to set
-
getColumns
public int getColumns()
Gets the number of columns in the editor. If the number of columns is set 0, the actual number of displayed columns is determined implicitly by the adapter.- Returns:
- the number of columns in the editor.
-
setColumns
public void setColumns(int columns)
Sets the number of columns in the editor. If the number of columns is set 0, the actual number of displayed columns is determined implicitly by the adapter.- Parameters:
columns
- the number of columns to set.
-
getInputPrompt
public String getInputPrompt()
Gets the current input prompt.- Returns:
- the current input prompt, or null if not enabled
- See Also:
setInputPrompt(String)
-
setInputPrompt
public void setInputPrompt(String inputPrompt)
Sets the input prompt - a textual prompt that is displayed when the field would otherwise be empty, to prompt the user for input.- Parameters:
inputPrompt
-
-
setInternalValue
protected void setInternalValue(String newValue)
Description copied from class:AbstractField
Sets the internal field value. This is purely used by AbstractField to change the internal Field value. It does not trigger valuechange events. It can be overridden by the inheriting classes to update all dependent variables. Subclasses can also overrideAbstractField.getInternalValue()
if necessary.- Overrides:
setInternalValue
in classAbstractField<String>
- Parameters:
newValue
- the new value to be set.
-
setValue
public void setValue(String newValue) throws Property.ReadOnlyException
Description copied from class:AbstractField
Sets the value of the field.- Specified by:
setValue
in interfaceProperty<String>
- Overrides:
setValue
in classAbstractField<String>
- Parameters:
newValue
- the New value of the field.- Throws:
Property.ReadOnlyException
- if the object is in read-only mode
-
setTextChangeEventMode
public void setTextChangeEventMode(AbstractTextField.TextChangeEventMode inputEventMode)
Sets the mode how the TextField triggersFieldEvents.TextChangeEvent
s.- Parameters:
inputEventMode
- the new mode- See Also:
AbstractTextField.TextChangeEventMode
-
getTextChangeEventMode
public AbstractTextField.TextChangeEventMode getTextChangeEventMode()
- Returns:
- the mode used to trigger
FieldEvents.TextChangeEvent
s.
-
addTextChangeListener
public void addTextChangeListener(FieldEvents.TextChangeListener listener)
- Specified by:
addTextChangeListener
in interfaceFieldEvents.TextChangeNotifier
-
addListener
@Deprecated public void addListener(FieldEvents.TextChangeListener listener)
Deprecated.As of 7.0, replaced byaddTextChangeListener(TextChangeListener)
- Specified by:
addListener
in interfaceFieldEvents.TextChangeNotifier
-
removeTextChangeListener
public void removeTextChangeListener(FieldEvents.TextChangeListener listener)
- Specified by:
removeTextChangeListener
in interfaceFieldEvents.TextChangeNotifier
-
removeListener
@Deprecated public void removeListener(FieldEvents.TextChangeListener listener)
Deprecated.As of 7.0, replaced byremoveTextChangeListener(TextChangeListener)
- Specified by:
removeListener
in interfaceFieldEvents.TextChangeNotifier
-
setTextChangeTimeout
public void setTextChangeTimeout(int timeout)
The text change timeout modifies how often text change events are communicated to the application whengetTextChangeEventMode()
isAbstractTextField.TextChangeEventMode.LAZY
orAbstractTextField.TextChangeEventMode.TIMEOUT
.- Parameters:
timeout
- the timeout in milliseconds- See Also:
getTextChangeEventMode()
-
getTextChangeTimeout
public int getTextChangeTimeout()
Gets the timeout used to fireFieldEvents.TextChangeEvent
s when thegetTextChangeEventMode()
isAbstractTextField.TextChangeEventMode.LAZY
orAbstractTextField.TextChangeEventMode.TIMEOUT
.- Returns:
- the timeout value in milliseconds
-
selectAll
public void selectAll()
Selects all text in the field.- Since:
- 6.4
-
setSelectionRange
public void setSelectionRange(int pos, int length)
Sets the range of text to be selected. As a side effect the field will become focused.- Parameters:
pos
- the position of the first character to be selectedlength
- the number of characters to be selected- Since:
- 6.4
-
setCursorPosition
public void setCursorPosition(int pos)
Sets the cursor position in the field. As a side effect the field will become focused.- Parameters:
pos
- the position for the cursor- Since:
- 6.4
-
getCursorPosition
public int getCursorPosition()
Returns the last known cursor position of the field.Note that due to the client server nature or the GWT terminal, Vaadin cannot provide the exact value of the cursor position in most situations. The value is updated only when the client side terminal communicates to TextField, like on
Field.ValueChangeEvent
s andFieldEvents.TextChangeEvent
s. This may change later if a deep push integration is built to Vaadin.- Returns:
- the cursor position
-
addFocusListener
public void addFocusListener(FieldEvents.FocusListener listener)
Description copied from interface:FieldEvents.FocusNotifier
Adds aFocusListener
to the Component which gets fired when aField
receives keyboard focus.- Specified by:
addFocusListener
in interfaceFieldEvents.FocusNotifier
- See Also:
FieldEvents.FocusListener
-
addListener
@Deprecated public void addListener(FieldEvents.FocusListener listener)
Deprecated.As of 7.0, replaced byaddFocusListener(FocusListener)
- Specified by:
addListener
in interfaceFieldEvents.FocusNotifier
-
removeFocusListener
public void removeFocusListener(FieldEvents.FocusListener listener)
Description copied from interface:FieldEvents.FocusNotifier
Removes aFocusListener
from the Component.- Specified by:
removeFocusListener
in interfaceFieldEvents.FocusNotifier
- See Also:
FieldEvents.FocusListener
-
removeListener
@Deprecated public void removeListener(FieldEvents.FocusListener listener)
Deprecated.As of 7.0, replaced byremoveFocusListener(FocusListener)
- Specified by:
removeListener
in interfaceFieldEvents.FocusNotifier
-
addBlurListener
public void addBlurListener(FieldEvents.BlurListener listener)
Description copied from interface:FieldEvents.BlurNotifier
Adds aBlurListener
to the Component which gets fired when aField
loses keyboard focus.- Specified by:
addBlurListener
in interfaceFieldEvents.BlurNotifier
- See Also:
FieldEvents.BlurListener
-
addListener
@Deprecated public void addListener(FieldEvents.BlurListener listener)
Deprecated.As of 7.0, replaced byaddBlurListener(BlurListener)
- Specified by:
addListener
in interfaceFieldEvents.BlurNotifier
-
removeBlurListener
public void removeBlurListener(FieldEvents.BlurListener listener)
Description copied from interface:FieldEvents.BlurNotifier
Removes aBlurListener
from the Component.- Specified by:
removeBlurListener
in interfaceFieldEvents.BlurNotifier
- See Also:
FieldEvents.BlurListener
-
removeListener
@Deprecated public void removeListener(FieldEvents.BlurListener listener)
Deprecated.As of 7.0, replaced byremoveBlurListener(BlurListener)
- Specified by:
removeListener
in interfaceFieldEvents.BlurNotifier
-
readDesign
public void readDesign(org.jsoup.nodes.Element design, DesignContext designContext)
Description copied from interface:Component
Reads the component state from the given design.The component is responsible not only for updating its own state but also for ensuring that its children update their state based on the design.
It is assumed that the component is in its default state when this method is called. Reading should only take into consideration attributes specified in the design and not reset any unspecified attributes to their defaults.
This method must not modify the design.
- Specified by:
readDesign
in interfaceComponent
- Overrides:
readDesign
in classAbstractField<String>
- Parameters:
design
- The element to obtain the state fromdesignContext
- The DesignContext instance used for parsing the design
-
getCustomAttributes
protected Collection<String> getCustomAttributes()
Description copied from class:AbstractComponent
Returns a collection of attributes that should not be handled by the basic implementation of theAbstractComponent.readDesign(org.jsoup.nodes.Element,com.vaadin.ui.declarative.DesignContext)
andAbstractComponent.writeDesign(org.jsoup.nodes.Element,com.vaadin.ui.declarative.DesignContext)
methods. Typically these are handled in a custom way in the overridden versions of the above methods- Overrides:
getCustomAttributes
in classAbstractField<String>
- Returns:
- the collection of attributes that are not handled by the basic implementation
-
writeDesign
public void writeDesign(org.jsoup.nodes.Element design, DesignContext designContext)
Description copied from interface:Component
Writes the component state to the given design.The component is responsible not only for writing its own state but also for ensuring that its children write their state to the design.
This method must not modify the component state.
- Specified by:
writeDesign
in interfaceComponent
- Overrides:
writeDesign
in classAbstractField<String>
- Parameters:
design
- The element to write the component state to. Any previous attributes or child nodes are not cleared.designContext
- The DesignContext instance used for writing the design
-
-