Custom Form Elements for mootools

button 

:: Custom Form Elements for mootools > button > cfe.module.image 0.9.4
Filters

Class cfe.module.image extends cfe.generic

Provides replacement for input[type=image]
This module dynamically appends the current state (hover, press) to the image filename given in the src attribute

Constructor

cfe.module.image ( )

Properties

selector - string

CSS Selector to fetch "original" HTMLElements for replacement with this module

type - string

Describes the type of this element

Properties inherited from cfe.generic:

Methods

clearState

protected void clearState ( )
clears all states
Returns: void

createOriginal

HTMLElement createOriginal ( )
Method to programmatically create an "original" HTMLElement
Returns: HTMLElement
an input field of type "image"

disable

protected void disable ( )
wrapper method for event onDisable
Returns: void

enable

protected void enable ( )
wrapper method for event onEnable
Returns: void

hover

protected void hover ( )
wrapper method for event onMouseOver
sets the "hover" state of the image button
Returns: void

initializeAdv

protected void initializeAdv ( )
wraps the decorator around the original element cretaes a regual expression with the given statePrefix to set/clear the different states
Returns: void

press

protected void press ( )
wrapper method for event onPress
sets the "pressed" state of the image button
Returns: void

release

protected void release ( )
wrapper method for event onRelease
clears the "pressed" state of the image button
Returns: void

removeFocus

protected void removeFocus ( )
wrapper method for event onBlur
clears the "focus" state of the image button
Returns: void

setFocus

protected void setFocus ( )
wrapper method for event onFocus
sets the "focus" state of the image button
Returns: void

setState

protected void setState ( )
sets a given state
Returns: void

unhover

protected void unhover ( )
wrapper method for event onMouseOut
clears the "hover" state of the image button
Returns: void

Configuration (Option Attributes)

statePrefix - string

the prefix which will get appended to the name of the image, just before the state suffix
e.g. if the name of the image is 'cfeSubmit.gif' the resulting name of the hovered state will be cfeSubmit-cfeState-H.gif (when using default value)
Default Value: -cfeState-

Configuration attributes inherited from cfe.generic:

back to top | © 2007-2009 | custom form elements mediavrog project. | documentation build with YUI Doc from Yahoo!