Class Ext.LayoutManager
Base class for layout managers.
Properties
-
Methods
-
Events
Public Properties
Public Methods
|
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 |
|
beginUpdate() : void |
LayoutManager |
Suspend the LayoutManager from doing auto-layouts while
making multiple add or remove calls |
|
endUpdate(Boolean noLayout ) : void |
LayoutManager |
Restore auto-layouts and optionally disable the manager from performing a layout |
|
fireEvent(String eventName , Object... args ) : Boolean |
Observable |
Fires the specified event with the passed parameters (minus the event name). |
|
getEl() : Ext.Element |
LayoutManager |
Returns the element this layout is bound to. |
|
getRegion(String target ) : Ext.LayoutRegion |
LayoutManager |
Returns the specified region. |
|
getViewSize() : Object |
LayoutManager |
Returns the size of the current view, This method normalizes document.body and element embedded layouts and
performs ... |
|
hasListener(String eventName ) : Boolean |
Observable |
Checks to see if this object is currently listening for a specified event |
|
isUpdating() : Boolean |
LayoutManager |
Returns true if this layout is currently being updated |
|
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 |
|
removeListener(String eventName , Function handler , [Object scope ]) : void |
Observable |
Removes a listener |
|
un(String eventName , Function handler , [Object scope ]) : void |
Observable |
Removes a listener (shorthand for removeListener) |
Public Events
|
layout : (Ext.LayoutManager this ) |
LayoutManager |
Fires when a layout is performed. |
|
regioncollapsed : (Ext.LayoutRegion region ) |
LayoutManager |
Fires when a region is collapsed. |
|
regionexpanded : (Ext.LayoutRegion region ) |
LayoutManager |
Fires when a region is expanded. |
|
regionresized : (Ext.LayoutRegion region , Number newSize ) |
LayoutManager |
Fires when the user resizes a region. |
Property Details
monitorWindowResize
public Boolean monitorWindowResize
false to disable window resize monitoring
This property is defined by LayoutManager.
Method Details
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
beginUpdate
public function beginUpdate()
Suspend the LayoutManager from doing auto-layouts while
making multiple add or remove calls
This method is defined by LayoutManager.
endUpdate
public function endUpdate(Boolean noLayout
)
Restore auto-layouts and optionally disable the manager from performing a layout
This method is defined by LayoutManager.
fireEvent
public function fireEvent(String eventName
, Object... args
)
Fires the specified event with the passed parameters (minus the event name).
getEl
public function getEl()
Returns the element this layout is bound to.
This method is defined by LayoutManager.
getRegion
public function getRegion(String target
)
Returns the specified region.
Parameters:
target
: StringThe region key
Returns:
This method is defined by LayoutManager.
getViewSize
public function getViewSize()
Returns the size of the current view, This method normalizes document.body and element embedded layouts and
performs box-model adjustments.
This method is defined by LayoutManager.
hasListener
public function hasListener(String eventName
)
Checks to see if this object is currently listening for a specified event
isUpdating
public function isUpdating()
Returns true if this layout is currently being updated
This method is defined by LayoutManager.
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
removeListener
public function removeListener(String eventName
, Function handler
, [Object scope
])
un
public function un(String eventName
, Function handler
, [Object scope
])
Removes a listener (shorthand for removeListener)
Event Details
layout
public event layout
Fires when a layout is performed.
Subscribers will be called with the following parameters:
This event is defined by LayoutManager.
regioncollapsed
public event regioncollapsed
Fires when a region is collapsed.
Subscribers will be called with the following parameters:
region
: Ext.LayoutRegion
This event is defined by LayoutManager.
regionexpanded
public event regionexpanded
Fires when a region is expanded.
Subscribers will be called with the following parameters:
region
: Ext.LayoutRegion
This event is defined by LayoutManager.
regionresized
public event regionresized
Fires when the user resizes a region.
Subscribers will be called with the following parameters:
This event is defined by LayoutManager.