Skip to content

Class: PressedItem

Used to keep track of what item was pressed to trigger an action. Different APIs are used for different types of pressed items (Control/ActionBer Item/Toolbar Item).

Hierarchy

  • any

  • PressedItem

Summary

Methods

Class Methods

Inherited Methods

Currently none inherited from the parent class(es).

Methods

getActionItem

getActionItem(): any

Returns: any

return the pressed actionbar item


getControlView

getControlView(): any

Returns: any

return the view of the control if the pressed item is a control


getSideDrawerMenuItem

getSideDrawerMenuItem(): any

Returns: any

return the pressed menu item


getTabItem

getTabItem(): any

Returns: any

return the pressed tab item


getToolbarItem

getToolbarItem(): any

Returns: any

return the pressed toolbar item


isActionItem

isActionItem(): boolean

Returns: boolean

return whether it is actionbar item (means the pressed item is a actionbar item)


isControlView

isControlView(): boolean

Returns: boolean

return whether it is control view (means the pressed item is a control)


isTabItem

isTabItem(): boolean

Returns: boolean

return whether it is tab item (means the pressed item is a tab item)


isToolbarItem

isToolbarItem(): boolean

Returns: boolean

return whether it is toolbar item (means the pressed item is a toolbar item)


Static WithActionItem

WithActionItem(actionItem: any): PressedItem

Parameters:

Name Type
actionItem any

Returns: PressedItem

the item of the pressed actionbar item


Static WithControlView

WithControlView(controlView: any): PressedItem

Parameters:

Name Type Description
controlView any the view for the control

Returns: PressedItem

the pressed control based on the defined view


Static WithSideDrawerMenuItem

WithSideDrawerMenuItem(menuItem: any): PressedItem

Parameters:

Name Type Description
menuItem any the sidedrawer menu item

Returns: PressedItem

the item of the pressed sidedrawer menu item


Static WithTabItem

WithTabItem(tabItem: any): PressedItem

Parameters:

Name Type Description
tabItem any the tab item

Returns: PressedItem

the item of the pressed tab item


Static WithToolbarItem

WithToolbarItem(toolbarItem: any): PressedItem

Parameters:

Name Type Description
toolbarItem any the toolbar item

Returns: PressedItem

the item of the pressed toolbar item