Class AbstractHeavyWrapperView<VM extends ControlViewModel,LC extends SwtLightControl,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,LC,NC>
-
- All Implemented Interfaces:
IView<LwtRenderingParameters,VM,LC>
- Direct Known Subclasses:
AbstractHeavyCompositeWrapperView
,AbstractHeavyControlWrapperView
,LwtWrapperView
public abstract class AbstractHeavyWrapperView<VM extends ControlViewModel,LC extends SwtLightControl,NC extends org.eclipse.swt.widgets.Control> extends AbstractLwtStandardView<VM,LC>
Base class for views that produces the heavy native SWT control.
-
-
Constructor Summary
Constructors Constructor Description AbstractHeavyWrapperView()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description LC
createControl(ILightComposite lightComposite, VM viewModel)
Creates a light control for the view without decorations.protected abstract NC
createHeavyControl(org.eclipse.swt.widgets.Composite composite, VM viewModel)
Creates SWT control.protected abstract LC
wrapHeavyControl(NC control)
Wraps heavy control into light control.-
Methods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractLwtStandardView
bind, 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, initialize, manageObservable, queueAndWaitEvent, queueEvent, registerEventChannelListener, unbind, unbindNativeControl, unbindViewModel, unmanageObservable, unregisterEventChannelListener
-
-
-
-
Method Detail
-
createControl
public final LC createControl(ILightComposite lightComposite, VM viewModel)
Description copied from class:AbstractLwtStandardView
Creates a light control for the view without decorations.- Specified by:
createControl
in classAbstractLwtStandardView<VM extends ControlViewModel,LC extends SwtLightControl>
- Parameters:
lightComposite
- the parent light composite.viewModel
- the view mode to create a control for.- Returns:
- the newly created control.
-
createHeavyControl
protected abstract NC createHeavyControl(org.eclipse.swt.widgets.Composite composite, VM viewModel)
Creates SWT control.- Parameters:
composite
- the composite.viewModel
- the view model.- Returns:
- the newly created SWT control.
-
-