Class SwtTextView
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<TextViewModel,org.eclipse.swt.widgets.Text>
com._1c.g5.aef2.standard.swt.views.SwtTextView
- All Implemented Interfaces:
IView<SwtRenderingParameters,TextViewModel, org.eclipse.swt.widgets.Text>
The SWT text view.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbind(TextViewModel viewModel, org.eclipse.swt.widgets.Text nativeControl) Binds the view model and native control together to this view.protected intcomputeNativeStyle(TextViewModel viewModel) Computes an SWT widget style flags.org.eclipse.swt.widgets.TextcreateControl(org.eclipse.swt.widgets.Composite parent, TextViewModel viewModel) Creates a native control for the view without decorations.Methods inherited from class com._1c.g5.aef2.standard.swt.views.SwtStandardView
createNativeControl, setEnabledApperanceMethods inherited from class com._1c.g5.aef2.swt.views.SwtView
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
-
SwtTextView
public SwtTextView()
-
-
Method Details
-
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 classSwtStandardView<TextViewModel,org.eclipse.swt.widgets.Text> - Parameters:
viewModel- the view model to bind.nativeControl- the native control to bind.
-
createControl
public org.eclipse.swt.widgets.Text createControl(org.eclipse.swt.widgets.Composite parent, TextViewModel viewModel) Description copied from class:SwtStandardViewCreates a native control for the view without decorations.- Specified by:
createControlin classSwtStandardView<TextViewModel,org.eclipse.swt.widgets.Text> - Parameters:
parent- the parent composite to place a control in.viewModel- the view mode to create a control for.- Returns:
- the newly created control
-
computeNativeStyle
Description copied from class:SwtViewComputes an SWT widget style flags. Override it to customize the flags.- Overrides:
computeNativeStylein classSwtView<TextViewModel,org.eclipse.swt.widgets.Text> - Parameters:
viewModel- the view model to compute a style from.- Returns:
- the computed style.
- See Also:
-
Widget.getStyle()
-