Skip to content
Browse files

- new structure for developing modules: modules are now grouped

-autostart.sample.js now outside base folder
  • Loading branch information...
1 parent 698aefa commit 9c54b466acaa644f47d0c22802b5994e64860c23 @mediavrog committed Jun 6, 2009
Showing with 442 additions and 205 deletions.
  1. +6 −2 cfe/mootools/1.2/addons/cfe.addon.autotab.js
  2. +6 −0 cfe/mootools/1.2/addons/cfe.addon.dependencies.js
  3. +2 −3 cfe/mootools/1.2/addons/cfe.addon.themes.js
  4. +5 −6 cfe/mootools/1.2/addons/cfe.addon.toggleCheckboxes.js
  5. +1 −0 cfe/mootools/1.2/addons/cfe.addon.toolTips.js
  6. +125 −25 cfe/mootools/1.2/base/cfe.base.js
  7. +74 −70 cfe/mootools/1.2/{base/cfe.replace.autostart.js → cfe.autostart.sample.js}
  8. +11 −5 cfe/mootools/1.2/modules/{ → button}/cfe.module.image.js
  9. +13 −6 cfe/mootools/1.2/modules/{ → button}/cfe.module.reset.js
  10. +17 −6 cfe/mootools/1.2/modules/{ → button}/cfe.module.submit.js
  11. +0 −18 cfe/mootools/1.2/modules/cfe.module.password.js
  12. +0 −11 cfe/mootools/1.2/modules/cfe.module.slider.js
  13. +15 −6 cfe/mootools/1.2/modules/{ → check}/cfe.module.checkbox.js
  14. +11 −6 cfe/mootools/1.2/modules/{ → check}/cfe.module.radio.js
  15. +16 −6 cfe/mootools/1.2/modules/{ → file}/cfe.module.file.js
  16. +14 −12 cfe/mootools/1.2/modules/{ → group}/cfe.module.fieldset.js
  17. +16 −6 cfe/mootools/1.2/modules/{ → select}/cfe.module.select.js
  18. +12 −6 cfe/mootools/1.2/modules/{cfe.module.select_multiple.js → select/cfe.module.select.multiple.js}
  19. +41 −0 cfe/mootools/1.2/modules/text/cfe.module.password.js
  20. +16 −0 cfe/mootools/1.2/modules/text/cfe.module.slider.js
  21. +19 −5 cfe/mootools/1.2/modules/{ → text}/cfe.module.text.js
  22. +10 −5 cfe/mootools/1.2/modules/{ → text}/cfe.module.textarea.js
  23. +12 −1 cfe/mootools/1.2/{base → replace}/cfe.replace.js
