Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SidePanelHandler

A class which manages a dock panel and a related side bar. This is used for the left and right panel of the application shell.

Hierarchy

  • SidePanelHandler

Index

Constructors

constructor

Properties

Protected Readonly applicationStateService

applicationStateService: FrontendApplicationStateService

bottomMenu

bottomMenu: SidebarMenuWidget

The menu placed on the sidebar bottom. Displayed as icons. Open menus when on clicks.

container

container: Panel

The panel that contains the tab bar and the dock panel. This one is hidden whenever the dock panel is empty.

Protected Readonly contextMenuRenderer

contextMenuRenderer: ContextMenuRenderer

dockPanel

dockPanel: TheiaDockPanel

The widget container is a dock panel in single-document mode, which means that the panel cannot be split.

Protected options

options: Options

Options that control the behavior of the side panel.

Protected side

side: "left" | "right"

The shell area where the panel is placed. This property should not be modified directly, but only by calling create.

Protected sidebarBottomWidgetFactory

sidebarBottomWidgetFactory: () => SidebarBottomMenuWidget

Type declaration

Protected sidebarTopWidgetFactory

sidebarTopWidgetFactory: () => SidebarTopMenuWidget

Type declaration

Protected splitPositionHandler

splitPositionHandler: SplitPositionHandler

Readonly state

state: State = ...

The current state of the side panel.

tabBar

tabBar: SideTabBar

The tab bar displays the titles of the widgets in the side panel. Visibility of the widgets is controlled entirely through tab selection: a widget is revealed by setting the currentTitle accordingly in the tab bar, and the panel is hidden by setting that property to null. The tab bar itself remains visible as long as there is at least one widget.

Protected tabBarRendererFactory

tabBarRendererFactory: () => TabBarRenderer

Type declaration

Protected tabBarToolBarFactory

tabBarToolBarFactory: () => TabBarToolbar

Type declaration

Protected tabBarToolBarRegistry

tabBarToolBarRegistry: TabBarToolbarRegistry

Protected Readonly toDisposeOnCurrentTabChanged

toDisposeOnCurrentTabChanged: DisposableCollection = ...

toolBar

A tool bar, which displays a title and widget specific command buttons.

topMenu

The menu placed on the sidebar top. Displayed as icons. Open menus when on clicks.

Static Protected Readonly rankProperty

rankProperty: AttachedProperty<Widget, undefined | number> = ...

A property that can be attached to widgets in order to determine the insertion index of their title in the tab bar.

Methods

activate

  • activate(id: string): undefined | Widget

addBottomMenu

addTopMenu

addWidget

collapse

  • collapse(): Promise<void>

create

  • create(side: "left" | "right", options: Options): void

Protected createContainer

  • createContainer(): Panel

Protected createSideBar

Protected createSidePanel

Protected createSidebarBottomMenu

Protected createSidebarMenu

  • createSidebarMenu<T>(factory: () => T): T

Protected createSidebarTopMenu

Protected createToolbar

expand

  • expand(id?: string): undefined | Widget
  • Expand a widget residing in the side panel by ID. If no ID is given and the panel is currently collapsed, the last active tab of this side panel is expanded. If no tab was expanded previously, the first one is taken.

    Parameters

    • Optional id: string

    Returns undefined | Widget

    the expanded widget if it was found

Protected getDefaultPanelSize

  • getDefaultPanelSize(): undefined | number

getLayoutData

Protected getPanelSize

  • getPanelSize(): undefined | number

Protected onCurrentTabChanged

  • onCurrentTabChanged(sender: SideTabBar, __namedParameters: ICurrentChangedArgs<Widget>): void

Protected onTabDetachRequested

  • onTabDetachRequested(sender: SideTabBar, __namedParameters: ITabDetachRequestedArgs<Widget>): void

Protected onWidgetAdded

  • onWidgetAdded(sender: DockPanel, widget: Widget): void

Protected onWidgetRemoved

  • onWidgetRemoved(sender: DockPanel, widget: Widget): void

refresh

  • refresh(): void

removeBottomMenu

  • removeBottomMenu(menuId: string): void

removeTopMenu

  • removeTopMenu(menuId: string): void

resize

  • resize(size: number): void

setLayoutData

Protected setPanelSize

  • setPanelSize(size: number): Promise<void>

Protected showContextMenu

  • showContextMenu(e: MouseEvent): void

Protected updateToolbarTitle

  • updateToolbarTitle(): void