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 voidbind(ButtonViewModel viewModel, SwtLightControl lightControl) Binds the view model and native control together to this view.protected org.eclipse.swt.widgets.ButtoncreateHeavyControl(org.eclipse.swt.widgets.Composite composite, ButtonViewModel viewModel) Creates SWT control.Methods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractHeavyControlWrapperView
wrapHeavyControlMethods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractHeavyWrapperView
createControlMethods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractLwtStandardView
createLightControl, setEnabledApperanceMethods inherited from class com._1c.g5.aef2.lwt.views.LwtView
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
-
LwtButtonView
public LwtButtonView()
-
-
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 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:AbstractHeavyWrapperViewCreates SWT control.- Specified by:
createHeavyControlin classAbstractHeavyWrapperView<ButtonViewModel,SwtLightControl, org.eclipse.swt.widgets.Button> - Parameters:
composite- the composite.viewModel- the view model.- Returns:
- the newly created SWT control.
-