This class represents a region in a layout manager.
|
add(ContentPanel... panel ) : Ext.ContentPanel |
LayoutRegion |
Add the passed ContentPanel(s) |
|
addEvents(Object object ) : void |
Observable |
将对象中没有的事件从给出的对象中复制过来。 |
|
addListener(String eventName , Function handler , [Object scope ], [Object options ]) : void |
Observable |
为该组件加入事件处理器函数 |
|
collapse([Boolean skipAnim ]) : void |
LayoutRegion |
Collapses this region. |
|
expand(Ext.EventObject e , [Boolean skipAnim ]) : void |
LayoutRegion |
Expand this region if it was previously collapsed. |
|
fireEvent(String eventName , Object... args ) : Boolean |
Observable |
触发指定的事件, 并将参数传入(至少要有事件名称)。 |
|
getActivePanel() : Ext.ContentPanel |
LayoutRegion |
Get the active panel for this region. |
|
getEl() : Ext.Element |
LayoutRegion |
Returns the container element for this region. |
|
getPanel(Number/String/ContentPanel panel ) : Ext.ContentPanel |
BasicLayoutRegion |
Returns the panel specified or null if it's not in this region. |
|
getPosition() : String |
BasicLayoutRegion |
Returns this regions position (north/south/east/west/center). |
|
getTabs() : Ext.TabPanel |
LayoutRegion |
Returns the TabPanel component used by this region |
|
hasListener(String eventName ) : Boolean |
Observable |
检查该对象是否拥有指定事件的侦听器 |
|
hasPanel(Number/String/ContentPanel panel ) : Boolean |
BasicLayoutRegion |
Returns true if the panel is in this region. |
|
hide() : void |
LayoutRegion |
Hides this region. |
|
hidePanel(Number/String/ContentPanel panel ) : void |
LayoutRegion |
Hides the tab for the specified panel. |
|
isVisible() : Boolean |
LayoutRegion |
Returns true if this region is currently visible. |
|
on(String eventName , Function handler , [Object options ]) : void |
Observable |
为该组件加入事件处理器函数, addListener 的简写方式 |
|
purgeListeners() : void |
Observable |
从对象身上移除所有的侦听器 |
|
remove(Number/String/ContentPanel panel , Boolean preservePanel ) : Ext.ContentPanel |
LayoutRegion |
Removes the specified panel. If preservePanel is not true (either here or in the config), the panel is destroyed. |
|
removeListener(String eventName , Function handler , [Object scope ]) : void |
Observable |
移除侦听器 |
|
resizeTo(Number newSize ) : void |
BasicLayoutRegion |
Resizes the region to the specified size. For vertical regions (west, east) this adjusts
the width, for horizontal (... |
|
setCollapsedTitle() : void |
LayoutRegion |
Updates the collapsed text for north/south regions (used with collapsedTitle config option) |
|
show() : void |
LayoutRegion |
Shows this region if it was previously hidden. |
|
showPanel(Number/String/ContentPanel panelId ) : Ext.ContentPanel |
LayoutRegion |
Show the specified panel. |
|
un(String eventName , Function handler , [Object scope ]) : void |
Observable |
移除侦听器, removeListener 的简写方式 |
|
unhidePanel(Number/String/ContentPanel panel ) : void |
LayoutRegion |
Unhides the tab for a previously hidden panel. |
|
alwaysShowTabs : Boolean |
LayoutRegion |
True to always display tabs even when only 1 panel (defaults to false) |
|
animate : Boolean |
LayoutRegion |
True to animate expand/collapse (defaults to false) |
|
autoHide : Boolean |
LayoutRegion |
False to disable autoHide when the mouse leaves the "floated" region (defaults to true) |
|
autoScroll : Boolean |
LayoutRegion |
True to enable overflow scrolling (defaults to false) |
|
closeOnTab : Boolean |
LayoutRegion |
True to place the close icon on the tabs instead of the region titlebar (defaults to false) |
|
cmargins : Object |
LayoutRegion |
Margins for the element when collapsed (defaults to: north/south {top: 2, left: 0, right:0, bottom: 2} or east/west {... |
|
collapsed : Boolean |
LayoutRegion |
True to set the initial display to collapsed (defaults to false) |
|
collapsedTitle : String |
LayoutRegion |
Optional string message to display in the collapsed block of a north or south region |
|
collapsible : Boolean |
LayoutRegion |
False to disable collapsing (defaults to true) |
|
disableTabTips : Boolean |
LayoutRegion |
True to disable tab tooltips |
|
floatable : Boolean |
LayoutRegion |
False to disable floating (defaults to true) |
|
hidden : Boolean |
LayoutRegion |
True to start the region hidden |
|
hideTabs : Boolean |
LayoutRegion |
True to hide the tab strip (defaults to false) |
|
hideWhenEmpty : Boolean |
LayoutRegion |
True to hide the region when it has no panels |
|
margins : Object |
LayoutRegion |
Margins for the element (defaults to {top: 0, left: 0, right:0, bottom: 0}) |
|
minTabWidth : Number |
LayoutRegion |
The minimum tab width (defaults to 40) |
|
preferredTabWidth : Number |
LayoutRegion |
The preferred tab width (defaults to 150) |
|
preservePanels : Boolean |
LayoutRegion |
True to preserve removed panels so they can be readded later (defaults to false) |
|
resizeTabs : Boolean |
LayoutRegion |
True to enable automatic tab resizing. This will resize the tabs so they are all the same size and fit within the spa... |
|
showPin : Boolean |
LayoutRegion |
True to show a pin button |
|
tabPosition : String |
LayoutRegion |
"top" or "bottom" (defaults to "bottom") |
|
title : String |
LayoutRegion |
The title for the region (overrides panel titles) |
|
titlebar : Boolean |
LayoutRegion |
True to display a title bar (defaults to true) |
bodyEl
public Ext.Element bodyEl
This regions body element
This property is defined by LayoutRegion.
collapsedEl
public Ext.Element collapsedEl
This region's collapsed element
This property is defined by LayoutRegion.
el
public Ext.Element el
This regions container element
This property is defined by LayoutRegion.
panels
public Ext.util.MixedCollection panels
A collection of panels in this region.
titleTextEl
public HTMLElement titleTextEl
This regions title text element
This property is defined by LayoutRegion.
add
public function add(ContentPanel... panel
)
Add the passed ContentPanel(s)
This method is defined by LayoutRegion.
addEvents
public function addEvents(Object object
)
将对象中没有的事件从给出的对象中复制过来。给出的对象必须也继承于 Observable 对象此方法才会有效果。
addListener
public function addListener(String eventName
, Function handler
, [Object scope
], [Object options
])
collapse
public function collapse([Boolean skipAnim
])
This method is defined by LayoutRegion.
expand
public function expand(Ext.EventObject e
, [Boolean skipAnim
])
Expand this region if it was previously collapsed.
This method is defined by LayoutRegion.
fireEvent
public function fireEvent(String eventName
, Object... args
)
触发指定的事件并给出参数(至少要有事件名称)。
参数:
eventName
: Stringargs
: Object...传入处理函数的参数
返回:
getActivePanel
public function getActivePanel()
Get the active panel for this region.
参数:
返回:
Ext.ContentPanel
The active panel or null
This method is defined by LayoutRegion.
getEl
public function getEl()
Returns the container element for this region.
This method is defined by LayoutRegion.
getPanel
public function getPanel(Number/String/ContentPanel panel
)
Returns the panel specified or null if it's not in this region.
getPosition
public function getPosition()
Returns this regions position (north/south/east/west/center).
getTabs
public function getTabs()
Returns the TabPanel component used by this region
This method is defined by LayoutRegion.
hasListener
public function hasListener(String eventName
)
检查该对象是否拥有指定事件的侦听器
参数:
eventName
: String查询事件之名称
返回:
hasPanel
public function hasPanel(Number/String/ContentPanel panel
)
Returns true if the panel is in this region.
hide
public function hide()
This method is defined by LayoutRegion.
hidePanel
public function hidePanel(Number/String/ContentPanel panel
)
Hides the tab for the specified panel.
This method is defined by LayoutRegion.
isVisible
public function isVisible()
Returns true if this region is currently visible.
This method is defined by LayoutRegion.
on
public function on(String eventName
, Function handler
, [Object options
])
为该组件加入事件处理器函数, addListener 的简写方式
参数:
eventName
: String侦听事件的类型
handler
: Function事件调用的方法
options
: Object(可选)
返回:
purgeListeners
public function purgeListeners()
remove
public function remove(Number/String/ContentPanel panel
, Boolean preservePanel
)
Removes the specified panel. If preservePanel is not true (either here or in the config), the panel is destroyed.
This method is defined by LayoutRegion.
removeListener
public function removeListener(String eventName
, Function handler
, [Object scope
])
resizeTo
public function resizeTo(Number newSize
)
Resizes the region to the specified size. For vertical regions (west, east) this adjusts
the width, for horizontal (north, south) the height.
参数:
newSize
: Number新宽度 or height
返回:
setCollapsedTitle
public function setCollapsedTitle()
Updates the collapsed text for north/south regions (used with collapsedTitle config option)
This method is defined by LayoutRegion.
show
public function show()
Shows this region if it was previously hidden.
This method is defined by LayoutRegion.
showPanel
public function showPanel(Number/String/ContentPanel panelId
)
Show the specified panel.
参数:
返回:
Ext.ContentPanel
The shown panel or null
This method is defined by LayoutRegion.
un
public function un(String eventName
, Function handler
, [Object scope
])
移除侦听器, removeListener 的简写方式
unhidePanel
public function unhidePanel(Number/String/ContentPanel panel
)
Unhides the tab for a previously hidden panel.
This method is defined by LayoutRegion.
alwaysShowTabs
alwaysShowTabs : Boolean
True to always display tabs even when only 1 panel (defaults to false)
This config option is defined by LayoutRegion.
animate
animate : Boolean
True to animate expand/collapse (defaults to false)
This config option is defined by LayoutRegion.
autoHide
autoHide : Boolean
False to disable autoHide when the mouse leaves the "floated" region (defaults to true)
This config option is defined by LayoutRegion.
autoScroll
autoScroll : Boolean
True to enable overflow scrolling (defaults to false)
This config option is defined by LayoutRegion.
closeOnTab
closeOnTab : Boolean
True to place the close icon on the tabs instead of the region titlebar (defaults to false)
This config option is defined by LayoutRegion.
cmargins
cmargins : Object
Margins for the element when collapsed (defaults to: north/south {top: 2, left: 0, right:0, bottom: 2} or east/west {top: 0, left: 2, right:2, bottom: 0})
This config option is defined by LayoutRegion.
collapsed
collapsed : Boolean
True to set the initial display to collapsed (defaults to false)
This config option is defined by LayoutRegion.
collapsedTitle
collapsedTitle : String
Optional string message to display in the collapsed block of a north or south region
This config option is defined by LayoutRegion.
collapsible
collapsible : Boolean
False to disable collapsing (defaults to true)
This config option is defined by LayoutRegion.
disableTabTips
disableTabTips : Boolean
True to disable tab tooltips
This config option is defined by LayoutRegion.
floatable
floatable : Boolean
False to disable floating (defaults to true)
This config option is defined by LayoutRegion.
hidden
hidden : Boolean
True to start the region hidden
This config option is defined by LayoutRegion.
hideTabs
hideTabs : Boolean
True to hide the tab strip (defaults to false)
This config option is defined by LayoutRegion.
hideWhenEmpty
hideWhenEmpty : Boolean
True to hide the region when it has no panels
This config option is defined by LayoutRegion.
margins
margins : Object
Margins for the element (defaults to {top: 0, left: 0, right:0, bottom: 0})
This config option is defined by LayoutRegion.
minTabWidth
minTabWidth : Number
The minimum tab width (defaults to 40)
This config option is defined by LayoutRegion.
preferredTabWidth
preferredTabWidth : Number
The preferred tab width (defaults to 150)
This config option is defined by LayoutRegion.
preservePanels
preservePanels : Boolean
True to preserve removed panels so they can be readded later (defaults to false)
This config option is defined by LayoutRegion.
resizeTabs
resizeTabs : Boolean
True to enable automatic tab resizing. This will resize the tabs so they are all the same size and fit within the space available, similar to FireFox 1.5 tabs (defaults to false)
This config option is defined by LayoutRegion.
showPin
showPin : Boolean
True to show a pin button
This config option is defined by LayoutRegion.
tabPosition
tabPosition : String
"top" or "bottom" (defaults to "bottom")
This config option is defined by LayoutRegion.
title
title : String
The title for the region (overrides panel titles)
This config option is defined by LayoutRegion.
titlebar
titlebar : Boolean
True to display a title bar (defaults to true)
This config option is defined by LayoutRegion.