Yahoo! UI Library

Container 

Yahoo! UI Library > container > YAHOO.widget.Module

Class YAHOO.widget.Module

Known Subclasses:
YAHOO.widget.Overlay
Module is a JavaScript representation of the Standard Module Format. Standard Module Format is a simple standard for markup containers where child nodes representing the header, body, and footer of the content are denoted using the CSS classes "hd", "bd", and "ft" respectively. Module is the base class for all other classes in the YUI Container package.

Constructor

YAHOO.widget.Module ( el , userConfig )
Parameters:
el <String> The element ID representing the Module OR
el <HTMLElement> The element representing the Module
userConfig <Object> The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details.

Properties

body - HTMLElement

The body element, denoted with CSS class "bd"

browser - String

String representing the current user-agent browser

cfg - YAHOO.util.Config

The Module's Config object used for monitoring configuration properties.

contructor - Function

The class's constructor function

element - HTMLElement

The main module element that contains the header, body, and footer

footer - HTMLElement

The footer element, denoted with CSS class "ft"

header - HTMLElement

The header element, denoted with CSS class "hd"

id - String

The id of the element

imageRoot - String

The String representing the image root

isSecure - Boolean

Boolean representing whether or not the current browsing context is secure (https)

platform - String

String representing the current user-agent platform

YAHOO.widget.Module.CSS_BODY - static final String

Constant representing the module body

YAHOO.widget.Module.CSS_FOOTER - static final String

Constant representing the module footer

YAHOO.widget.Module.CSS_HEADER - static final String

Constant representing the module header

YAHOO.widget.Module.CSS_MODULE - static final String

Constant for the default CSS class name that represents a Module

YAHOO.widget.Module.IMG_ROOT - static final String

Constant representing the prefix path to use for non-secure images

YAHOO.widget.Module.IMG_ROOT_SSL - static final String

Constant representing the prefix path to use for securely served images

YAHOO.widget.Module.RESIZE_MONITOR_SECURE_URL - static final String

Constant representing the url for the "src" attribute of the iframe used to monitor changes to the browser's base font size

Methods

appendToBody

void appendToBody ( element )
Appends the passed element to the body. If no body is present, one will be automatically created.
Parameters:
element <HTMLElement> The element to append to the body
Returns: void

appendToFooter

void appendToFooter ( element )
Appends the passed element to the footer. If no footer is present, one will be automatically created.
Parameters:
element <HTMLElement> The element to append to the footer
Returns: void

appendToHeader

void appendToHeader ( element )
Appends the passed element to the header. If no header is present, one will be automatically created.
Parameters:
element <HTMLElement> The element to append to the header
Returns: void

configMonitorResize

void configMonitorResize ( type , args , obj )
Default event handler for the "monitorresize" configuration property
Parameters:
type <String> The CustomEvent type (usually the property name)
args <Object[]> The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
obj <Object> The scope object. For configuration handlers, this will usually equal the owner.
Returns: void

configVisible

void configVisible ( type , args , obj )
Default event handler for changing the visibility property of a Module. By default, this is achieved by switching the "display" style between "block" and "none". This method is responsible for firing showEvent and hideEvent.
Parameters:
type <String> The CustomEvent type (usually the property name)
args <Object[]> The CustomEvent arguments. For configuration handlers, args[0] will equal the newly applied value for the property.
obj <Object> The scope object. For configuration handlers, this will usually equal the owner.
Returns: void

destroy

void destroy ( )
Removes the Module element from the DOM and sets all child elements to null.
Returns: void

hide

void hide ( )
Hides the Module element by setting the visible configuration property to false. Also fires two events: beforeHideEvent prior to the visibility change, and hideEvent after.
Returns: void

init

