Class LwtWrapperView<V extends SwtView<VM,NC>,VM extends ControlViewModel,NC extends org.eclipse.swt.widgets.Control>
- 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>
-
- com._1c.g5.aef2.standard.lwt.views.AbstractHeavyWrapperView<VM,SwtLightControl,NC>
-
- com._1c.g5.v8.dt.ui.aef.lwt.views.LwtWrapperView<V,VM,NC>
-
- All Implemented Interfaces:
IView<LwtRenderingParameters,VM,SwtLightControl>
- Direct Known Subclasses:
ConfigurationStandaloneContentSwtTreeView.LwtWrapped
,DataExchangeSwtTableView.LwtWrapped
,ExchangePlanContentSwtTreeView.LwtWrapped
,LwtConditionalAppearanceView
,LwtDateControlView
,LwtDateValueView
,LwtDtTableView
,LwtDtTreeView
,LwtGanttChartScalingView
,LwtGridView
,LwtNumberValueView
,LwtShortcutView
,LwtTabFolderView
,LwtTextPreviewView
,LwtToolBarView
public abstract class LwtWrapperView<V extends SwtView<VM,NC>,VM extends ControlViewModel,NC extends org.eclipse.swt.widgets.Control> extends AbstractHeavyWrapperView<VM,SwtLightControl,NC>
The LWT wrapper view forSwtView
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LwtWrapperView(Class<V> viewClass)
Creates a new view.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bind(VM viewModel, SwtLightControl lightControl)
Binds the view model and native control together to this view.protected NC
createHeavyControl(org.eclipse.swt.widgets.Composite composite, VM viewModel)
Creates SWT control.protected V
getWrappedView()
Returns the wrapped view.void
initialize(LwtRenderingParameters parameters)
Initializes this view with parameters.protected void
unbind(VM viewModel, SwtLightControl nativeControl)
Unbinds the view model and the native control from this view.protected SwtLightControl
wrapHeavyControl(NC control)
Wraps heavy control into light control.-
Methods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractHeavyWrapperView
createControl
-
Methods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractLwtStandardView
createLightControl, setEnabledApperance
-
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, manageObservable, queueAndWaitEvent, queueEvent, registerEventChannelListener, unbindNativeControl, unbindViewModel, unmanageObservable, unregisterEventChannelListener
-
-
-
-
Method Detail
-
initialize
public void initialize(LwtRenderingParameters parameters)
Description copied from interface:IView
Initializes this view with parameters.- Specified by:
initialize
in interfaceIView<V extends SwtView<VM,NC>,VM extends ControlViewModel,NC extends org.eclipse.swt.widgets.Control>
- Overrides:
initialize
in classView<LwtRenderingParameters,VM extends ControlViewModel,SwtLightControl>
- Parameters:
parameters
- the parameters to initialize with.
-
createHeavyControl
protected NC createHeavyControl(org.eclipse.swt.widgets.Composite composite, VM viewModel)
Description copied from class:AbstractHeavyWrapperView
Creates SWT control.- Specified by:
createHeavyControl
in classAbstractHeavyWrapperView<VM extends ControlViewModel,SwtLightControl,NC extends org.eclipse.swt.widgets.Control>
- Parameters:
composite
- the composite.viewModel
- the view model.- Returns:
- the newly created SWT control.
-
bind
protected void bind(VM viewModel, SwtLightControl 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 classAbstractLwtStandardView<VM extends ControlViewModel,SwtLightControl>
- Parameters:
viewModel
- the view model to bind.lightControl
- the native control to bind.
-
unbind
protected void unbind(VM viewModel, SwtLightControl nativeControl)
Description copied from class:View
Unbinds the view model and the native control from this view. Override this method to customize the unbinding.- Overrides:
unbind
in classView<LwtRenderingParameters,VM extends ControlViewModel,SwtLightControl>
- Parameters:
viewModel
- the view mode to unbind.nativeControl
- the native control to unbind.
-
getWrappedView
protected final V getWrappedView()
Returns the wrapped view.- Returns:
- wrapped view, never
null
.
-
wrapHeavyControl
protected SwtLightControl wrapHeavyControl(NC control)
Description copied from class:AbstractHeavyWrapperView
Wraps heavy control into light control.- Specified by:
wrapHeavyControl
in classAbstractHeavyWrapperView<VM extends ControlViewModel,SwtLightControl,NC extends org.eclipse.swt.widgets.Control>
- Parameters:
control
- the native control.- Returns:
- light control.
-
-