Class AbstractLwtStandardView<VM extends ControlViewModel,LC extends ILightControl>

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>
All Implemented Interfaces:
IView<LwtRenderingParameters,VM,LC>
Direct Known Subclasses:
AbstractDtSelectView, AbstractHeavyWrapperView, AbstractLwtSpinnerView, DtPictureView, LwtCheckableLabelView, LwtCheckboxView, LwtComboView, LwtImageButtonView, LwtImageComboView, LwtLabelView, LwtNullableSpinnerView, LwtSeparatorView, LwtTextView, SelectableLwtLabelView

public abstract class AbstractLwtStandardView<VM extends ControlViewModel,LC extends ILightControl> extends LwtView<VM,LC>
Base class for LWT-based standard views.
  • Constructor Details

    • AbstractLwtStandardView

      public AbstractLwtStandardView()
  • Method Details

    • bind

      protected void bind(VM viewModel, LC lightControl)
      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<LwtRenderingParameters,VM extends ControlViewModel,LC extends ILightControl>
      Parameters:
      viewModel - the view model to bind.
      lightControl - the native control to bind.
    • createLightControl

      public final LC createLightControl(ILightComposite lightComposite, VM viewModel)
      Description copied from class: LwtView
      Creates light control.
      Specified by:
      createLightControl in class LwtView<VM extends ControlViewModel,LC extends ILightControl>
      Parameters:
      lightComposite - the light composite.
      viewModel - the view view model.
      Returns:
      the newly created control.
    • createControl

      protected abstract LC createControl(ILightComposite parent, VM viewModel)
      Creates a light control for the view without decorations.
      Parameters:
      parent - the parent light composite.
      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.