public class LinkField extends com.vaadin.v7.ui.CustomField<String>
PropertyTranslator
can be set in order to have a different display and property stored.
For example, display can be the Item path and value stored is the identifier of the Item.com.vaadin.v7.ui.AbstractField.FocusShortcut, com.vaadin.v7.ui.AbstractField.ReadOnlyStatusChangeEvent
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
com.vaadin.server.Sizeable.Unit
com.vaadin.v7.ui.Field.ValueChangeEvent
com.vaadin.v7.data.Buffered.SourceException
com.vaadin.v7.data.Property.Editor, com.vaadin.v7.data.Property.ReadOnlyException, com.vaadin.v7.data.Property.ReadOnlyStatusChangeListener, com.vaadin.v7.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.v7.data.Property.Transactional<T>, com.vaadin.v7.data.Property.ValueChangeListener, com.vaadin.v7.data.Property.ValueChangeNotifier, com.vaadin.v7.data.Property.Viewer
Constructor and Description |
---|
LinkField() |
LinkField(LinkFieldDefinition linkFieldDefinition,
AppController appController,
UiContext uiContext,
info.magnolia.objectfactory.ComponentProvider componentProvider)
Deprecated.
|
LinkField(LinkFieldDefinition linkFieldDefinition,
info.magnolia.objectfactory.ComponentProvider componentProvider)
Deprecated.
since 5.5, use
LinkField() instead, none of arguments are required. |
Modifier and Type | Method and Description |
---|---|
com.vaadin.ui.Button |
getSelectButton() |
com.vaadin.v7.ui.TextField |
getTextField() |
Class<String> |
getType() |
String |
getValue() |
protected com.vaadin.ui.Component |
initContent() |
boolean |
isEmpty() |
void |
setButtonCaptionNew(String buttonCaptionNew)
Caption section.
|
void |
setButtonCaptionOther(String buttonCaptionOther) |
void |
setContentPreview(com.vaadin.ui.Component contentPreviewComponent) |
void |
setFieldEditable(boolean isFieldEditable) |
protected void |
setInternalValue(String newValue) |
void |
setReadOnly(boolean readOnly) |
void |
setTextFieldConverter(com.vaadin.v7.data.util.converter.Converter textFieldConverter) |
void |
setValue(String newValue) |
attach, focus, getContent, getTabIndex, iterator, setFocusDelegate, setHeight, setTabIndex, setWidth
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, isBuffered, 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, writeDesign
getExplicitImmediateValue, isImmediate, setImmediate
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, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefined
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, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidthUndefined
forEach, spliterator
public LinkField()
@Deprecated public LinkField(LinkFieldDefinition linkFieldDefinition, info.magnolia.objectfactory.ComponentProvider componentProvider)
LinkField()
instead, none of arguments are required.@Deprecated public LinkField(LinkFieldDefinition linkFieldDefinition, AppController appController, UiContext uiContext, info.magnolia.objectfactory.ComponentProvider componentProvider)
protected com.vaadin.ui.Component initContent()
initContent
in class com.vaadin.v7.ui.CustomField<String>
public com.vaadin.v7.ui.TextField getTextField()
public com.vaadin.ui.Button getSelectButton()
public String getValue()
public void setValue(String newValue) throws com.vaadin.v7.data.Property.ReadOnlyException, com.vaadin.v7.data.util.converter.Converter.ConversionException
protected void setInternalValue(String newValue)
setInternalValue
in class com.vaadin.v7.ui.AbstractField<String>
public void setReadOnly(boolean readOnly)
public void setContentPreview(com.vaadin.ui.Component contentPreviewComponent)
public void setButtonCaptionNew(String buttonCaptionNew)
public void setButtonCaptionOther(String buttonCaptionOther)
public void setTextFieldConverter(com.vaadin.v7.data.util.converter.Converter textFieldConverter)
public void setFieldEditable(boolean isFieldEditable)
Copyright © 2018 Magnolia International Ltd.. All rights reserved.