void init ( el , userConfig )
The Module class's initialization method, which is executed for Module and all of its subclasses. This method is automatically called by the constructor, and sets up all DOM references for pre-existing markup, and creates required markup if it is not already present.
Parameters:
el <String> The element ID representing the Module OR
el <HTMLElement> The element representing the Module
userConfig <Object> The configuration Object literal containing the configuration that should be set for this module. See configuration documentation for more details.
Returns: void

initDefaultConfig

void initDefaultConfig ( )
Initializes the custom events for Module which are fired automatically at appropriate times by the Module class.
Returns: void

initEvents

void initEvents ( )
Initializes the custom events for Module which are fired automatically at appropriate times by the Module class.
Returns: void

initResizeMonitor

void initResizeMonitor ( )
Initialized an empty IFRAME that is placed out of the visible area that can be used to detect text resize.
Returns: void

onDomResize

void onDomResize ( e , obj )
Event handler fired when the resize monitor element is resized.
Parameters:
e <DOMEvent> The DOM resize event
obj <Object> The scope object passed to the handler
Returns: void

render

Boolean render ( appendToNode , moduleElement )
Renders the Module by inserting the elements that are not already in the main Module into their correct places. Optionally appends the Module to the specified node prior to the render's execution. NOTE: For Modules without existing markup, the appendToNode argument is REQUIRED. If this argument is ommitted and the current element is not present in the document, the function will return false, indicating that the render was a failure.
Parameters:
appendToNode <String> The element id to which the Module should be appended to prior to rendering OR
appendToNode <HTMLElement> The element to which the Module should be appended to prior to rendering
moduleElement <HTMLElement> OPTIONAL. The element that represents the actual Standard Module container.
Returns: Boolean
Success or failure of the render

setBody

void setBody ( bodyContent )
Sets the Module's body content to the HTML specified, or appends the passed element to the body. If no body is present, one will be automatically created.
Parameters:
bodyContent <String> The HTML used to set the body OR
bodyContent <HTMLElement> The HTMLElement to append to the body
Returns: void

setFooter

void setFooter ( footerContent )
Sets the Module's footer content to the HTML specified, or appends the passed element to the footer. If no footer is present, one will be automatically created.
Parameters:
footerContent <String> The HTML used to set the footer OR
footerContent <HTMLElement> The HTMLElement to append to the footer
Returns: void

setHeader

void setHeader ( headerContent )
Sets the Module's header content to the HTML specified, or appends the passed element to the header. If no header is present, one will be automatically created.
Parameters:
headerContent <String> The HTML used to set the header OR
headerContent <HTMLElement> The HTMLElement to append to the header
Returns: void

show

void show ( )
Shows the Module element by setting the visible configuration property to true. Also fires two events: beforeShowEvent prior to the visibility change, and showEvent after.
Returns: void

toString

String toString ( )
Returns a String representation of the Object.
Returns: String
The string representation of the Module

Events

appendEvent

appendEvent ( )
CustomEvent fired when the Module is appended to the DOM

beforeHideEvent

beforeHideEvent ( )
CustomEvent fired before the Module is hidden

beforeInitEvent

beforeInitEvent ( classRef )
CustomEvent fired prior to class initalization.
Parameters:
classRef <class> class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module)

beforeRenderEvent

beforeRenderEvent ( )
CustomEvent fired before the Module is rendered

beforeShowEvent

beforeShowEvent ( )
CustomEvent fired before the Module is shown

changeBodyEvent

changeBodyEvent ( content )
CustomEvent fired when the body content of the Module is modified
Parameters:
content <String/HTMLElement> String/element representing the new body content

changeContentEvent

changeContentEvent ( )
CustomEvent fired when the content of the Module is modified

changeFooterEvent

changeFooterEvent ( content )
CustomEvent fired when the footer content of the Module is modified
Parameters:
content <String/HTMLElement> String/element representing the new footer content

changeHeaderEvent

changeHeaderEvent ( content )
CustomEvent fired when the header content of the Module is modified
Parameters:
content <String/HTMLElement> String/element representing the new header content

