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 Constructor Description LwtButtonView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
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
-
-
-
-
Method Detail
-
bind
protected void bind(ButtonViewModel viewModel, SwtLightControl lightControl)
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.
-
-