Class AbstractLwtStandardView<VM extends ControlViewModel,LC extends ILightControl>
java.lang.Object
com._1c.g5.aef2.views.View<LwtRenderingParameters,VM,LC>
com._1c.g5.aef2.lwt.views.LwtView<VM,LC>
com._1c.g5.aef2.standard.lwt.views.AbstractLwtStandardView<VM,LC>
- All Implemented Interfaces:
IView<LwtRenderingParameters,VM, LC>
- Direct Known Subclasses:
AbstractDtSelectView,AbstractHeavyWrapperView,AbstractLwtSpinnerView,DtPictureView,LwtCheckableLabelView,LwtCheckboxView,LwtComboView,LwtImageButtonView,LwtImageComboView,LwtLabelView,LwtNullableSpinnerView,LwtSeparatorView,LwtTextView,SelectableLwtLabelView
public abstract class AbstractLwtStandardView<VM extends ControlViewModel,LC extends ILightControl>
extends LwtView<VM,LC>
Base class for LWT-based standard views.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidBinds the view model and native control together to this view.protected abstract LCcreateControl(ILightComposite parent, VM viewModel) Creates a light control for the view without decorations.final LCcreateLightControl(ILightComposite lightComposite, VM viewModel) Creates light control.protected voidsetEnabledApperance(org.eclipse.swt.widgets.Control control, boolean enabled) Sets the enablement state for the controlMethods inherited from class com._1c.g5.aef2.lwt.views.LwtView
getContentControl, handleFocusEvent, isControlDisposed, setContentControl, uiAsyncExec, uiSyncExecMethods inherited from class com._1c.g5.aef2.views.View
bindListener, bindNativeControl, bindValue, bindValue, bindViewModel, getNativeControl, getParameters, getViewModel, handleEventChannelEvent, initialize, manageObservable, queueAndWaitEvent, queueEvent, registerEventChannelListener, unbind, unbindNativeControl, unbindViewModel, unmanageObservable, unregisterEventChannelListener
-
Constructor Details
-
AbstractLwtStandardView
public AbstractLwtStandardView()
-
-
Method Details
-
bind
Description copied from class:ViewBinds the view model and native control together to this view. Override this method to customize the binding.- Overrides:
bindin classView<LwtRenderingParameters,VM extends ControlViewModel, LC extends ILightControl> - Parameters:
viewModel- the view model to bind.lightControl- the native control to bind.
-
createLightControl
Description copied from class:LwtViewCreates light control.- Specified by:
createLightControlin classLwtView<VM extends ControlViewModel,LC extends ILightControl> - Parameters:
lightComposite- the light composite.viewModel- the view view model.- Returns:
- the newly created control.
-
createControl
Creates a light control for the view without decorations.- Parameters:
parent- the parent light composite.viewModel- the view mode to create a control for.- Returns:
- the newly created control.
-
setEnabledApperance
protected void setEnabledApperance(org.eclipse.swt.widgets.Control control, boolean enabled) Sets the enablement state for the control- Parameters:
control- the controlenabled-trueif the control should be enabled,false- otherwise.
-