A
- the generic typepublic abstract class AbstractFieldWidgetPresenter<A extends com.vaadin.ui.Component> extends AbstractVaadinWidgetPresenter<A> implements org.eclipse.osbp.ecview.core.common.presentation.IFieldPresentation<A>, org.eclipse.osbp.runtime.designer.api.IDesignerService.IDesignListener
IFieldPresentation
.org.eclipse.osbp.ecview.core.common.presentation.IFieldPresentation.Event
org.eclipse.osbp.runtime.common.dispose.IDisposable.DisposableUtil, org.eclipse.osbp.runtime.common.dispose.IDisposable.DisposeException, org.eclipse.osbp.runtime.common.dispose.IDisposable.Listener
CSS_CLASS_COMPRESSOR, CSS_CLASS_CONTROL, CSS_CLASS_CONTROL_BASE
Constructor and Description |
---|
AbstractFieldWidgetPresenter() |
AbstractFieldWidgetPresenter(org.eclipse.osbp.ecview.core.common.editpart.IEmbeddableEditpart editpart)
Instantiates a new abstract field widget presenter.
|
Modifier and Type | Method and Description |
---|---|
void |
addExternalStatus(org.eclipse.osbp.runtime.common.validation.IStatus status) |
void |
addValidator(org.eclipse.osbp.ecview.core.common.validation.IValidator validator) |
protected void |
attachValidators(com.vaadin.ui.Field<?> field)
Is called by subclasses to attach all available validators at the given
field.
|
protected void |
detachValidators(com.vaadin.ui.Field<?> field)
Is called by subclasses to detach all validators that are registered at
this instance.
|
protected abstract com.vaadin.ui.Field<?> |
doGetField()
Returns the field of the current presentation.
|
protected void |
doUpdateConverter(com.vaadin.data.util.converter.Converter converter)
Needs to set the converter to the field.
|
protected void |
doUpdateValidator(org.eclipse.osbp.ecview.core.common.presentation.IFieldPresentation.Event event)
Should be implemented by subclasses to update their validator.
|
org.eclipse.osbp.ecview.core.common.model.core.YField |
getCastedModel()
Gets the casted model.
|
protected com.vaadin.data.util.converter.Converter |
getConverter()
Gets the converter.
|
protected com.vaadin.data.util.converter.Converter<?,?> |
getDefaultConverter()
Returns a proper default converter that is used instead of
null . |
Map<org.eclipse.osbp.ecview.core.common.validation.IValidator,ValidatorAdapter> |
getValidators()
Gets the validators.
|
protected void |
initializeField(com.vaadin.ui.Field<?> field)
Called by subclasses to initialize the field with validators, tabindex
and more general stuff.
|
protected void |
internalDispose() |
void |
notify(org.eclipse.osbp.runtime.designer.api.IDesignerService.DesignEvent event)
Must be called by subclasses.
|
void |
removeExternalStatus(org.eclipse.osbp.runtime.common.validation.IStatus status) |
void |
removeValidator(org.eclipse.osbp.ecview.core.common.validation.IValidator validator) |
protected void |
reportValidationError(com.vaadin.server.ErrorMessage message)
Reports the validation error to the IFieldValidationManager.
|
void |
resetExternalStatus() |
void |
setConverter(Object object) |
addAutoBindingEndpoint, apply, applyDefaults, associateWidget, castEObject, configureForDesignMode, createBindings_ContainerContents, createBindings_Value, createBindings_Value, createBindings, createBindings, createBindings, createBindings, createBindingsButtonClick, createBindingsButtonClick, createBindingsButtonImage, createBindingsByAccessor, createBindingsByAccessor, createBindingsContainerContents, createBindingsContainerContents, createBindingsEditable, createBindingsEnabled, createBindingsMultiSelection, createBindingsSelection, createBindingsValue, createBindingsValue, createBindingsVisiblility, createVisibilityOptionsApplier, createWidget, doApplyDatatype, doAutoBind, doAutoUnbind, doCreateWidget, doSetStyle, doUnrender, doUnSetStyle, doUpdateLocale, ensureBindingManager, getDesignService, getDragMode, getEditpart, getI18nService, getLocale, getModel, getObservableValue, getResourceProvider, getUIBindings, getViewContext, initialize, internalGetObservableEndpoint, localeChanged, notifyDatatypeChanged, notifyDisposeListeners, registerAtLocaleChangedService, registerBinding, removeAutoBindingEndpoint, resetVisibilityProperties, sendDisposedLifecycleEvent, sendRenderedLifecycleEvent, sendUnrenderedLifecycleEvent, setupComponent, unassociateWidget, unbind, unregisterBinding, unregisterFromLocaleChangedService, unrender
addDisposeListener, canDispose, checkDisposed, dispose, getDisposeListeners, isDisposed, isDisposing, removeDisposeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createWidget, getModel, getObservableValue, getUIBindings, getViewContext, getWidget, isRendered, notifyDatatypeChanged, unrender
public AbstractFieldWidgetPresenter()
public AbstractFieldWidgetPresenter(org.eclipse.osbp.ecview.core.common.editpart.IEmbeddableEditpart editpart)
editpart
- the editpartpublic void addValidator(org.eclipse.osbp.ecview.core.common.validation.IValidator validator)
addValidator
in interface org.eclipse.osbp.ecview.core.common.presentation.IFieldPresentation<A extends com.vaadin.ui.Component>
public void removeValidator(org.eclipse.osbp.ecview.core.common.validation.IValidator validator)
removeValidator
in interface org.eclipse.osbp.ecview.core.common.presentation.IFieldPresentation<A extends com.vaadin.ui.Component>
public void setConverter(Object object)
setConverter
in interface org.eclipse.osbp.ecview.core.common.presentation.IFieldPresentation<A extends com.vaadin.ui.Component>
protected com.vaadin.data.util.converter.Converter getConverter()
protected com.vaadin.data.util.converter.Converter<?,?> getDefaultConverter()
null
.public org.eclipse.osbp.ecview.core.common.model.core.YField getCastedModel()
AbstractVaadinWidgetPresenter
getCastedModel
in class AbstractVaadinWidgetPresenter<A extends com.vaadin.ui.Component>
protected void doUpdateConverter(com.vaadin.data.util.converter.Converter converter)
converter
- the converterpublic Map<org.eclipse.osbp.ecview.core.common.validation.IValidator,ValidatorAdapter> getValidators()
protected void doUpdateValidator(org.eclipse.osbp.ecview.core.common.presentation.IFieldPresentation.Event event)
event
- - the eventprotected void attachValidators(com.vaadin.ui.Field<?> field)
field
- - the field all validators should be added toprotected void detachValidators(com.vaadin.ui.Field<?> field)
field
- - the field all validators should be added toprotected abstract com.vaadin.ui.Field<?> doGetField()
null
. Should be implemented by sub classes.public void notify(org.eclipse.osbp.runtime.designer.api.IDesignerService.DesignEvent event)
AbstractVaadinWidgetPresenter
notify
in interface org.eclipse.osbp.runtime.designer.api.IDesignerService.IDesignListener
notify
in class AbstractVaadinWidgetPresenter<A extends com.vaadin.ui.Component>
event
- the eventprotected void initializeField(com.vaadin.ui.Field<?> field)
field
- - the field to be initialized.public void addExternalStatus(org.eclipse.osbp.runtime.common.validation.IStatus status)
addExternalStatus
in interface org.eclipse.osbp.ecview.core.common.presentation.IFieldPresentation<A extends com.vaadin.ui.Component>
public void removeExternalStatus(org.eclipse.osbp.runtime.common.validation.IStatus status)
removeExternalStatus
in interface org.eclipse.osbp.ecview.core.common.presentation.IFieldPresentation<A extends com.vaadin.ui.Component>
public void resetExternalStatus()
resetExternalStatus
in interface org.eclipse.osbp.ecview.core.common.presentation.IFieldPresentation<A extends com.vaadin.ui.Component>
protected void reportValidationError(com.vaadin.server.ErrorMessage message)
message
- the messageprotected void internalDispose()
internalDispose
in class AbstractVaadinWidgetPresenter<A extends com.vaadin.ui.Component>
Copyright © 2011,2025 Loetz GmbH&Co.KG (69115 Heidelberg, Germany), Eclipse OSBP Project