|
Zapatec Utils | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Zapatec
Defined in zapatec-core.js
Nested Class Summary | |
<static class> |
Zapatec.ColorPicker |
<static class> |
Zapatec.ChildWidget |
<static class> |
Zapatec.ImagePreloader |
<static class> |
Zapatec.PreloadImages |
<static class> |
Zapatec.Modal |
<static class> |
Zapatec.Indicator |
<static class> |
Zapatec.word2num |
<static class> |
Zapatec.Spinner |
<static class> |
Zapatec.StyleSheet |
<static class> |
Zapatec.Transport |
<static class> |
Zapatec.BasicTree |
<static class> |
Zapatec.Wizard |
<static class> |
Zapatec.EventDriven |
<static class> |
Zapatec.Pane |
<static class> |
Zapatec.EditInline |
<static class> |
Zapatec.demo |
<static class> |
Zapatec.ProgressBar |
<static class> |
Zapatec.Widget |
<static class> |
Zapatec.SRProp |
<static class> |
Zapatec.Tab |
<static class> |
Zapatec.Tabs |
<static class> |
Zapatec.TabsWizard |
<static class> |
Zapatec.AccordionTab |
<static class> |
Zapatec.AccordionTabs |
<static class> |
Zapatec.Tree |
Field Summary | |
<static> Object |
CommandEvent
Command event interface. |
<static> Object |
Drag
|
<static> Object |
FixateOnScreen
|
<static> Object |
GlobalEvents
The object working with global controlled events. |
<static> Object |
include
Shortcut. |
<static> Object |
is_gecko
|
<static> Object |
is_ie
|
<static> Object |
is_ie5
|
<static> Object |
is_ie7
|
<static> Object |
is_khtml
|
<static> Object |
is_konqueror
|
<static> Object |
is_mac_ie
|
<static> Object |
is_opera
|
<static> Object |
is_webkit
|
<static> Object |
isLite
|
<static> Object |
Movable
This is a set of functionality used for moving object and is implemented in interface (mixin) manner. |
<static> Object |
Resizable
This is a set of functionality used for resizing object and is implemented in interface (mixin) manner. |
<static> Object |
ScrollWithWindow
Zapatec ScrollWithWindow Widget. |
<static> Object |
Sizable
This is a set of functionality used for sizing object and is implemented in interface (mixin) manner. |
<static> Object |
tabsPath
|
<static> Object |
treePath
|
<static> Object |
Utils
|
<static> Object |
webkitVersion
|
<static> Object |
windowLoaded
This is some kind of indicator that window has already loaded. |
<static> Object |
zapatecPath
|
Constructor Summary | |
Zapatec()
Namespace definition. |
Method Summary | |
<static> array
|
Array(arr)
This is a constructor for Zapatec Array. |
<static> string
|
getPath(<string> sId)
Returns path from the script element with specified id. |
<static> object
|
Hash(hash)
This is a constructor for Zapatec Hash. |
<static> boolean
|
implement(classOrObject, interfaceStr)
This is a type of interface technology (mixin). |
<static> void
|
inherit(<object> oSubClass, <object> oSuperClass, <object> oArg)
Extends one class with another. |
<static> Object
|
isArray(arr)
Returns true if object is an array. |
<static> Object
|
isDate(date)
Returns true if object is a Date object. |
<static> Object
|
isHtmlElement(el)
Returns true if this is HTML element. |
<static> Object
|
isMovableObj(obj)
Returns true if object has movable interface. |
<static> Object
|
isSizableObj(obj)
Returns true if object has sizable interface. |
<static> void
|
Log(objArgs)
Displays error message. |
Field Detail |
<static> Object CommandEvent
<static> Object Drag
<static> Object FixateOnScreen
<static> Object GlobalEvents
<static> Object include
<static> Object is_gecko
<static> Object is_ie
<static> Object is_ie5
<static> Object is_ie7
<static> Object is_khtml
<static> Object is_konqueror
<static> Object is_mac_ie
<static> Object is_opera
<static> Object is_webkit
<static> Object isLite
<static> Object Movable
<static> Object Resizable
<static> Object ScrollWithWindow
<static> Object Sizable
<static> Object tabsPath
<static> Object treePath
<static> Object Utils
<static> Object webkitVersion
<static> Object windowLoaded
<static> Object zapatecPath
Constructor Detail |
Zapatec()
Method Detail |
<static> array Array(arr)
arr
- {array} if given this array will be extended.
<static> string getPath(<string> sId)
If specified id is not found on the page, returns last script element instead of alerting. This gives ability for developer to include script using Zapatec#include and specify id because in some cases it may be needed to get correct path; and for user to include script directly into the page without remembering internal Zapatec ids because id is not needed to determine path correctly in this case. Developer is responsible for checking that the same script id is passed to Zapatec#include and Zapatec#getPath because there is no alert if they are different and result may be wrong. Note: This function must be invoked during page load to determine path to js file from which it is called correctly.
sId
- Optional. Id of the script element
<static> object Hash(hash)
hash
- {object} if given this hash will be extended.
<static> boolean implement(classOrObject, interfaceStr)
classOrObject
- {object or function} the object or class to enhance with the interface.
interfaceObj
- {object} object holding interface logic.
<static> void inherit(<object> oSubClass, <object> oSuperClass, <object> oArg)
Zapatec.Widget specific feature: If superclass has static property path, by default subclass will get path to js file from which this function is called into path property instead of value from superclass. This behaviour can be changed with leavePath option below. To determine path correctly when widget module is included using Zapatec.include function, static property id should be set in widget class. Value of this property must be passed to Zapatec.include function as script id. Following additional options are accepted: { keepPath: [boolean] if true, static property path is inherited from superclass; useful, for example, when you inherit a widget and want to use the same path to themes as superclass } Should be used as follows: // Define SuperClass and its methods Zapatec.SuperClass = function(oArg) { ... }; Zapatec.SuperClass.prototype.init = function(oArg) { ... }; // Define SubClass and its methods Zapatec.SubClass = function(oArg) { ... // Call constructor of superclass Zapatec.SubClass.SUPERconstructor.call(this, oArg); ... }; // Unique static id of the widget class to determine path correctly // Neded only if class is derived from Zapatec.Widget class Zapatec.SubClass.id = 'Zapatec.SubClass'; // Inherit SuperClass Zapatec.inherit(Zapatec.SubClass, Zapatec.SuperClass); Zapatec.SubClass.prototype.init = function(oArg) { ... // Call method of superclass Zapatec.SubClass.SUPERclass.init.call(this, oArg); ... }; Note: This function must be invoked during page load to determine path to js file from which it is called correctly.
oSubClass
- Inheriting class
oSuperClass
- Class from which to inherit
oArg
- Additional options (see above)
<static> Object isArray(arr)
<static> Object isDate(date)
<static> Object isHtmlElement(el)
<static> Object isMovableObj(obj)
<static> Object isSizableObj(obj)
<static> void Log(objArgs)
|
Zapatec Utils | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |