Class SwtLabelView
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<LabelViewModel,org.eclipse.swt.widgets.Label>
com._1c.g5.aef2.standard.swt.views.SwtLabelView
- All Implemented Interfaces:
IView<SwtRenderingParameters,
LabelViewModel, org.eclipse.swt.widgets.Label>
SWT label view.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
bind
(LabelViewModel viewModel, org.eclipse.swt.widgets.Label nativeControl) Binds the view model and native control together to this view.org.eclipse.swt.widgets.Label
createControl
(org.eclipse.swt.widgets.Composite parent, LabelViewModel viewModel) Creates a native control for the view without decorations.Methods inherited from class com._1c.g5.aef2.standard.swt.views.SwtStandardView
createNativeControl, setEnabledApperance
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
-
Constructor Details
-
SwtLabelView
public SwtLabelView()
-
-
Method Details
-
bind
Description copied from class:View
Binds the view model and native control together to this view. Override this method to customize the binding.- Overrides:
bind
in classSwtStandardView<LabelViewModel,
org.eclipse.swt.widgets.Label> - Parameters:
viewModel
- the view model to bind.nativeControl
- the native control to bind.
-
createControl
public org.eclipse.swt.widgets.Label createControl(org.eclipse.swt.widgets.Composite parent, LabelViewModel viewModel) Description copied from class:SwtStandardView
Creates a native control for the view without decorations.- Specified by:
createControl
in classSwtStandardView<LabelViewModel,
org.eclipse.swt.widgets.Label> - Parameters:
parent
- the parent composite to place a control in.viewModel
- the view mode to create a control for.- Returns:
- the newly created control
-