Print Friendly

Class Ext.Toolbar.Item

Package:Ext
Class:Toolbar.Item
Extends:Object
Subclasses:Toolbar.Separator, Toolbar.Spacer, Toolbar.TextItem
Defined In:Toolbar.js
The base class that other classes should extend in order to get some basic common toolbar item functionality.

Properties   -  Methods   -  Events

Public Properties

This class has no public properties.

Public Methods

Method Defined By
  Toolbar.ItemHTMLElement el ) Toolbar.Item
Creates a new Item
  destroy() : void Toolbar.Item
Removes and destroys this item.
  disable() : void Toolbar.Item
Disables this item.
  enable() : void Toolbar.Item
Enables this item.
  focus() : void Toolbar.Item
Try to focus this item.
  getEl() : HTMLElement Toolbar.Item
Get this item's HTML Element
  hide() : void Toolbar.Item
Hides this item.
  setVisibleBoolean visible ) : void Toolbar.Item
Convenience function for boolean show/hide.
  show() : void Toolbar.Item
Shows this item.

Public Events

This class has no public events.

Constructor Details

Toolbar.Item

public function Toolbar.Item( HTMLElement el )
Creates a new Item
Parameters:
  • el : HTMLElement

Method Details

destroy

public function destroy()
Removes and destroys this item.
Parameters:
  • None.
Returns:
  • void
This method is defined by Toolbar.Item.

disable

public function disable()
Disables this item.
Parameters:
  • None.
Returns:
  • void
This method is defined by Toolbar.Item.

enable

public function enable()
Enables this item.
Parameters:
  • None.
Returns:
  • void
This method is defined by Toolbar.Item.

focus

public function focus()
Try to focus this item.
Parameters:
  • None.
Returns:
  • void
This method is defined by Toolbar.Item.

getEl

public function getEl()
Get this item's HTML Element
Parameters:
  • None.
Returns:
  • HTMLElement
This method is defined by Toolbar.Item.

hide

public function hide()
Hides this item.
Parameters:
  • None.
Returns:
  • void
This method is defined by Toolbar.Item.

setVisible

public function setVisible( Boolean visible )
Convenience function for boolean show/hide.
Parameters:
  • visible : Boolean
    true to show/false to hide
Returns:
  • void
This method is defined by Toolbar.Item.

show

public function show()
Shows this item.
Parameters:
  • None.
Returns:
  • void
This method is defined by Toolbar.Item.

Ext - Copyright © 2006-2007 Ext JS, LLC
All rights reserved.