Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SuiDialogAdapterBase<T>

SuiDialogAdapterBase is the base class for dialogs that use the adapter pattern (almost all of them).

Type Parameters

  • T extends SuiComponentAdapter

    a class that implements the Adapter interface and fulfills the adapter data contract, with getters and setters from the components

Hierarchy

Index

Constructors

Properties

dgDom: DialogDom

Methods

  • bindComponents(): void
  • Call the components bind() methods to activate them. Also, verify that each adapter meets the contract with the components

    Returns void

  • bindElements(): void
  • Binds the main dialog buttons. For OK/Cancel/remove, the logic calls the appropriate derived function, which calls the appropriate adapter method, then calls complete() to restore the event handling loop to the application

    Returns void

  • cancel(): void
  • If there is any undo or restore to be done when the dialog clicks OK, that is handled by the adapter. Else it can be a noop.

    Returns void

  • changed(): void
  • When a component changes, it notifies the parent dialog. Usually, we just proxy the call to the adapter. The specific dialog can override this method if something in the UI needs to change as a result of the component state (e.g. show or hide another component)

    Returns void

  • commit(): void
  • If there is any 'saving' to be done when the dialog clicks OK, that is handled by the adapter. Else it can be a noop.

    Returns void

  • getId(): string
  • getStaticText(): Record<string, string>
  • initialValue(): void
  • Called before dialog is displayed. components that interface (bind) with the adapter are called 'bound' components. On initialize, update the component with the score value, as told by the adapter.

    Returns void

  • remove(): void

Generated using TypeDoc