The base class of all Panels, Dialogs, Windows.

Hierarchy-Diagram

UML class diagram of KIHPanel
Legend
icon for a class in the UML class diagram class
icon for an interface in the UML class diagram interface
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method
icon for a protected method in the UML class diagram protected method

Hierarchy (view full)

Implements

Constructors

Properties

func: any = null
id: string = ""
initialised: boolean = false
initialMoved: boolean = false
initialResized: boolean = false
isOpen: boolean = false
localizer: ILocalizer = null
math: IMath = null
messager: IMessager = null
parameters: any = null
parent: any = null
parser: IParser = null
services: ISelectedServices = null
silent: boolean = false

Accessors

  • get handlers(): {
        onClose: any;
        onMove: any;
        onOpen: any;
        onResize: any;
    }
  • Builds an object from the events to be provided when the panel is created.

    Returns {
        onClose: any;
        onMove: any;
        onOpen: any;
        onResize: any;
    }

    • onClose: any
    • onMove: any
    • onOpen: any
    • onResize: any

Methods

  • Initialise method, creates the Panel with the handlers provided.

    Parameters

    • _dummy: any = null

    Returns Promise<void>

  • This function handles the desktop use case. It initiates a resize for a workaround to problems only taking place in this case. And it centers the panels.

    Returns void

  • Used to localize an option.

    Place this service into this base class to get access everywhere. TODO: use Utility function.

    Parameters

    • option: string
    • id: any = null
    • func: any = null

    Returns string

  • The handler of move events, invoked when the panel is moved.

    This delegates to the Parameters instance.

    Parameters

    • left: number
    • top: number

    Returns void

  • The handler of resize events, invoked when the panel is resized.

    This delegates to the Parameters instance.

    Parameters

    • width: number
    • height: number

    Returns void

  • Method to get outerHTML from an element (jquery)

    Parameters

    • selector: string

    Returns string

  • Performs a Resize depending on a provided type.

    Parameters

    • type: RESIZING_TYPE

      resizing type

    Returns void

  • Virtual method. Updates a panel. F.i. used for Information Window.

    Parameters

    • Rest..._params: any[]

    Returns Promise<void>