Class ShortcutView
- 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<VM,NC>
-
- com._1c.g5.v8.dt.ui.aef.swt.views.AbstractDtSelectView<VM,org.eclipse.swt.widgets.Composite>
-
- com._1c.g5.v8.dt.ui.aef.swt.views.AbstractDtEditorBarView<ShortcutViewModel,org.eclipse.swt.widgets.Text>
-
- com._1c.g5.v8.dt.ui.aef.swt.views.ShortcutView
-
- All Implemented Interfaces:
IView<SwtRenderingParameters,ShortcutViewModel,org.eclipse.swt.widgets.Composite>
public class ShortcutView extends AbstractDtEditorBarView<ShortcutViewModel,org.eclipse.swt.widgets.Text>
The SWT shortcut view
-
-
Constructor Summary
Constructors Constructor Description ShortcutView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(ShortcutViewModel viewModel, org.eclipse.swt.widgets.Composite nativeControl)
Binds the view model and native control together to this view.protected int
computeNativeStyle(ShortcutViewModel viewModel)
Computes an SWT widget style flags.protected org.eclipse.swt.widgets.Text
createEditorControl(org.eclipse.swt.widgets.Composite control, ShortcutViewModel viewModel)
Creates an editor control.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.swt.views.AbstractDtEditorBarView
addActionBarItem, createControl, doCreateNativeControl, getActionBar, getActionBarItems, getEditor, unbind
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.swt.views.AbstractDtSelectView
attachButtonsToControl, handleButtonClick, handleEventChannelEvent, processHotkeyExecution, processHotkeyRefresh, setEnabledApperance
-
Methods inherited from class com._1c.g5.aef2.standard.swt.views.SwtStandardView
createNativeControl
-
Methods inherited from class com._1c.g5.aef2.swt.views.SwtView
getContentControl, handleFocusEvent, isControlDisposed, setContentControl, uiAsyncExec, uiSyncExec
-
Methods inherited from class com._1c.g5.aef2.views.View
bindListener, bindNativeControl, bindValue, bindValue, bindViewModel, getNativeControl, getParameters, getViewModel, initialize, manageObservable, queueAndWaitEvent, queueEvent, registerEventChannelListener, unbindNativeControl, unbindViewModel, unmanageObservable, unregisterEventChannelListener
-
-
-
-
Method Detail
-
bind
public void bind(ShortcutViewModel viewModel, org.eclipse.swt.widgets.Composite nativeControl)
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 classAbstractDtEditorBarView<ShortcutViewModel,org.eclipse.swt.widgets.Text>
- Parameters:
viewModel
- the view model to bind.nativeControl
- the native control to bind.
-
computeNativeStyle
protected int computeNativeStyle(ShortcutViewModel viewModel)
Description copied from class:SwtView
Computes an SWT widget style flags. Override it to customize the flags.- Overrides:
computeNativeStyle
in classSwtView<ShortcutViewModel,org.eclipse.swt.widgets.Composite>
- Parameters:
viewModel
- the view model to compute a style from.- Returns:
- the computed style.
- See Also:
Widget.getStyle()
-
createEditorControl
protected org.eclipse.swt.widgets.Text createEditorControl(org.eclipse.swt.widgets.Composite control, ShortcutViewModel viewModel)
Description copied from class:AbstractDtEditorBarView
Creates an editor control.- Specified by:
createEditorControl
in classAbstractDtEditorBarView<ShortcutViewModel,org.eclipse.swt.widgets.Text>
- Parameters:
control
- the composite with action bar.viewModel
- the view model.- Returns:
- the newly creates editor control.
-
-