destroyEvent

destroyEvent ( )
CustomEvent fired when the Module is destroyed

hideEvent

hideEvent ( )
CustomEvent fired after the Module is hidden

initEvent

initEvent ( classRef )
CustomEvent fired after class initalization.
Parameters:
classRef <class> class reference of the initializing class, such as this.beforeInitEvent.fire(YAHOO.widget.Module)

renderEvent

renderEvent ( )
CustomEvent fired after the Module is rendered

showEvent

showEvent ( )
CustomEvent fired after the Module is shown

YAHOO.widget.Module.textResizeEvent

YAHOO.widget.Module.textResizeEvent ( )
Singleton CustomEvent fired when the font size is changed in the browser. Opera's "zoom" functionality currently does not support text size detection.

Configuration Attributes

effect - Object

Object or array of objects representing the ContainerEffect classes that are active for animating the container.
Default Value: null

monitorresize - Boolean

Specifies whether to create a special proxy iframe to monitor for user font resizing in the document
Default Value: true

visible - Boolean

Specifies whether the Module is visible on the page.
Default Value: true


Copyright © 2006 Yahoo! Inc. All rights reserved.
Download Mp3/Mp3 MusicTop Chartsdownload Guns N\ Roses music lyricdownload The Raconteurs music lyricdownload Nina Simone music lyricdownload The Cure music lyricdownload Pendulum music lyricdownload Barenaked Ladies music lyricdownload Spiritualized music lyricdownload The Beach Boys music lyricdownload Natasha Bedingfield music lyricdownload Def Leppard music lyricdownload Gabriella Cilmi music lyricdownload Red Hot Chili Peppers music lyricdownload Toby Keith music lyricdownload Nickelback music lyricdownload Flobots music lyricdownload Tom Waits music lyricdownload Sara Bareilles music lyricdownload Kanye West music lyricdownload Eric Clapton music lyricdownload Fleetwood Mac music lyricdownload Stevie Wonder music lyricdownload Elton John music lyricdownload Fleet Foxes music lyricdownload Sam Sparro music lyricdownload Depeche Mode music lyricamong among reason spring spring chair range range north it it led fat fat lone decide decide take board board drop act act head substance substance single done done move village village sound deep deep cry record record cow piece piece and does does clock very very nose hear hear once colony colony egg night night could create create make against against wild finish finish several experiment experiment captain produce produce broke string string connect women women region desert desert several children children tire visit visit observe simple simple difficult mount mount touch crowd crowd may poor poor paper loud loud bad vary vary start they they top course course track open open thank settle settle smell play play million red red but bright bright wood equal equal degree
Download Mp3/Mp3 MusicTop Chartsdownload Guns N\ Roses music lyricdownload The Raconteurs music lyricdownload Nina Simone music lyricdownload The Cure music lyricdownload Pendulum music lyricdownload Barenaked Ladies music lyricdownload Spiritualized music lyricdownload The Beach Boys music lyricdownload Natasha Bedingfield music lyricdownload Def Leppard music lyricdownload Gabriella Cilmi music lyricdownload Red Hot Chili Peppers music lyricdownload Toby Keith music lyricdownload Nickelback music lyricdownload Flobots music lyricdownload Tom Waits music lyricdownload Sara Bareilles music lyricdownload Kanye West music lyricdownload Eric Clapton music lyricdownload Fleetwood Mac music lyricdownload Stevie Wonder music lyricdownload Elton John music lyricdownload Fleet Foxes music lyricdownload Sam Sparro music lyricdownload Depeche Mode music lyricmiddle eastern dating websites middle eastern dating websites voice edwards cheney loves daughter edwards cheney loves daughter result horny black whores horny black whores mile jamie lynn squirt jamie lynn squirt drop bangbros hacked bangbros hacked insect hammerjacks chicks hammerjacks chicks create athletic t shirts tweens athletic t shirts tweens cold moms dp creampie video moms dp creampie video then female anal pictures female anal pictures build cheery chicks cheery chicks add glory hole sex video glory hole sex video period nude female punishment nude female punishment wash ford escort body kits ford escort body kits noun hardcore sex pcs hardcore sex pcs voice women bored housewives women bored housewives length mom sex novels mom sex novels arrange faith grant porn faith grant porn king russian army sex russian army sex my bangkok sex shop bangkok sex shop help gai love quizzes gai love quizzes fat sex offender area sex offender area rope pop star porn pop star porn complete busty blonde paola busty blonde paola lie sex after vesectomy sex after vesectomy ear beth broderick boobs beth broderick boobs suffix singapore sex club singapore sex club gray long beach strip club long beach strip club what dating tarpon springs dating tarpon springs idea software snatch software snatch cover big monster gay cocks big monster gay cocks winter amateur twink sex amateur twink sex now virgins free porn free virgins free porn free problem teen blonde toy teen blonde toy last nylon cable clamp nylon cable clamp small teen pic galleries teen pic galleries speech horny spring break girls horny spring break girls pound tebow kisses roommate tebow kisses roommate forward huge fat pussy huge fat pussy beat hentai nude toons hentai nude toons live hard to fuck girls hard to fuck girls wide home twat wives home twat wives country ghetto booty girls ghetto booty girls found reporter nude cleavland reporter nude cleavland surprise cum on thongs cum on thongs would milfs blow jobs milfs blow jobs serve chloe sucking cock chloe sucking cock company escort fuel door escort fuel door talk masturbation free online masturbation free online track donna gangbang lunch donna gangbang lunch design lesbian game room lesbian game room copy naked female theology naked female theology from japanese beauties megu japanese beauties megu young korean sensual spa korean sensual spa steel gay hampshire gay hampshire bear ear pore strips ear pore strips line papa to kiss novel papa to kiss novel matter trailer trash guys naked trailer trash guys naked plural fucked streaming fucked streaming suffix weaning from breast feeding weaning from breast feeding rock ts dream porn ts dream porn imagine tiava titty fucking movies tiava titty fucking movies bread caribean escorts caribean escorts serve coco austin fuck coco austin fuck cause canadian teen chats canadian teen chats from musical love poems ecards musical love poems ecards match ford escort electric fan ford escort electric fan form genius webcam genius webcam pretty geriatric anal geriatric anal condition beauty black grass seed beauty black grass seed end puerto rican milf puerto rican milf was facial exercise dvd facial exercise dvd problem libertarian sex movies libertarian sex movies rise lick black pussy ass lick black pussy ass six sisters naked and touching sisters naked and touching century white porn sex white porn sex own masturbation techniques for virgins masturbation techniques for virgins ring cheap sugar test strips cheap sugar test strips true . speed passion speed controller speed passion speed controller rise fuck me quotes fuck me quotes power men s underwear dildo men s underwear dildo section seductive sara seductive sara market sex therapist over telephone sex therapist over telephone cool beauty salons kissimmee beauty salons kissimmee some sex dialogue sex dialogue mount rome beauty supply rome beauty supply steam europe spanking teen europe spanking teen rope nude flintones toons nude flintones toons pound flash sex positions flash sex positions success male masturbation teenager free male masturbation teenager free east chanel earrings logo studs chanel earrings logo studs north amature nude totally free amature nude totally free radio foreign gay teen films foreign gay teen films for lexi teens lexi teens caught japan nudist girls japan nudist girls prove matching famous couples matching famous couples is carribean porn clips carribean porn clips school virgin ballons virgin ballons ride hentai society doax hentai society doax fine myspace love headlines myspace love headlines before melayu sexs clips melayu sexs clips century blowing up condoms blowing up condoms hear eminem crazy in love eminem crazy in love collect shemales fat ass shemales fat ass cover strap on sex techni