Commit graph

52 commits

Author SHA1 Message Date
grob
0c3af1fc19 reverted change in 1.5: the param object passed might not be a javascript object, but a wrapped map, therefor can't use clone(). instead call Object.prototype.reduce to convert the object into a js object. 2007-02-22 18:08:41 +00:00
grob
afec346b39 fixed a bug in various methods: clone is a method of the Object prototype, not a static one. 2007-02-22 14:48:34 +00:00
zumbrunn
c33c43f93c added constructor tag in order to please jsdoc 2007-02-19 10:54:27 +00:00
hns
486e9a5836 * Add @fileoverview JSDoc comment
* Move static methods down to the bottom of the file to circumvent
  a strange bug that prevents documentation from being generated.
2007-02-09 11:00:07 +00:00
hns
da7bdcfba0 * Add @fileoverview JSDoc comment
* Move static methods down to the bottom of the file to circumvent
  a strange bug that prevents documentation from being generated.
* Some JSDoc comment fixes
2007-02-09 10:04:48 +00:00
hns
fc7f7bab1a Oops, gotta love these late binding languages 2007-02-08 21:01:56 +00:00
hns
d718e290ac * Add Jsdoc comments.
* Major overhaul of helma.Database.
2007-02-08 15:33:08 +00:00
grob
1cd44d18a3 * added jsdoc compatible inline documentation
* fixed constructor of helma.Color to behave as expected when passing a color name or decimal value
2007-02-08 13:14:32 +00:00
hns
2e2603c4e0 * Support helma.File and use it by default. Should fix bug #493
http://helma.org/bugs/show_bug.cgi?id=493
2007-02-08 09:12:21 +00:00
zumbrunn
29961b8006 Added jsdoc comment based documentation 2007-02-08 00:41:30 +00:00
zumbrunn
134d1483da Added jsdoc comment based documentation 2007-02-07 23:37:23 +00:00
grob
ab280132bd re-added method length and marked it as deprecated (this method disappeared during documentation work) 2007-02-07 18:11:01 +00:00
grob
449a1a727a removed stale doc header 2007-02-07 17:04:51 +00:00
hns
b0bbada2a5 * Fix handling of helma.util.MimePart (NOT javax.mail.MimePart)
* Use and support helma.File as Mime part input source
* Remove code examples to make jsdoc actually render the comments
* Implement get/setMimepartType() methods
2007-02-07 14:55:03 +00:00
zumbrunn
3f7126bfa2 Added jsdoc comment based documentation 2007-02-07 11:51:47 +00:00
zumbrunn
00ea378a37 Added jsdoc comment based documentation 2007-02-07 10:29:20 +00:00
zumbrunn
a7cac41923 Added jsdoc comment based documentation 2007-02-07 10:27:37 +00:00
grob
383c7b0e9c * added JsDoc compatible inline documentation
* removed helma.Skin.BASE64 constant as this doesn't seem to be used anywhere (at least not in helma.Skin)
2007-01-30 17:53:00 +00:00
grob
6315f6c10f added author tag to class header 2007-01-30 17:32:17 +00:00
grob
9a4401d6c4 * added JsDoc compatible inline documentation 2007-01-30 17:31:52 +00:00
grob
14ee73a230 * added JsDoc compatible inline documentation
* added missing toString methods
* minor code beautification
2007-01-30 17:31:13 +00:00
grob
dcc0accdb3 changed inline documentation for JsDoc compatibility 2007-01-30 14:56:51 +00:00
grob
b11fce933f * added basic cookie support:
- any cookie received from the remote server will now be part of the result object returned by getUrl()
- added methods setCookie(), getCookie() and getCookies() for adding and retrieving cookies
* added JsDoc compatible inline documentation (due to a bug in JsDoc the static methods setProxy and getProxy don't show up in the generated docs)
* switched to using app.logger for log output
2007-01-30 14:55:39 +00:00
grob
585666e577 * restructured library mainly because JsDoc couldn't handle it, but also for better readability
* renderMarkupPart and isSelected are no longer private methods, but static ones, so that the methods calling them can be defined as prototype properties
* adapted helma.Html.TableWriter to the new structure (had to use method.call() since there is no default instance of helma.Html
* added JsDoc compatible inline documentation
2007-01-30 14:49:57 +00:00
grob
748779d346 added localisation support to format() and toPercent(). both now accept an optional java.util.Locale instance as last argument 2006-12-14 17:28:43 +00:00
hns
fb77729856 * Allow to directly pass a javax.mail.BodyPart to addPart(). 2006-11-27 12:47:04 +00:00
hns
9a98f81710 * Wrap example code in Html [pre] tag. 2006-11-27 12:32:36 +00:00
hns
602f420f18 * Implement get/setBinaryMode(boolean) to allow delivery of the
response body as byte array instead of as string.
* Use OutputStreamWriter instead of DataOutputStream for writing
  the request body.
2006-11-21 10:42:25 +00:00
grob
e36bbce6d3 changed Html.dropDown(): allow property "class" for specifying css class names if the option parameters are specified as object (using "value" and "display" properties) 2006-11-13 16:59:44 +00:00
grob
fe74d6e0ad * changed signature of addDocuments() - it's now possible to specify an optional mergeFactor
* bugfix in getField(): don't try to convert the string value into a date, since this possibly does the conversion even if it's not intended (it can happen that an id is converted into a date). therefor re-introduced the method getDateField()
2006-11-13 16:56:45 +00:00
grob
78eabaa7cb fixed bug in addField() that made it impossible to disable store, index and tokenize options for a field. 2006-10-23 18:56:36 +00:00
grob
bb0aebb02f updated lucene from 1.4.3 to 1.9.1 2006-09-29 13:51:37 +00:00
grob
5496bcfb04 * this library now expects Lucene version 1.9.1 (due to API changes in Lucene it currently doesn't work with version 2.0)
* added (most of) missing analyzers in Search.getAnalyzer()
* createIndex doesn't support a third argument for force-create an index anymore. to clear an index use its create() method instead
* Index now uses an IndexModifier instead of an IndexWriter in most cases
* to create a new Searcher instance now call index.getSearcher() or pass the index to search in as argument to the Searcher constructor
* checkWriteLock() is gone, instead getWriter() and getModifier() try for 2 seconds to return a writer/modifier. this should avoid concurrency problems
* Index.addIndexes() now takes a number of index directory arguments
* Index.create() now deletes all files in the directory (before it didn't)
* added checks for existing writer/modifier/reader before calling close()
* Index.getFieldNames() now returns a javascript array instead of a java object one
* Index.isLocked() doesn't create a reader anymore (before it did, but didn't use it)
* removed Index.getTerms() - if someone is missing that, shout
* Index.addDocument() now expects a single Document instance, for batch adding use the new method addDocuments()
* same with Index.removeDocument()
* added new method Index.updateDocument() that does removal and adding in one step (so the index is locked just once instead of two times)
* the wrapped lucene Query instance is now a public field - this saves from duplicating the getter method in every extending prototype
* Document.addField() now uses new DateTools class instead of the deprecated DateField utility methods
* removed Document.getDateField() since Document.getField() now handles dates as well
* added JSDoc compatible documentation
2006-09-29 13:49:40 +00:00
stefanp
e6d7fe7520 workaround for http://helma.org/bugs/show_bug.cgi?id=474 went into the wrong repository: changed the way the number of days is calculated. 2006-08-21 15:57:05 +00:00
p3k
7860cbdde2 * added String.NULL as constant containing the empty string ""
* added global- and HopObject-related macros to core
2006-08-06 11:27:56 +00:00
hns
50d4eb0d93 * Immediately convert java.io.File instance to absolute path names to
avoid the many pitfalls and gotchas of relative file names.
2006-07-25 20:07:59 +00:00
hns
bd8b266fa9 * Pass on return values from FTPClient class. Fixes bug 469. 2006-07-25 13:01:02 +00:00
p3k
b3c82d5a06 * added missing dontEnum() call for String.prototype.parseJSON
* shortened toJSONString() method to simply toJSON()
2006-07-24 17:18:52 +00:00
p3k
ef369a61bf initial check-in as adaptation of code at http://www.json.org/json.js 2006-07-24 17:09:23 +00:00
p3k
80b6083da7 added count, enbase64 as well as debase64 methods 2006-07-24 16:03:57 +00:00
p3k
971a740a0a * changed signature (it's more important to provide a database name than user and password)
* added var keyword before constants
* check user and password individually
* added execute() method
2006-07-18 15:09:36 +00:00
p3k
f2cc5103b4 * fixed decimal format in format method
* removed unnecessary condition in toPercent method
2006-07-18 08:24:59 +00:00
hns
29407f6444 * Apply patch from Stefan Rinner to set the Date header.
http://helma.org/pipermail/helma-user/2006-June/006547.html
2006-06-28 20:06:03 +00:00
grob
c41fed49cc - re-added forceCreate argument to createIndex() that was accidentally
removed
- changed addIndexes(): it now accepts a js-array containing
(ram/fs)directories, the conversion into a java array is done by the
method itself
- minor documentation and indentation fixes
2006-06-15 07:38:19 +00:00
hns
c82daee623 * Do not set buffer length in BufferedInputStream constructor, default lenght will do ok.
* Fix bug that potentially set compression level to NaN in Zip.add().
2006-06-02 15:46:20 +00:00
zumbrunn
620ce4c305 Fixed all.js to correctly reference core files 2006-05-30 18:34:31 +00:00
zumbrunn
6daa6c0794 Added Helma license notice 2006-04-24 08:27:00 +00:00
zumbrunn
36e9e09f7f changed keyword expansion 2006-04-24 07:19:11 +00:00
zumbrunn
ebf02d851d added all.js files as convenience SingleFileRepositories to load all the Javascript library files in modules/core and/or modules/helma 2006-04-24 07:18:45 +00:00
zumbrunn
478df4b853 changed keyword expansion 2006-04-24 07:02:17 +00:00