打印版式

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.

属性   -  方法   -  事件

公共属性

此类没有公共属性。

公共方法

方法 定义对象
  Toolbar.Item(HTMLElement el) Toolbar.Item
Creates a new Item
  destroy() : void Toolbar.Item
Remove and destroy this button
  disable() : void Toolbar.Item
Disable this item
  enable() : void Toolbar.Item
Enable 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
Hide this item
  setVisible(Boolean visible) : void Toolbar.Item
Convenience function for boolean show/hide
  show() : void Toolbar.Item
Show this item

公共事件

此类没有公共事件。

构造函数

Toolbar.Item

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

方法详情

destroy

public function destroy()
Remove and destroy this button
参数:
  • 无。
返回:
  • void
This method is defined by Toolbar.Item.

disable

public function disable()
Disable this item
参数:
  • 无。
返回:
  • void
This method is defined by Toolbar.Item.

enable

public function enable()
Enable this item
参数:
  • 无。
返回:
  • void
This method is defined by Toolbar.Item.

focus

public function focus()
Try to focus this item
参数:
  • 无。
返回:
  • void
This method is defined by Toolbar.Item.

getEl

public function getEl()
Get this item's HTML Element
参数:
  • 无。
返回:
  • HTMLElement
This method is defined by Toolbar.Item.

hide

public function hide()
Hide this item
参数:
  • 无。
返回:
  • void
This method is defined by Toolbar.Item.

setVisible

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

show

public function show()
Show this item
参数:
  • 无。
返回:
  • void
This method is defined by Toolbar.Item.

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