Class SwtSectionView
java.lang.Object
com._1c.g5.aef2.views.View<SwtRenderingParameters,VM,NC>
com._1c.g5.aef2.swt.views.SwtView<VM,NC>
com._1c.g5.aef2.standard.swt.views.SwtStandardView<SectionViewModel,org.eclipse.swt.widgets.Composite>
com._1c.g5.aef2.standard.swt.views.SwtSectionView
- All Implemented Interfaces:
IView<SwtRenderingParameters,
SectionViewModel, org.eclipse.swt.widgets.Composite>
public class SwtSectionView
extends SwtStandardView<SectionViewModel,org.eclipse.swt.widgets.Composite>
The SWT
Section
view.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
computeNativeStyle
(SectionViewModel viewModel) Computes an SWT widget style flags.protected org.eclipse.swt.widgets.Composite
createControl
(org.eclipse.swt.widgets.Composite parent, SectionViewModel viewModel) Creates a native control for the view without decorations.protected void
unbind
(SectionViewModel viewModel, org.eclipse.swt.widgets.Composite control) Unbinds the view model and the native control from this view.Methods inherited from class com._1c.g5.aef2.standard.swt.views.SwtStandardView
bind, createNativeControl, setEnabledApperance
Methods inherited from class com._1c.g5.aef2.swt.views.SwtView
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, unbindNativeControl, unbindViewModel, unmanageObservable, unregisterEventChannelListener
-
Constructor Details
-
SwtSectionView
public SwtSectionView()
-
-
Method Details
-
createControl
protected org.eclipse.swt.widgets.Composite createControl(org.eclipse.swt.widgets.Composite parent, SectionViewModel viewModel) Description copied from class:SwtStandardView
Creates a native control for the view without decorations.- Specified by:
createControl
in classSwtStandardView<SectionViewModel,
org.eclipse.swt.widgets.Composite> - Parameters:
parent
- the parent composite to place a control in.viewModel
- the view mode to create a control for.- Returns:
- the newly created control
-
unbind
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<SwtRenderingParameters,
SectionViewModel, org.eclipse.swt.widgets.Composite> - Parameters:
viewModel
- the view mode to unbind.control
- the native control to unbind.
-
computeNativeStyle
Description copied from class:SwtView
Computes an SWT widget style flags. Override it to customize the flags.- Overrides:
computeNativeStyle
in classSwtView<SectionViewModel,
org.eclipse.swt.widgets.Composite> - Parameters:
viewModel
- the view model to compute a style from.- Returns:
- the computed style.
- See Also:
-
Widget.getStyle()
-