Options
All
  • Public
  • Public/Protected
  • All
Menu

桌面布局方式展示

Hierarchy

  • DesktopLayout

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Static desktopAllMenusInfo

desktopAllMenusInfo: {} = {}

Type declaration

Static desktopButtonMaxWidth

desktopButtonMaxWidth: any

Static desktopContainer

desktopContainer: any

Static desktopInitFinish

desktopInitFinish: any

Static desktopPanel

desktopPanel: any

Static disabledMenuPathClick

disabledMenuPathClick: boolean = false

Static disabledRecordMenu

disabledRecordMenu: boolean = false

Static folderColor

folderColor: string = "#FFBB00"

Static folderIcon

folderIcon: string = "icons/icon_system_file.svg"

Static lastActiveMenuId

lastActiveMenuId: any = null

Static lastSelectDesktopImageId

lastSelectDesktopImageId: any = null

Static muuriContainerIdIndex

muuriContainerIdIndex: number = 1

Static muuriDragging

muuriDragging: any

Static muuriGridContainers

muuriGridContainers: any = null

Static startMenu

startMenu: any

Methods

Static activeToolbarButton

  • activeToolbarButton(menuId: string): void

Static addDesktopButton

  • addDesktopButton(menu: any, silence?: boolean): void

Static addDesktopToolbarButton

  • addDesktopToolbarButton(sourceMenu: any): void

Static addDesktopToolbarFixedButton

  • addDesktopToolbarFixedButton(sourceMenu: any, silence?: any): void

Static buildDesktopItem

  • buildDesktopItem(menu: any): any

Static buildDesktopItemPanel

  • buildDesktopItemPanel(menus: any, alignRight: boolean, horizontal: boolean, scrollable: boolean): { addDesktopItem: (menu: any) => void; addDesktopItems: (menus: any) => void; alignRight: boolean; anchor: string; bindMuuriGrid: (callBack?: any) => void; border: number; configMenus: any; desktopItemContainer: boolean; flex: number; getAllDesktopItemMenus: () => any[]; getMuuriGridContainerId: () => any; horizontal: boolean; html: string; layout: string; listeners: { destroy: () => void }; muuriGridContainerId: string; muuriGridLayout: () => void; muuriReady: boolean; removeAllDesktopItem: () => void; removeDesktopItem: (menu: any) => void; xtype: string }
  • 构建桌面布局容器

    Parameters

    • menus: any
    • alignRight: boolean
    • horizontal: boolean
    • scrollable: boolean

    Returns { addDesktopItem: (menu: any) => void; addDesktopItems: (menus: any) => void; alignRight: boolean; anchor: string; bindMuuriGrid: (callBack?: any) => void; border: number; configMenus: any; desktopItemContainer: boolean; flex: number; getAllDesktopItemMenus: () => any[]; getMuuriGridContainerId: () => any; horizontal: boolean; html: string; layout: string; listeners: { destroy: () => void }; muuriGridContainerId: string; muuriGridLayout: () => void; muuriReady: boolean; removeAllDesktopItem: () => void; removeDesktopItem: (menu: any) => void; xtype: string }

    • addDesktopItem: (menu: any) => void
        • (menu: any): void
        • Parameters

          • menu: any

          Returns void

    • addDesktopItems: (menus: any) => void
        • (menus: any): void
        • Parameters

          • menus: any

          Returns void

    • alignRight: boolean
    • anchor: string
    • bindMuuriGrid: (callBack?: any) => void
        • (callBack?: any): void
        • Parameters

          • Optional callBack: any

          Returns void

    • border: number
    • configMenus: any
    • desktopItemContainer: boolean
    • flex: number
    • getAllDesktopItemMenus: () => any[]
        • (): any[]
        • Returns any[]

    • getMuuriGridContainerId: () => any
        • (): any
        • Returns any

    • horizontal: boolean
    • html: string
    • layout: string
    • listeners: { destroy: () => void }
      • destroy: () => void
          • (): void
          • Returns void

    • muuriGridContainerId: string
    • muuriGridLayout: () => void
        • (): void
        • Returns void

    • muuriReady: boolean
    • removeAllDesktopItem: () => void
        • (): void
        • Returns void

    • removeDesktopItem: (menu: any) => void
        • (menu: any): void
        • Parameters

          • menu: any

          Returns void

    • xtype: string

Static buildFolderMenu

  • buildFolderMenu(menuText: string): any

Static buildToolbarButton

  • buildToolbarButton(menu: any, fixed: boolean): any

Static checkDesktopButton

  • checkDesktopButton(menu: any): boolean

Static checkDesktopToolbarFixedButton

  • checkDesktopToolbarFixedButton(menu: any): any

Static checkMenuByUserFolder

  • checkMenuByUserFolder(menu: any): boolean

Static checkMenuFolder

  • checkMenuFolder(menu: any): boolean

Static checkMenuInFolder

  • checkMenuInFolder(menu: any): boolean

Static checkMenuLocked

  • checkMenuLocked(menu: any): boolean

Static checkMuuriGridContainer

  • checkMuuriGridContainer(x: number, y: number): any

