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 SWTSection
view.
-
-
Constructor Summary
Constructors Constructor Description SwtSectionView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
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
protected void unbind(SectionViewModel viewModel, org.eclipse.swt.widgets.Composite control)
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
protected int computeNativeStyle(SectionViewModel viewModel)
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()
-
-