View
8 cfe/mootools/1.2/addons/cfe.addon.autotab.js
@@ -1,6 +1,10 @@
/**
- * @classDescription this adds autotabbing functionality to cfe
- *
+ * @module addon
+ */
+
+/**
+ * this adds autotabbing functionality to cfe
+ * @class autotab
*/
cfe.addon.autotab = new Class({
View
6 cfe/mootools/1.2/addons/cfe.addon.dependencies.js
@@ -1,4 +1,10 @@
/**
+ * @module addon
+ */
+
+/**
+ * ujsd
+ * @class autotab
* @author Maik
*/
cfe.addon.dependencies = new Class({
View
5 cfe/mootools/1.2/addons/cfe.addon.themes.js
@@ -1,7 +1,6 @@
/**
- * @classDescription this adds theming functionality to cfe
- *
- * @additional dependencies: mootools plugin: Assets
+ * this adds theming functionality to cfe
+ * @class themes
*/
cfe.addon.themes = new Class({
View
11 cfe/mootools/1.2/addons/cfe.addon.toggleCheckboxes.js
@@ -1,9 +1,8 @@
-/****************************************/
-/* -name:> toggleCheckboxes */
-/* ?help:> implements selectAll/deselectAll functionality into custom form elements */
-/* !dep:> checkbox */
-/* +ok:> ff 3.0.7, chrome, opera
-/****************************************/
+/**
+ * implements selectAll/deselectAll functionality into custom form elements
+ * @class toggleCheckboxes
+ *
+ */
cfe.addon.toggleCheckboxes = new Class({
// select all checkboxes in scope
View
1 cfe/mootools/1.2/addons/cfe.addon.toolTips.js
@@ -1,4 +1,5 @@
/**
+ * @class toolTips
* @author Maik
*/
cfe.addon.toolTips = new Class({
View
150 cfe/mootools/1.2/base/cfe.base.js
@@ -1,3 +1,10 @@
+/**
+ * The core of custom form elements. Includes cfe.generic and some slight addons to the native Element object.
+ *
+ * @module core
+ * @namespace cfe
+ */
+
/*
customFormElements for mootools 1.2 - style form elements on your own
by Maik Vlcek (http://www.mediavrog.net)
@@ -18,26 +25,68 @@ var cfe = {};
cfe.module = {};
cfe.addon = {};
-cfe.version = "0.9";
+cfe.version = "0.9.2";
cfe.spacer = "spacer.gif";
-// basic generic module; may be extended by modules to start off with standard, button-like behaviours
+/**
+ * cfe.generic gets extended by modules to start off with standard, button-like behaviours.
+ * @class generic
+ */
cfe.generic = new Class(
{
- // type of cfe; derived elements may be Selector, Checkbox or Radiobutton
+ /**
+ * Describes the type of this element (e.g. Selector, Checkbox or Radiobutton)
+ * @property type
+ * @type string
+ */
type : "Generic",
- // basic options for all cfes and always available
+ /**
+ * basic options for all cfes and always available
+ * @property options
+ */
options: {
instanceID:0, // set automatically
- spacer: "", // path to transparent spacer.gif; it's used for easy css-styling
- aliasType: "span", // the element's wrapper will be of this type
- replaces: null, // if this element shall replace an existing html form element, put it here
- label: null, // may pass any element as a label (toggling, hovering,..) for this cfe
+
+ /**
+ * path to transparent spacer.gif; it's used for easy css-styling
+ * @config spacer
+ * @type string
+ */
+ spacer: "",
+
+ /**
+ * the element's wrapper will be of this type (e.g. span or div)
+ * @config aliasType
+ * @type string
+ */
+ aliasType: "span",
+
+ /**
+ * if this element shall replace an existing html form element, pass it here
+ * @config replaces
+ * @type HTMLElement
+ */
+ replaces: null,
+
+ /**
+ * may pass any element as a label (toggling, hovering,..) for this cfe
+ * @config label
+ * @type HTMLElement
+ */
+ label: null,
+
name: "",
- disabled: false, // setting this to true will create a disabled element
- onMouseOver: Class.empty, // event placeholders; may be used for custom events
+ /**
+ * setting this to true will create a disabled element
+ * @config disabled
+ * @type boolean
+ */
+ disabled: false,
+
+ // event placeholders; may be used to add custom events
+ onMouseOver: Class.empty,
onMouseOut: Class.empty,
onFocus: Class.empty,
onBlur: Class.empty,
@@ -48,11 +97,13 @@ cfe.generic = new Class(
},
/**
- * initialization of cfe
- * set options, defines basic algorithm as template method
+ * constructor
+ * set options, defines basic replacement and building algorithm for cfe (template method)
*
- * @param {Object} original
- * @param {Object} opt
+ * @method initialize
+ * @constructor
+ *
+ * @param {Object} options
*/
initialize: function(opt)
{
@@ -77,26 +128,44 @@ cfe.generic = new Class(
},
- /*
- * some getter methods to retreive the "decorator" elements
+ /**
+ * retreive the "decorator"
+ *
+ * @method getAlias
+ * @return HTMLElement
*/
getAlias: function()
{
return this.a;
},
+ /**
+ * retreive the label
+ *
+ * @method getLabel
+ * @return HTMLElement
+ */
getLabel: function()
{
return this.l;
},
+ /**
+ * retreive the label and the alias
+ *
+ * @method getFull
+ * @return HTMLElement[label, alias]
+ */
getFull: function()
{
return [this.l, this.a];
},
- /*
- * methods related to creation of the alias
+ /**
+ * builds the "decorator"
+ *
+ * @method buildWrapper
+ * @protected
*/
buildWrapper: function()
{
@@ -106,6 +175,13 @@ cfe.generic = new Class(
this.setupWrapper();
},
+ /**
+ * adds events and mousepointer style to the "decorator"
+ * usually gets called by buildWrapper
+ *
+ * @method setupWrapper
+ * @protected
+ */
setupWrapper: function()
{
this.a.addClass("js"+this.type).addEvents({
@@ -118,8 +194,12 @@ cfe.generic = new Class(
}).setStyle("cursor","pointer");
},
- /*
- * methods related to creation/handling of the original form element
+ /**
+ * handles the creation of the underlying original form element <br />
+ * stores a reference to the cfe object in the original form element
+ *
+ * @method setupOriginal
+ * @protected
*/
setupOriginal: function()
{
@@ -292,13 +372,11 @@ cfe.generic = new Class(
// must be implemented by cfe
build: function(){},
- /**
- * behaviour
- */
/**
* standard press-behaviour
* add press state to alias
+ * @event press
*/
press: function()
{
@@ -312,6 +390,7 @@ cfe.generic = new Class(
/**
* standard press-behaviour
* removes press state to alias
+ * @event release
*/
release: function()
{
@@ -325,6 +404,7 @@ cfe.generic = new Class(
/**
* standard mouseover-behaviour
* add hover state to alias
+ * @event hover
*/
hover: function()
{
@@ -338,6 +418,7 @@ cfe.generic = new Class(
/**
* standard mouseout-behaviour
* removes hover state from alias
+ * @event unhover
*/
unhover: function()
{
@@ -352,6 +433,7 @@ cfe.generic = new Class(
/**
* standard focus-behaviour
* adds focus state to alias
+ * @event onFocus
*/
setFocus: function()
{
@@ -362,6 +444,7 @@ cfe.generic = new Class(
/**
* standard blur-behaviour
* removes focus state from alias
+ * @event onBlur
*/
removeFocus: function()
{
@@ -373,8 +456,9 @@ cfe.generic = new Class(
},
- /*
+ /**
* delegate click events to original item
+ * @event onClick
*/
clicked: function()
{
@@ -387,17 +471,29 @@ cfe.generic = new Class(
}
},
+ /**
+ * fires if the original element changes
+ * @event onUpdate
+ */
update: function()
{
this.fireEvent("onUpdate");
},
+ /**
+ * if element get enabled
+ * @event onEnable
+ */
enable: function()
{
this.a.removeClass("D");
this.fireEvent("onEnable");
},
+ /**
+ * if element get disabled
+ * @event onDisable
+ */
disable: function()
{
this.a.addClass("D");
@@ -406,7 +502,11 @@ cfe.generic = new Class(
});
cfe.generic.implement(new Options,new Events);
-// extend Elements with some Helper functions
+/**
+ * extend Elements with some Helper functions
+ * @class Helpers
+ * @namespace Element
+ */
Element.Helpers = new Class({
disableTextSelection: function(){
View
144 ...ootools/1.2/base/cfe.replace.autostart.js → cfe/mootools/1.2/cfe.autostart.sample.js
@@ -1,3 +1,6 @@
+/**
+ * @class noe
+ */
window.addEvent('domready', function()
{
cfe.spacer = "gfx/spacer.gif";
@@ -8,7 +11,7 @@ window.addEvent('domready', function()
myCfe.unregisterModule("fieldset");
// add dependencies for checkbox with id 'chb23' by passing input elements
- myCfe.addDependencies($("chb23"),["chb22","chb21"]);
+ //myCfe.addDependencies($("chb23"),["chb22","chb21"]);
// set some options for select and file modules
myCfe.setModuleOptions("select",{
@@ -50,7 +53,7 @@ window.addEvent('domready', function()
this.deselectAll($$("fieldset.chb1"));
}.bind(myCfe));
- // mt 1.2 sample to tween label on hover and back onUnhover => use custom events
+ //mt 1.2 sample to tween label on hover and back onUnhover => use custom events
$('chb1').retrieve("cfe").addEvent("mouseOver", function(){
this.l.tween('margin-left', 10);
});
@@ -71,6 +74,7 @@ window.addEvent('domready', function()
});
})
+ // sample for triggering disabled/enabled attribute on specific elements
$("trigger").addEvent("click", function(e){
e.stop();
$("chb4").toggleDisabled();
@@ -85,7 +89,7 @@ window.addEvent('domready', function()
e.stop();
$("sel-mult2").toggleDisabled();
});
-
+
$("triggertxt").addEvent("click", function(e){
e.stop();
$("input4").toggleDisabled();
@@ -97,66 +101,66 @@ window.addEvent('domready', function()
});
/* standalone elements */
- var uli = new Element("ul");
- $('standalone').adopt(uli);
-
- var chb = new cfe.module.checkbox({
- instanceID: 100,
- label: "Standalone Checkbox",
- name: "checkboxStandalone",
- value: "standalone checkbox checked",
- checked: true
- });
- var li = new Element("li").adopt(chb.getFull());
- uli.adopt(li);
-
- var rb1 = new cfe.module.radio({
- instanceID: 101,
- label: "Standalone Radio 1",
- name: "radioStandalone[]",
- value: "standalone radio checked",
- checked: true
- });
- li = new Element("li").adopt(rb1.getFull());
- uli.adopt(li);
-
- var rb2 = new cfe.module.radio({
- instanceID: 102,
- label: "Standalone Radio 2",
- name: "radioStandalone[]",
- value: "standalone radio2 checked",
- checked: true
- });
- li = new Element("li").adopt(rb2.getFull());
- uli.adopt(li);
-
- var text = new cfe.module.text({
- instanceID: 103,
- id: "textStandaloneD",
- label: "Standalone Textfield",
- name: "textStandalone",
- value: "standalone text"
- });
- li = new Element("li").adopt(text.getFull());
- uli.adopt(li);
-
- var ta = new cfe.module.textarea({
- instanceID: 104,
- label: "Standalone Textarea",
- name: "textareaStandalone",
- value: "standalone textarea"
- });
- li = new Element("li").adopt(ta.getFull());
- uli.adopt(li);
-
- var file = new cfe.module.file({
- instanceID: 105,
- label: "Standalone Fileselector",
- name: "fileStandalone",
- fileIcons: true
- });
- li = new Element("li").adopt(file.getFull());
- uli.adopt(li);
+// var uli = new Element("ul");
+// $('standalone').adopt(uli);
+//
+// var chb = new cfe.module.checkbox({
+// instanceID: 100,
+// label: "Standalone Checkbox",
+// name: "checkboxStandalone",
+// value: "standalone checkbox checked",
+// checked: true
+// });
+// var li = new Element("li").adopt(chb.getFull());
+// uli.adopt(li);
+//
+// var rb1 = new cfe.module.radio({
+// instanceID: 101,
+// label: "Standalone Radio 1",
+// name: "radioStandalone[]",
+// value: "standalone radio checked",
+// checked: true
+// });
+// li = new Element("li").adopt(rb1.getFull());
+// uli.adopt(li);
+//
+// var rb2 = new cfe.module.radio({
+// instanceID: 102,
+// label: "Standalone Radio 2",
+// name: "radioStandalone[]",
+// value: "standalone radio2 checked",
+// checked: true
+// });
+// li = new Element("li").adopt(rb2.getFull());
+// uli.adopt(li);
+//
+// var text = new cfe.module.text({
+// instanceID: 103,
+// id: "textStandaloneD",
+// label: "Standalone Textfield",
+// name: "textStandalone",
+// value: "standalone text"
+// });
+// li = new Element("li").adopt(text.getFull());
+// uli.adopt(li);
+//
+// var ta = new cfe.module.textarea({
+// instanceID: 104,
+// label: "Standalone Textarea",
+// name: "textareaStandalone",
+// value: "standalone textarea"
+// });
+// li = new Element("li").adopt(ta.getFull());
+// uli.adopt(li);
+//
+// var file = new cfe.module.file({
+// instanceID: 105,
+// label: "Standalone Fileselector",
+// name: "fileStandalone",
+// fileIcons: true
+// });
+// li = new Element("li").adopt(file.getFull());
+// uli.adopt(li);
// still a few bugs to fix
// var sel = new cfe.module.select({
@@ -199,13 +203,13 @@ window.addEvent('domready', function()
// li = new Element("li").adopt(selm.getFull());
// uli.adopt(li);
- var submit = new cfe.module.submit({
- instanceID: 108,
- name: "submitStandalone",
- value: "submit form"
- });
- li = new Element("li").adopt(submit.getFull());
- uli.adopt(li);
+// var submit = new cfe.module.submit({
+// instanceID: 108,
+// name: "submitStandalone",
+// value: "submit form"
+// });
+// li = new Element("li").adopt(submit.getFull());
+// uli.adopt(li);
});
View
16 cfe/mootools/1.2/modules/cfe.module.image.js → ...ls/1.2/modules/button/cfe.module.image.js
@@ -1,8 +1,14 @@
-/****************************************/
-/* -name:> image */
-/* ?help:> replaces image buttons */
-/* !dep:> generic */
-/****************************************/
+/**
+ * Provides replacement for input[type=image]
+ *
+ * @class image
+ * @namespace cfe.module
+ *
+ * @requires generic
+ * @extends cfe.generic
+ *
+ * @constructor
+ */
cfe.module.image = new Class({
Extends: cfe.generic,
View
19 cfe/mootools/1.2/modules/cfe.module.reset.js → ...ls/1.2/modules/button/cfe.module.reset.js
@@ -1,9 +1,16 @@
-/****************************************/
-/* -name:> reset */
-/* ?help:> replaces reset buttons */
-/* !dep:> submit */
-/* #bug:> press then click outside > press state doesn't clear
-/****************************************/
+/**
+ * Provides replacement for input[type=reset]
+ *
+ * @class reset
+ * @namespace cfe.module
+ *
+ * @requires submit
+ * @extends cfe.module.submit
+ *
+ * @constructor
+ *
+ * bug: - press then click outside > press state doesn't clear
+ */
cfe.module.reset = new Class({
Extends: cfe.module.submit,
View
23 ...mootools/1.2/modules/cfe.module.submit.js → ...s/1.2/modules/button/cfe.module.submit.js
@@ -1,9 +1,20 @@
-/****************************************/
-/* -name:> submit */
-/* ?help:> replaces submitbutton */
-/* !dep:> generic */
-/* #bug - press then click outside > press state doesn't clear
-/****************************************/
+/**
+ * @module button
+ */
+
+/**
+ * Extends the generic module to replace inputs of type 'submit'
+ *
+ * @class submit
+ * @namespace cfe.module
+ *
+ * @requires generic
+ * @extends cfe.generic
+ *
+ * @constructor
+ *
+ * bug: - press then click outside > press state doesn't clear
+ */
cfe.module.submit = new Class({
Extends: cfe.generic,
View
18 cfe/mootools/1.2/modules/cfe.module.password.js
@@ -1,18 +0,0 @@
-/****************************************/
-/* -name:> password */
-/* ?help:> replaces password fields */
-/* !dep:> text */
-/****************************************/
-cfe.module.password = new Class({
-
- Extends: cfe.module.text,
- type:"Password",
- selector: "input[type=password]",
-
- createOriginal: function()
- {
- return new Element("input",{
- type: "password"
- });
- }
-});
View
11 cfe/mootools/1.2/modules/cfe.module.slider.js
@@ -1,11 +0,0 @@
-/****************************************/
-/* -name:> slider */
-/* ?help:> adds a slider for a form el */
-/* !dep:> core,text */
-/****************************************/
-cfe.module.slider = new Class({
-
- Extends: cfe.text,
- type: "Slider",
- selector: "input[class~=slider]"
-});
View
21 ...otools/1.2/modules/cfe.module.checkbox.js → .../1.2/modules/check/cfe.module.checkbox.js
@@ -1,12 +1,21 @@
-/****************************************/
-/* -name:> checkbox */
-/* ?help:> replaces checkboxes */
-/* !dep:> generic */
-/* #bug:>
+/**
+ * @module check
+ */
+
+/**
+ * replaces checkboxes
+ *
+ * @class checkbox
+ * @namespace cfe.modules
+ *
+ * @requires generic
+ * @extends cfe.generic
+ *
+ * bug:
* opera - ori update triggers twince when clicking the ori
* ie 8 - ori update triggers twince when clicking the ori
* ie 7 - ori update triggers twince when clicking the ori
-/****************************************/
+ */
cfe.module.checkbox = new Class({
Extends: cfe.generic,
View
17 cfe/mootools/1.2/modules/cfe.module.radio.js → ...ols/1.2/modules/check/cfe.module.radio.js
@@ -1,11 +1,16 @@
-/****************************************/
-/* -name:> radiobuttons */
-/* ?help:> replaces radiobuttons */
-/* !dep:> checkbox */
-/* #bug:>
+/**
+ * replaces radiobuttons
+ *
+ * @class radio
+ * @namespace cfe.modules
+ *
+ * @requires checkbox
+ * @extends cfe.module.checkbox
+ *
+ * bug:
* ie 8 - rb alias w/o implicit labelling trigger update twice; ori triggers update twice
* ie 7 - rb alias w/o implicit labelling trigger update twice; ori triggers update twice
-/****************************************/
+ */
cfe.module.radio = new Class({
Extends: cfe.module.checkbox,
View
22 cfe/mootools/1.2/modules/cfe.module.file.js → ...tools/1.2/modules/file/cfe.module.file.js
@@ -1,13 +1,23 @@
-/****************************************/
-/* -name:> fileupload */
-/* ?help:> replaces file upload fields */
-/* !dep:> generic */
-/* #bug:> update event onMouseOut triggers even if nothing changed
+/**
+ * @module file
+ */
+
+/**
+ * replaces file upload fields
+ *
+ * @class file
+ * @namespace cfe.modules
+ *
+ * @requires generic
+ * @extends cfe.generic
+ *
+ * bug:
+ * update event onMouseOut triggers even if nothing changed
* ff 3.0.7 - no pointer
* opera - no pointer; no focus on label if ori focussed, click event triggers twice
* ie 8 - no focus on label if ori focussed
* ie 7 - no focus on label if ori focussed
-/****************************************/
+ */
cfe.module.file = new Class({
Extends: cfe.generic,
View
26 ...otools/1.2/modules/cfe.module.fieldset.js → .../1.2/modules/group/cfe.module.fieldset.js
@@ -1,15 +1,17 @@
-/****************************************/
-/* -name:> fieldset */
-/* ?help:> enhances fieldsets */
-/* !dep:> generic */
-/* +ok:>
- * ff 3.0.7
- * chrome
- * opera
- * safari
- * ie 8
- * ie 7
-/****************************************/
+/**
+ * @module group
+ */
+
+/**
+ * enhances fieldsets
+ *
+ * @module fieldset
+ * @namespace cfe.modules
+ *
+ * @requires generic
+ * @extends cfe.generic
+ *
+ */
cfe.module.fieldset = new Class({
Extends: cfe.generic,
View
22 ...mootools/1.2/modules/cfe.module.select.js → ...s/1.2/modules/select/cfe.module.select.js
@@ -1,9 +1,19 @@
-/****************************************/
-/* -name:> select */
-/* ?help:> replaces select-elements */
-/* !dep:> generic */
-/* #bug:> height of options too small if option with linebreak; standalone and scrolling bug
-/****************************************/
+/**
+ * @module select
+ */
+
+/**
+ * replaces select fields
+ *
+ * @class select
+ * @namespace cfe.modules
+ *
+ * @requires generic
+ * @extends cfe.generic
+ *
+ * bug:
+ * height of options too small if option with linebreak; standalone and scrolling bug
+ */
cfe.module.select = new Class({
Extends: cfe.generic,
View
18 ...1.2/modules/cfe.module.select_multiple.js → ...ules/select/cfe.module.select.multiple.js
@@ -1,9 +1,15 @@
-/****************************************/
-/* -name:> select */
-/* ?help:> replaces select-elements */
-/* !dep:> select */
-/* #bug:> mouseWheel support needed
-/****************************************/
+/**
+ * replaces select fields with attribute multiple set
+ *
+ * @class select_multiple
+ * @namespace cfe.module
+ *
+ * @requires select
+ * @extends cfe.module.select
+ *
+ * bug:
+ * mouseWheel support needed
+ */
cfe.module.select_multiple = new Class({
Extends: cfe.module.select,
View
41 cfe/mootools/1.2/modules/text/cfe.module.password.js
@@ -0,0 +1,41 @@
+/**
+ * Replaces for elements of type: input[type=password]
+ *
+ * @class password
+ * @namespace cfe.module
+ *
+ * @requires text
+ * @extends cfe.module.text
+ *
+ */
+cfe.module.password = new Class({
+
+ Extends: cfe.module.text,
+
+ /**
+ * Describes the type of this element (Password)
+ * @property type
+ * @type string
+ */
+ type:"Password",
+
+ /**
+ * CSS Selector to fetch "original" HTMLElements for replacement with this module
+ * @property selector
+ * @type string
+ */
+ selector: "input[type=password]",
+
+ /**
+ * Method to programmatically create an "original" HTMLElement
+ *
+ * @method createOriginal
+ * @return {HTMLElement} an input field of type "password"
+ */
+ createOriginal: function()
+ {
+ return new Element("input",{
+ type: "password"
+ });
+ }
+});
View
16 cfe/mootools/1.2/modules/text/cfe.module.slider.js
@@ -0,0 +1,16 @@
+/**
+ * generates a slider for a text field
+ *
+ * @class slider
+ * @namespace cfe.module
+ *
+ * @requires text
+ * @extends cfe.module.text
+ *
+ */
+cfe.module.slider = new Class({
+
+ Extends: cfe.module.text,
+ type: "Slider",
+ selector: "input[class~=slider]"
+});
View
24 cfe/mootools/1.2/modules/cfe.module.text.js → ...tools/1.2/modules/text/cfe.module.text.js
@@ -1,8 +1,17 @@
-/****************************************/
-/* -name:> text */
-/* ?help:> replaces textfields */
-/* !dep:> generic */
-/****************************************/
+/**
+ * @module text
+ */
+
+/**
+ * replaces input[type=text]
+ *
+ * @class text
+ * @namespace cfe.module
+ *
+ * @requires generic
+ * @extends cfe.generic
+ *
+ */
cfe.module.text = new Class({
Extends: cfe.generic,
@@ -31,6 +40,11 @@ cfe.module.text = new Class({
});
},
+ /**
+ * customize the "decorator"
+ *
+ * @method build
+ */
build: function()
{
if( $chk(this.options.slidingDoors) )
View
15 ...otools/1.2/modules/cfe.module.textarea.js → ...s/1.2/modules/text/cfe.module.textarea.js
@@ -1,8 +1,13 @@
-/****************************************/
-/* -name:> textarea */
-/* ?help:> replaces textarea elements */
-/* !dep:> generic */
-/****************************************/
+/**
+ * replaces textarea
+ *
+ * @module text
+ * @namespace cfe.module
+ *
+ * @requires text
+ * @extends cfe.module.text
+ *
+ */
cfe.module.textarea = new Class({
Extends: cfe.module.text,
View
13 cfe/mootools/1.2/base/cfe.replace.js → cfe/mootools/1.2/replace/cfe.replace.js
@@ -1,3 +1,11 @@
+/**
+ * replacement class for automated replacment of scoped form elements
+ *
+ * @module replace
+ * @namespace cfe
+ *
+ */
+
cfe.replace = new Class(
{
options:{
@@ -28,6 +36,7 @@ cfe.replace = new Class(
},
/**
+ * @method registerAllModules
* registeres all loaded modules onInitialize
*/
registerAllModules: function(){
@@ -80,7 +89,9 @@ cfe.replace = new Class(
/**
* sets a single option for a specified module
* if no module was given, it sets the options for all modules
- *
+ *
+ * @method setModuleOption
+ *
* @param {String} mod Name of the module
* @param {String} opt Name of the option
* @param {Mixed} val The options value

0 comments on commit 9c54b46

Please sign in to comment.
Something went wrong with that request. Please try again.