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

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


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 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