Class SwtStandardView<VM extends ControlViewModel,NC extends org.eclipse.swt.widgets.Control>

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>
All Implemented Interfaces:
IView<SwtRenderingParameters,VM,NC>
Direct Known Subclasses:
AbstractDtSelectView, AbstractSwtSpinnerView, AggregatesSwtTableView, DtLabelView, DtPictureView, DtTableView, DtTreeView, NotSupportedSwtView, SelectableSwtLabelView, SwtButtonView, SwtCheckableLabelView, SwtCheckBoxView, SwtComboView, SwtCompositeView, SwtConditionalAppearanceView, SwtEmptyHeavyView, SwtGanttChartScalingView, SwtGridView, SwtIconLabelView, SwtImageButtonView, SwtLabelView, SwtLinkView, SwtNullableSpinnerView, SwtRadioGroupView, SwtRadioGroupView, SwtScrolledCompositeView, SwtSectionView, SwtSeparatorView, SwtTabFolderView, SwtTextPreviewView, SwtTextView, SwtToolBarView, SwtTreeView

public abstract class SwtStandardView<VM extends ControlViewModel,NC extends org.eclipse.swt.widgets.Control> extends SwtView<VM,NC>
Base class for SWT-based standard views.
  • Constructor Details

    • SwtStandardView

      public SwtStandardView()
  • Method Details

    • createNativeControl

      public final NC createNativeControl(org.eclipse.swt.widgets.Composite parent, VM viewModel)
      Description copied from class: SwtView
      Creates a native control for this view.
      Specified by:
      createNativeControl in class SwtView<VM extends ControlViewModel,NC extends org.eclipse.swt.widgets.Control>
      Parameters:
      parent - the parent composite to place a control in.
      viewModel - the view mode to create a control for.
      Returns:
    • bind

      protected void bind(VM viewModel, NC 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 class View<SwtRenderingParameters,VM extends ControlViewModel,NC extends org.eclipse.swt.widgets.Control>
      Parameters:
      viewModel - the view model to bind.
      nativeControl - the native control to bind.
    • createControl

      protected abstract NC createControl(org.eclipse.swt.widgets.Composite parent, VM viewModel)
      Creates a native control for the view without decorations.
      Parameters:
      parent - the parent composite to place a control in.
      viewModel - the view mode to create a control for.
      Returns:
      the newly created control
    • setEnabledApperance

      protected void setEnabledApperance(org.eclipse.swt.widgets.Control control, boolean enabled)
      Sets the enablement state for the control
      Parameters:
      control - the control
      enabled - true if the control should be enabled, false - otherwise.