public class SwitchableField extends AbstractCustomMultiField<SwitchableFieldDefinition,com.vaadin.v7.data.util.PropertysetItem>
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
componentProvider, definition, fieldFactoryFactory, i18nContentSupport, relatedFieldItem, root, selectionListener
Constructor and Description |
---|
SwitchableField(SwitchableFieldDefinition definition,
FieldFactoryFactory fieldFactoryFactory,
info.magnolia.objectfactory.ComponentProvider componentProvider,
com.vaadin.v7.data.Item relatedFieldItem,
I18NAuthoringSupport i18nAuthoringSupport) |
SwitchableField(SwitchableFieldDefinition definition,
FieldFactoryFactory fieldFactoryFactory,
info.magnolia.cms.i18n.I18nContentSupport i18nContentSupport,
info.magnolia.objectfactory.ComponentProvider componentProvider,
com.vaadin.v7.data.Item relatedFieldItem)
Deprecated.
since 5.3.5 removing i18nContentSupport dependency (actually unused way before that). Besides, fields should use i18nAuthoringSupport for internationalization.
|
Modifier and Type | Method and Description |
---|---|
protected com.vaadin.v7.ui.Field<?> |
getFieldByName(String fieldName)
Returns a
Field if it's existing. |
Class<? extends com.vaadin.v7.data.util.PropertysetItem> |
getType() |
protected com.vaadin.ui.Component |
initContent() |
protected void |
initFields(com.vaadin.v7.data.util.PropertysetItem fieldValues)
Initialize the fields based on the newValues.
Implemented logic should: - remove all component from the root component. |
boolean |
isEmpty()
A switchable field is empty when no choice has been made yet.
|
createLocalField, findPropertyId, getErrorMessage, getFields, initFields, isValid, setLocale
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, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getState, getState, getValidators, getValue, isBuffered, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValidationVisible, readDesign, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInternalValue, setInvalidAllowed, setInvalidCommitted, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setValidationVisible, setValue, 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, 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, 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 SwitchableField(SwitchableFieldDefinition definition, FieldFactoryFactory fieldFactoryFactory, info.magnolia.objectfactory.ComponentProvider componentProvider, com.vaadin.v7.data.Item relatedFieldItem, I18NAuthoringSupport i18nAuthoringSupport)
@Deprecated public SwitchableField(SwitchableFieldDefinition definition, FieldFactoryFactory fieldFactoryFactory, info.magnolia.cms.i18n.I18nContentSupport i18nContentSupport, info.magnolia.objectfactory.ComponentProvider componentProvider, com.vaadin.v7.data.Item relatedFieldItem)
protected com.vaadin.ui.Component initContent()
initContent
in class com.vaadin.v7.ui.CustomField<com.vaadin.v7.data.util.PropertysetItem>
protected void initFields(com.vaadin.v7.data.util.PropertysetItem fieldValues)
AbstractCustomMultiField
initFields
in class AbstractCustomMultiField<SwitchableFieldDefinition,com.vaadin.v7.data.util.PropertysetItem>
protected com.vaadin.v7.ui.Field<?> getFieldByName(String fieldName)
Field
if it's existing. Otherwise returns a null.public Class<? extends com.vaadin.v7.data.util.PropertysetItem> getType()
getType
in interface com.vaadin.v7.data.Property<com.vaadin.v7.data.util.PropertysetItem>
getType
in class com.vaadin.v7.ui.AbstractField<com.vaadin.v7.data.util.PropertysetItem>
public boolean isEmpty()
isEmpty
in interface com.vaadin.v7.ui.Field<com.vaadin.v7.data.util.PropertysetItem>
isEmpty
in class AbstractCustomMultiField<SwitchableFieldDefinition,com.vaadin.v7.data.util.PropertysetItem>
Copyright © 2018 Magnolia International Ltd.. All rights reserved.