Roo.util.Observable Roo.Component Roo.BoxComponent
Package: | Roo |
Defined In: | Roo/BoxComponent.js. |
Class: | BoxComponent |
Subclasses: | Roo.form.Checkbox, Roo.form.ComboBox, Roo.form.ComboBoxArray, Roo.form.ComboBoxArray.Item, Roo.form.ComboCheck, Roo.form.DateField, Roo.form.DayPicker, Roo.form.DisplayField, Roo.form.FCKeditor, Roo.form.Field, Roo.form.GridField, Roo.form.Hidden, Roo.form.HtmlEditor, Roo.form.MonthField, Roo.form.NumberField, Roo.form.Radio, Roo.form.Select, Roo.form.Signature, Roo.form.TextArea, Roo.form.TextField, Roo.form.TriggerField |
Extends: | Roo.Component |
Options | Defined By | |
---|---|---|
actionMode : String
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el'
which property holds the element that used for hide() / show() / disable() / enable()
default is 'el' |
Roo.Component | |
allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Whether the component can move the Dom node when rendering (defaults to true).
|
Roo.Component | |
disableClass : String
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
|
Roo.Component | |
height : Number
height (optional) size of component
height (optional) size of component
|
Roo.BoxComponent | |
hideMode : String
How this component should hidden.
How this component should hidden. Supported values are
"visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display". Possible Values: display, visibility |
Roo.Component | |
listeners : Object
list of events and functions to call for this object,
For example :
list of events and functions to call for this object,
For example :
|
Roo.util.Observable | |
width : Number
width (optional) size of component
width (optional) size of component
|
Roo.BoxComponent |
Method | Defined By | |
---|---|---|
new Roo.BoxComponent
(Roo.Element/String/Object config)
Create a new Roo.BoxComponent
Create a new Roo.BoxComponent
|
||
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
destroy
()
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}.
Destroys this component by purging any event listeners, removing the component's element from the DOM,
removing the component from its {link Roo.Container} (if applicable) and unregistering it from {link Roo.ComponentMgr}. |
Roo.Component | |
disable
()
:
Roo.Component
Disable this component.
Disable this component.
|
Roo.Component | |
enable
()
:
Roo.Component
Enable this component.
Enable this component.
|
Roo.Component | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
focus
(Boolean selectText)
:
Roo.Component
Try to focus this component.
Try to focus this component.
|
Roo.Component | |
getBox
(Boolean local)
Gets the current box measurements of the component's underlying element.
Gets the current box measurements of the component's underlying element.
|
Roo.BoxComponent | |
getEl
()
:
Roo.Element
Returns the underlying {link Roo.Element}.
Returns the underlying {link Roo.Element}.
|
Roo.Component | |
getId
()
:
String
Returns the id of this component.
Returns the id of this component.
|
Roo.Component | |
Gets the current XY position of the component's underlying element.
|
Roo.BoxComponent | |
getSize
()
:
Object
Gets the current size of the component's underlying element.
Gets the current size of the component's underlying element.
|
Roo.BoxComponent | |
Roo.util.Observable | ||
hide
()
:
Roo.Component
Hide this component.
Hide this component.
|
Roo.Component | |
isVisible
()
Returns true if this component is visible.
Returns true if this component is visible.
|
Roo.Component | |
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
Called after the component is moved, this method is empty by default but can be implemented by any
subclass that needs to perform custom logic after a move occurs. |
Roo.BoxComponent | |
Called after the component is resized, this method is empty by default but can be implemented by any
subclass that needs to perform custom logic after a resize occurs.
Called after the component is resized, this method is empty by default but can be implemented by any
subclass that needs to perform custom logic after a resize occurs. |
Roo.BoxComponent | |
purgeListeners
()
Removes all listeners for this object
Removes all listeners for this object
|
Roo.util.Observable | |
Roo.util.Observable | ||
render
(String/HTMLElement/Element container)
If this is a lazy rendering component, render it to its container element.
If this is a lazy rendering component, render it to its container element.
|
Roo.Component | |
setDisabled
(Boolean disabled)
Convenience function for setting disabled/enabled by boolean.
Convenience function for setting disabled/enabled by boolean.
|
Roo.Component | |
Roo.BoxComponent | ||
Roo.BoxComponent | ||
Sets the width and height of the component.
Sets the width and height of the component. This method fires the resize event. This method can accept
either width and height as separate numeric arguments, or you can pass a size object like {width:10, height:20}.
|
Roo.BoxComponent | |
setVisible
(Boolean visible)
:
Roo.Component
Convenience function to hide or show this component by boolean.
Convenience function to hide or show this component by boolean.
|
Roo.Component | |
show
()
:
Roo.Component
Show this component.
Show this component.
|
Roo.Component | |
syncSize
()
Force the component's size to recalculate based on the underlying element's current height and width.
Force the component's size to recalculate based on the underlying element's current height and width.
|
Roo.BoxComponent | |
Roo.util.Observable | ||
updateBox
(Object box)
Sets the current box measurements of the component's underlying element.
Sets the current box measurements of the component's underlying element.
|
Roo.BoxComponent |
Event | Defined By | |
---|---|---|
beforedestroy (Roo.Component this)
Fires before the component is destroyed.
Fires before the component is destroyed. Return false to stop the destroy.
|
Roo.Component | |
beforehide (Roo.Component this)
Fires before the component is hidden.
Fires before the component is hidden. Return false to stop the hide.
|
Roo.Component | |
beforerender (Roo.Component this)
Fires before the component is rendered.
Fires before the component is rendered. Return false to stop the render.
|
Roo.Component | |
beforeshow (Roo.Component this)
Fires before the component is shown.
Fires before the component is shown. Return false to stop the show.
|
Roo.Component | |
destroy (Roo.Component this)
Fires after the component is destroyed.
Fires after the component is destroyed.
|
Roo.Component | |
disable (Roo.Component this)
Fires after the component is disabled.
Fires after the component is disabled.
|
Roo.Component | |
enable (Roo.Component this)
Fires after the component is enabled.
Fires after the component is enabled.
|
Roo.Component | |
hide (Roo.Component this)
Fires after the component is hidden.
Fires after the component is hidden.
|
Roo.Component | |
Fires after the component is moved.
Fires after the component is moved.
|
Roo.BoxComponent | |
render (Roo.Component this)
Fires after the component is rendered.
Fires after the component is rendered.
|
Roo.Component | |
Fires after the component is resized.
Fires after the component is resized.
|
Roo.BoxComponent | |
show (Roo.Component this)
Fires after the component is shown.
Fires after the component is shown.
|
Roo.Component |