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,DtLabelView,DtPictureView,DtTableView,DtTreeView,SwtButtonView,SwtCheckableLabelView,SwtCheckBoxView,SwtComboView,SwtCompositeView,SwtConditionalAppearanceView,SwtGanttChartScalingView,SwtGridView,SwtImageButtonView,SwtLabelView,SwtLinkView,SwtNullableSpinnerView,SwtRadioGroupView,SwtScrolledCompositeView,SwtSectionView,SwtSeparatorView,SwtTabFolderView,SwtTextPreviewView,SwtTextView,SwtToolBarView
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 Constructor Description SwtStandardView()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidbind(VM viewModel, NC nativeControl)Binds 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.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 control-
Methods inherited from class com._1c.g5.aef2.swt.views.SwtView
computeNativeStyle, 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
-
createNativeControl
public final NC createNativeControl(org.eclipse.swt.widgets.Composite parent, VM viewModel)
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
protected void bind(VM viewModel, NC nativeControl)
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
protected abstract NC createControl(org.eclipse.swt.widgets.Composite parent, VM viewModel)
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.
-
-