This class represents a lightweight region in a layout manager. This region does not move dom nodes
and does not have a titlebar, tabs or any other features. All it does is size and position
panels. To create a BasicLayoutRegion, add lightweight:true or basic:true to your regions config.
|
add(ContentPanel... panel ) : Ext.ContentPanel |
BasicLayoutRegion |
Add the passed ContentPanel(s) |
|
addEvents(Object object ) : void |
Observable |
Copies any events from the passed object onto this object if they do not already exist. The passed object
must also ... |
|
addListener(String eventName , Function handler , [Object options ]) : void |
Observable |
Appends an event handler to this component |
|
fireEvent(String eventName , Object... args ) : Boolean |
Observable |
Fires the specified event with the passed parameters (minus the event name). |
|
getActivePanel() : Ext.ContentPanel |
BasicLayoutRegion |
Get the active panel for this region. |
|
getEl() : Ext.Element |
BasicLayoutRegion |
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). |
|
hasListener(String eventName ) : Boolean |
Observable |
Checks to see if this object is currently listening for a specified event |
|
hasPanel(Number/String/ContentPanel panel ) : Boolean |
BasicLayoutRegion |
Returns true if the panel is in this region. |
|
isVisible() : Boolean |
BasicLayoutRegion |
Returns true if this region is currently visible. |
|
on(String eventName , Function handler , [Object options ]) : void |
Observable |
Appends an event handler to this element (shorthand for addListener) |
|
purgeListeners() : void |
Observable |
Removes all listeners for this object |
|
remove(Number/String/ContentPanel panel , Boolean preservePanel ) : Ext.ContentPanel |
BasicLayoutRegion |
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 |
Removes a listener |
|
resizeTo(Number newSize ) : void |
BasicLayoutRegion |
Resizes the region to the specified size. For vertical regions (west, east) this adjusts
the width, for horizontal (... |
|
showPanel(Number/String/ContentPanel panelId ) : Ext.ContentPanel |
BasicLayoutRegion |
Show the specified panel. |
|
un(String eventName , Function handler , [Object scope ]) : void |
Observable |
Removes a listener (shorthand for removeListener) |
|
beforeremove : (Ext.LayoutRegion this , Ext.ContentPanel panel , Object e ) |
BasicLayoutRegion |
Fires before a panel is removed (or closed). To cancel the removal set "e.cancel = true" on the event argument. |
|
collapsed : (Ext.LayoutRegion this ) |
BasicLayoutRegion |
Fires when this region is collapsed. |
|
expanded : (Ext.LayoutRegion this ) |
BasicLayoutRegion |
Fires when this region is expanded. |
|
invalidated : (Ext.LayoutRegion this ) |
BasicLayoutRegion |
Fires when the layout for this region is changed. |
|
panelactivated : (Ext.LayoutRegion this , Ext.ContentPanel panel ) |
BasicLayoutRegion |
Fires when a panel is activated. |
|
paneladded : (Ext.LayoutRegion this , Ext.ContentPanel panel ) |
BasicLayoutRegion |
Fires when a panel is added. |
|
panelremoved : (Ext.LayoutRegion this , Ext.ContentPanel panel ) |
BasicLayoutRegion |
Fires when a panel is removed. |
|
resized : (Ext.LayoutRegion this , Number newSize ) |
BasicLayoutRegion |
Fires when the user resizes this region. |
|
slidehide : (Ext.LayoutRegion this ) |
BasicLayoutRegion |
Fires when this region slides out of view. |
|
slideshow : (Ext.LayoutRegion this ) |
BasicLayoutRegion |
Fires when this region is slid into view. |
|
visibilitychange : (Ext.LayoutRegion this , Boolean visibility ) |
BasicLayoutRegion |
Fires when this region is shown or hidden |
add
public function add(ContentPanel... panel
)
Add the passed ContentPanel(s)
This method is defined by BasicLayoutRegion.
addEvents
public function addEvents(Object object
)
Copies any events from the passed object onto this object if they do not already exist. The passed object
must also inherit from Observable for this method to have any effect.
addListener
public function addListener(String eventName
, Function handler
, [Object options
])
Appends an event handler to this component
fireEvent
public function fireEvent(String eventName
, Object... args
)
Fires the specified event with the passed parameters (minus the event name).
getActivePanel
public function getActivePanel()
Get the active panel for this region.
Parameters:
Returns:
Ext.ContentPanel
The active panel or null
This method is defined by BasicLayoutRegion.
getEl
public function getEl()
Returns the container element for this region.
This method is defined by BasicLayoutRegion.
getPanel
public function getPanel(Number/String/ContentPanel panel
)
Returns the panel specified or null if it's not in this region.
This method is defined by BasicLayoutRegion.
getPosition
public function getPosition()
Returns this regions position (north/south/east/west/center).
This method is defined by BasicLayoutRegion.
hasListener
public function hasListener(String eventName
)
Checks to see if this object is currently listening for a specified event
hasPanel
public function hasPanel(Number/String/ContentPanel panel
)
Returns true if the panel is in this region.
This method is defined by BasicLayoutRegion.
isVisible
public function isVisible()
Returns true if this region is currently visible.
This method is defined by BasicLayoutRegion.
on
public function on(String eventName
, Function handler
, [Object options
])
Appends an event handler to this element (shorthand for addListener)
purgeListeners
public function purgeListeners()
Removes all listeners for this object
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 BasicLayoutRegion.
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.
Parameters:
newSize
: NumberThe new width or height
Returns:
This method is defined by BasicLayoutRegion.
showPanel
public function showPanel(Number/String/ContentPanel panelId
)
Show the specified panel.
Parameters:
Returns:
Ext.ContentPanel
The shown panel or null
This method is defined by BasicLayoutRegion.
un
public function un(String eventName
, Function handler
, [Object scope
])
Removes a listener (shorthand for removeListener)
beforeremove
public event beforeremove
Fires before a panel is removed (or closed). To cancel the removal set "e.cancel = true" on the event argument.
Subscribers will be called with the following parameters:
this
: Ext.LayoutRegionpanel
: Ext.ContentPanelThe panel
e
: ObjectThe cancel event object
This event is defined by BasicLayoutRegion.
collapsed
public event collapsed
Fires when this region is collapsed.
Subscribers will be called with the following parameters:
This event is defined by BasicLayoutRegion.
expanded
public event expanded
Fires when this region is expanded.
Subscribers will be called with the following parameters:
This event is defined by BasicLayoutRegion.
invalidated
public event invalidated
Fires when the layout for this region is changed.
Subscribers will be called with the following parameters:
This event is defined by BasicLayoutRegion.
panelactivated
public event panelactivated
Fires when a panel is activated.
Subscribers will be called with the following parameters:
this
: Ext.LayoutRegionpanel
: Ext.ContentPanelThe activated panel
This event is defined by BasicLayoutRegion.
paneladded
public event paneladded
Fires when a panel is added.
Subscribers will be called with the following parameters:
this
: Ext.LayoutRegionpanel
: Ext.ContentPanelThe panel
This event is defined by BasicLayoutRegion.
panelremoved
public event panelremoved
Fires when a panel is removed.
Subscribers will be called with the following parameters:
this
: Ext.LayoutRegionpanel
: Ext.ContentPanelThe panel
This event is defined by BasicLayoutRegion.
resized
public event resized
Fires when the user resizes this region.
Subscribers will be called with the following parameters:
This event is defined by BasicLayoutRegion.
slidehide
public event slidehide
Fires when this region slides out of view.
Subscribers will be called with the following parameters:
This event is defined by BasicLayoutRegion.
slideshow
public event slideshow
Fires when this region is slid into view.
Subscribers will be called with the following parameters:
This event is defined by BasicLayoutRegion.
visibilitychange
public event visibilitychange
Fires when this region is shown or hidden
Subscribers will be called with the following parameters:
this
: Ext.LayoutRegionvisibility
: Booleantrue or false
This event is defined by BasicLayoutRegion.