Static checkSystemLockedFolderMenu

  • checkSystemLockedFolderMenu(menu: any): boolean

Static closeAllDesktopWin

  • closeAllDesktopWin(): void

Static closeAllToolbarMenuButton

  • closeAllToolbarMenuButton(): void

Static closeOtherToolbarMenuButton

  • closeOtherToolbarMenuButton(anchorBtn: any, direction: any): void

Static closeToolbarMenuButton

  • closeToolbarMenuButton(button: any): void

Static deactiveToolbarButton

  • deactiveToolbarButton(menuId: string): void

Static getAllDesktopMenuInfo

  • getAllDesktopMenuInfo(recordMenuConfig?: any): {}

Static getDesktopButtonMaxWidth

  • getDesktopButtonMaxWidth(): any

Static getDesktopButtonTitleMaxWidth

  • getDesktopButtonTitleMaxWidth(): any

Static getDesktopToolbarButton

  • getDesktopToolbarButton(sourceMenu: any): any

Static getDesktopToolbarButtonByGroup

  • getDesktopToolbarButtonByGroup(sourceMenu: any): any

Static getFolderChildMenus

  • getFolderChildMenus(folderId: string): any

Static getInsertFixedButtonIndex

  • getInsertFixedButtonIndex(): any

Static getInsertMenuButtonIndex

  • getInsertMenuButtonIndex(): any

Static getMenu

  • getMenu(menuId: string): any

Static getMenuByMuuriGridItem

  • getMenuByMuuriGridItem(item: any): any

Static Private getMenuPath

  • getMenuPath(menu: any, iconColor: string, iconSize: string): string

Static getSystemHeaderPanel

  • getSystemHeaderPanel(cls?: any): any

Static getTopDesktopWindow

  • getTopDesktopWindow(): any

Static getWindowMenu

  • getWindowMenu(menu: any): any

Static hasWindowMenu

  • hasWindowMenu(menu: any): boolean

Static hideAllDesktopWin

  • hideAllDesktopWin(): void

Static hideDeleteFolder

  • hideDeleteFolder(): void

Static outDesktopMenuFolder

  • outDesktopMenuFolder(sourceMenu: any): void

Static recordMenu

  • recordMenu(): void

Static refreshActiveToolbarButton

  • refreshActiveToolbarButton(): void

Static refreshMuuriGridContainers

  • refreshMuuriGridContainers(): void

Static refreshMuuriGridMenuIndex

  • refreshMuuriGridMenuIndex(): void

Static removeAllDesktopToolbarFixedButton

  • removeAllDesktopToolbarFixedButton(): void

Static removeDesktopButton

  • removeDesktopButton(menu: any, silence?: boolean): void

Static removeDesktopToolbarButton

  • removeDesktopToolbarButton(sourceMenu: any): void

Static removeDesktopToolbarFixedButton

  • removeDesktopToolbarFixedButton(sourceMenu: any): void

Static resetWindowMenuAnimTarget

  • resetWindowMenuAnimTarget(menu: any, target: any): void

Static restoreMenu

  • restoreMenu(): any

Static restoreSystemDesktopMenus

  • restoreSystemDesktopMenus(): void

Static safeGetMenuColor

  • safeGetMenuColor(menu: any): string

Static safeGetMenuIcon

  • safeGetMenuIcon(menu: any): string

Static showDeleteFolder

  • showDeleteFolder(): void

Static showDesktopBackgroundImages

  • showDesktopBackgroundImages(obj: any): void

Static showEditFolderName

  • showEditFolderName(menu: any): void

Static showFolder

  • showFolder(obj: any, menu: any, active?: boolean): void

Static showFolderByMenuId

  • showFolderByMenuId(obj: any, menuId: string): void

Static showSystemLayout

  • showSystemLayout(): void

Static showWindowMenu

  • showWindowMenu(animObj: any, menu: any, active?: boolean): void

Static showWindowMenuById

  • showWindowMenuById(animObj: any, menuId: string, active?: boolean): void

Static showWindowPanel

  • showWindowPanel(obj: any, title: string, panel: any): void

Static switchMuuriGrid

  • switchMuuriGrid(muuriGrid: any, item: any, dragEnd: any): void
  • 将muuriGrid里的item切换到另一个grid里,并更新文件夹的信息

    Parameters

    • muuriGrid: any
    • item: any
    • dragEnd: any

    Returns void

Static takeIcon

  • takeIcon(icon: string, color: string): string

Static toggleStartMenu

  • toggleStartMenu(obj: any): void

Static updateDesktopMenuButton

  • updateDesktopMenuButton(menu: any): void

Static updateFolderGridMenu

  • updateFolderGridMenu(muuriGrid: any): void
  • 更新grid对应的桌面菜单对象,一般用于拖拽时实时的更新文件夹显示的图标

    Parameters

    • muuriGrid: any

    Returns void

Static updateMenuInfo

  • updateMenuInfo(menu: any): void
  • 更新与菜单相关的消息,包括:桌面按钮、工具栏按钮、窗体等

    Parameters

    • menu: any

    Returns void