Class LwtButtonView
java.lang.Object
com._1c.g5.aef2.views.View<LwtRenderingParameters,VM,LC>
com._1c.g5.aef2.lwt.views.LwtView<VM,LC>
com._1c.g5.aef2.standard.lwt.views.AbstractLwtStandardView<VM,LC>
com._1c.g5.aef2.standard.lwt.views.AbstractHeavyWrapperView<VM,SwtLightControl,NC>
com._1c.g5.aef2.standard.lwt.views.AbstractHeavyControlWrapperView<ButtonViewModel,org.eclipse.swt.widgets.Button>
com._1c.g5.aef2.standard.lwt.views.LwtButtonView
- All Implemented Interfaces:
IView<LwtRenderingParameters,
ButtonViewModel, SwtLightControl>
public class LwtButtonView
extends AbstractHeavyControlWrapperView<ButtonViewModel,org.eclipse.swt.widgets.Button>
The LWT button view.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
bind
(ButtonViewModel viewModel, SwtLightControl lightControl) Binds the view model and native control together to this view.protected org.eclipse.swt.widgets.Button
createHeavyControl
(org.eclipse.swt.widgets.Composite composite, ButtonViewModel viewModel) Creates SWT control.Methods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractHeavyControlWrapperView
wrapHeavyControl
Methods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractHeavyWrapperView
createControl
Methods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractLwtStandardView
createLightControl, setEnabledApperance
Methods inherited from class com._1c.g5.aef2.lwt.views.LwtView
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
-
LwtButtonView
public LwtButtonView()
-
-
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 classAbstractLwtStandardView<ButtonViewModel,
SwtLightControl> - Parameters:
viewModel
- the view model to bind.lightControl
- the native control to bind.
-
createHeavyControl
protected org.eclipse.swt.widgets.Button createHeavyControl(org.eclipse.swt.widgets.Composite composite, ButtonViewModel viewModel) Description copied from class:AbstractHeavyWrapperView
Creates SWT control.- Specified by:
createHeavyControl
in classAbstractHeavyWrapperView<ButtonViewModel,
SwtLightControl, org.eclipse.swt.widgets.Button> - Parameters:
composite
- the composite.viewModel
- the view model.- Returns:
- the newly created SWT control.
-