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
public abstract class AbstractLwtStandardView<VM extends ControlViewModel,LC extends ILightControl> extends LwtView<VM,LC>
Base class for LWT-based standard views.
-
-
Constructor Summary
Constructors Constructor Description AbstractLwtStandardView()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
bind(VM viewModel, LC lightControl)
Binds the view model and native control together to this view.protected abstract LC
createControl(ILightComposite parent, VM viewModel)
Creates a light control for the view without decorations.LC
createLightControl(ILightComposite lightComposite, VM viewModel)
Creates light control.protected void
setEnabledApperance(org.eclipse.swt.widgets.Control control, boolean enabled)
Sets the enablement state for the control-
Methods inherited from class com._1c.g5.aef2.lwt.views.LwtView
getContentControl, handleFocusEvent, isControlDisposed, setContentControl, uiAsyncExec, uiSyncExec
-
Methods 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
-
-
-
-
Method Detail
-
bind
protected void bind(VM viewModel, LC lightControl)
Description copied from class:View
Binds the view model and native control together to this view. Override this method to customize the binding.- Overrides:
bind
in classView<LwtRenderingParameters,VM extends ControlViewModel,LC extends ILightControl>
- Parameters:
viewModel
- the view model to bind.lightControl
- the native control to bind.
-
createLightControl
public final LC createLightControl(ILightComposite lightComposite, VM viewModel)
Description copied from class:LwtView
Creates light control.- Specified by:
createLightControl
in classLwtView<VM extends ControlViewModel,LC extends ILightControl>
- Parameters:
lightComposite
- the light composite.viewModel
- the view view model.- Returns:
- the newly created control.
-
createControl
protected abstract LC createControl(ILightComposite parent, VM viewModel)
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
-true
if the control should be enabled,false
- otherwise.
-
-