Class SwtStandardView<VM extends ControlViewModel,NC extends org.eclipse.swt.widgets.Control>
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<VM,NC>
- All Implemented Interfaces:
IView<SwtRenderingParameters,VM, NC>
- Direct Known Subclasses:
AbstractDtSelectView,AbstractSwtSpinnerView,AggregatesSwtTableView,DtLabelView,DtPictureView,DtTableView,DtTreeView,NotSupportedSwtView,SelectableSwtLabelView,SwtButtonView,SwtCheckableLabelView,SwtCheckBoxView,SwtComboView,SwtCompositeView,SwtConditionalAppearanceView,SwtEmptyHeavyView,SwtGanttChartScalingView,SwtGridView,SwtIconLabelView,SwtImageButtonView,SwtLabelView,SwtLinkView,SwtNullableSpinnerView,SwtRadioGroupView,SwtRadioGroupView,SwtScrolledCompositeView,SwtSectionView,SwtSeparatorView,SwtTabFolderView,SwtTextPreviewView,SwtTextView,SwtToolBarView,SwtTreeView
public abstract class SwtStandardView<VM extends ControlViewModel,NC extends org.eclipse.swt.widgets.Control>
extends SwtView<VM,NC>
Base class for SWT-based standard views.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidBinds the view model and native control together to this view.protected abstract NCcreateControl(org.eclipse.swt.widgets.Composite parent, VM viewModel) Creates a native control for the view without decorations.final NCcreateNativeControl(org.eclipse.swt.widgets.Composite parent, VM viewModel) Creates a native control for this view.protected voidsetEnabledApperance(org.eclipse.swt.widgets.Control control, boolean enabled) Sets the enablement state for the controlMethods inherited from class com._1c.g5.aef2.swt.views.SwtView
computeNativeStyle, getContentControl, handleFocusEvent, isControlDisposed, setContentControl, uiAsyncExec, uiSyncExecMethods 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
-
Constructor Details
-
SwtStandardView
public SwtStandardView()
-
-
Method Details
-
createNativeControl
Description copied from class:SwtViewCreates a native control for this view.- Specified by:
createNativeControlin classSwtView<VM extends ControlViewModel,NC extends org.eclipse.swt.widgets.Control> - Parameters:
parent- the parent composite to place a control in.viewModel- the view mode to create a control for.- Returns:
-
bind
Description copied from class:ViewBinds the view model and native control together to this view. Override this method to customize the binding.- Overrides:
bindin classView<SwtRenderingParameters,VM extends ControlViewModel, NC extends org.eclipse.swt.widgets.Control> - Parameters:
viewModel- the view model to bind.nativeControl- the native control to bind.
-
createControl
Creates a native control for the view without decorations.- Parameters:
parent- the parent composite to place a control in.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-trueif the control should be enabled,false- otherwise.
-