You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by it...@apache.org on 2009/12/21 15:23:07 UTC

svn commit: r892831 - in /incubator/clerezza/issues/CLEREZZA-47: ./ org.apache.clerezza.app.webguiexamples/ org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/ org.apache.clerezza.web.resources.scripts/ org.apache.clerezza.web.resources...

Author: ito
Date: Mon Dec 21 14:23:07 2009
New Revision: 892831

URL: http://svn.apache.org/viewvc?rev=892831&view=rev
Log:
CLEREZZA-47: documentation added to documentation.nt and webguiexamples, removed hardcoded unit of width and height

Added:
    incubator/clerezza/issues/CLEREZZA-47/
    incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.app.webguiexamples/
      - copied from r892742, incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/
    incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/
      - copied from r892742, incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.webapp.parent/org.apache.clerezza.web.resources.scripts/
Modified:
    incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt
    incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/src/main/resources/META-INF/documentation.nt
    incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/overlay.js

Modified: incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt
URL: http://svn.apache.org/viewvc/incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt?rev=892831&r1=892742&r2=892831&view=diff
==============================================================================
--- incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt (original)
+++ incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt Mon Dec 21 14:23:07 2009
@@ -2,7 +2,7 @@
 _:AX2dX403be998X3aX124d4df5006X3aXX2dX7f72 <http://discobits.org/ontology#pos> "1" .
 _:AX2dX403be998X3aX124d4df5006X3aXX2dX7f72 <http://discobits.org/ontology#holds> <bundle:///webguiexamples-content> .
 <bundle:///webguiexamples-content> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
-<bundle:///webguiexamples-content> <http://discobits.org/ontology#infoBit> "The following list gives an overview of all gui elements and the corresponding styles available on clerezza to create your on wep apps. To use the style the file \"style.css\" has to be linked to the source HTML document with the LINK element: \n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n&lt;link href=\"/style/style.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" /&gt;\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<ul xmlns=\"http://www.w3.org/1999/xhtml\">\n<li>\n<a href=\"/web-gui-examples/buttons.xhtml\" target=\"_blank\">buttons</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/header.xhtml\" target=\"_blank\">header</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/panel.xhtml\" target=\"_blank\">panel</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/thumbnail.xhtml\" target=\"_blank\">thumbnail view</a>\n</li>\n<li>\n<a href=\"/web-
 gui-examples/tree.xhtml\" target=\"_blank\">tree view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/edit.xhtml\" target=\"_blank\">edit view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/table.xhtml\" target=\"_blank\">table view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/panel-thumbnail.xhtml\" target=\"_blank\">panel-thumbnail view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/panel-tree.xhtml\" target=\"_blank\">panel-tree view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/tree-edit.xhtml\" target=\"_blank\">tree-edit view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/tree-thumbnail.xhtml\" target=\"_blank\">tree-thumbnail view</a>\n</li>\n</ul>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
+<bundle:///webguiexamples-content> <http://discobits.org/ontology#infoBit> "The following list gives an overview of all gui elements and the corresponding styles available on clerezza to create your on wep apps. To use the style the file \"style.css\" has to be linked to the source HTML document with the LINK element: \n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n&lt;link href=\"/style/style.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" /&gt;\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<ul xmlns=\"http://www.w3.org/1999/xhtml\">\n<li>\n<a href=\"/web-gui-examples/buttons.xhtml\" target=\"_blank\">buttons</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/header.xhtml\" target=\"_blank\">header</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/panel.xhtml\" target=\"_blank\">panel</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/thumbnail.xhtml\" target=\"_blank\">thumbnail view</a>\n</li>\n<li>\n<a href=\"/web-
 gui-examples/tree.xhtml\" target=\"_blank\">tree view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/edit.xhtml\" target=\"_blank\">edit view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/table.xhtml\" target=\"_blank\">table view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/panel-thumbnail.xhtml\" target=\"_blank\">panel-thumbnail view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/panel-tree.xhtml\" target=\"_blank\">panel-tree view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/tree-edit.xhtml\" target=\"_blank\">tree-edit view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/tree-thumbnail.xhtml\" target=\"_blank\">tree-thumbnail view</a>\n</li>\n<li>\n<a href=\"/web-gui-examples/overlay.xhtml\" target=\"_blank\">overlay</a>\n</li>\n</ul>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
 _:AX2dX403be998X3aX124d4df5006X3aXX2dX7f71 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
 _:AX2dX403be998X3aX124d4df5006X3aXX2dX7f71 <http://discobits.org/ontology#pos> "0" .
 _:AX2dX403be998X3aX124d4df5006X3aXX2dX7f71 <http://discobits.org/ontology#holds> <bundle:///webguiexamples-title> .

Modified: incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/src/main/resources/META-INF/documentation.nt
URL: http://svn.apache.org/viewvc/incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/src/main/resources/META-INF/documentation.nt?rev=892831&r1=892742&r2=892831&view=diff
==============================================================================
--- incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/src/main/resources/META-INF/documentation.nt (original)
+++ incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/src/main/resources/META-INF/documentation.nt Mon Dec 21 14:23:07 2009
@@ -1,63 +1,68 @@
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea8 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea8 <http://discobits.org/ontology#pos> "0" .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea8 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-title> .
 <bundle:///web-resources-scripts-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
 <bundle:///web-resources-scripts-title> <http://discobits.org/ontology#infoBit> "Javascript Library"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea7 <http://discobits.org/ontology#pos> "0" .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea7 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea6 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/2-title> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea6 <http://discobits.org/ontology#pos> "0" .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea7 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/0-title> .
-<bundle:///web-resources-scripts-content> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7ea5 .
-<bundle:///web-resources-scripts-content> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7ea4 .
-<bundle:///web-resources-scripts-content> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7ea3 .
+<bundle:///web-resources-scripts-content-el/3-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///web-resources-scripts-content-el/3-title> <http://discobits.org/ontology#infoBit> "Overlay"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8e <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8e <http://discobits.org/ontology#pos> "3" .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8e <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/3> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8d <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8d <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/2-title> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8d <http://discobits.org/ontology#pos> "0" .
 <bundle:///web-resources-scripts-content> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#OrderedContent> .
-<bundle:///web-resources-scripts-content-el/1-content> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///web-resources-scripts-content> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8c .
+<bundle:///web-resources-scripts-content> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8b .
+<bundle:///web-resources-scripts-content> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8a .
+<bundle:///web-resources-scripts-content> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8e .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c89 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/2-content> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c89 <http://discobits.org/ontology#pos> "1" .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c89 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8a <http://discobits.org/ontology#pos> "2" .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8a <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8a <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/2> .
 <bundle:///web-resources-scripts-content-el/1-content> <http://discobits.org/ontology#infoBit> "<code xmlns=\"http://www.w3.org/1999/xhtml\">StatusMessage</code> allows to add/remove status messages (e.g. saving) to an overlay (absolut positioned <code xmlns=\"http://www.w3.org/1999/xhtml\">div</code>) which follows the mouse pointer. During a ajax request a status message can be added and after the response the message can be removed. Each message is added to an array.\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<strong xmlns=\"http://www.w3.org/1999/xhtml\">Example</strong>:\n\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"tx-blockcode\">\n&lt;html xmlns=\"http://www.w3.org/1999/xhtml\"&gt;\n    &lt;head&gt;\n        &lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/&gt;\n                &lt;link type=\"text/css\" href=\"/style/style.css\
 " rel=\"stylesheet\" /&gt;\n\t\t&lt;script src=\"/jquery/jquery-1.3.2.min.js\" type=\"text/javascript\" /&gt;\n\t\t&lt;script src=\"/scripts/status-message.js\" type=\"text/javascript\" /&gt;\n\n        &lt;title&gt;Simple&lt;/title&gt;\n    &lt;/head&gt;\n    &lt;body&gt;\n       &lt;div&gt;\n         &lt;a href=\"#\" onclick=\"statusMessage.add('id-of-message', 'text to display');\"&gt;click here to add the message &lt;/a&gt; &lt;br/&gt;\n         &lt;a href=\"#\" onclick=\"statusMessage.remove('id-of-message');\"&gt;click here to remove the message &lt;/a&gt;\n       &lt;/div&gt;\n    &lt;/body&gt;\n&lt;/html&gt;\n<br></br>\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea2 <http://discobits.org/ontology#pos> "1" .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea2 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/2-content> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea4 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/1> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea4 <http://discobits.org/ontology#pos> "1" .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
-<bundle:///web-resources-scripts-content-el/0-content> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///web-resources-scripts-content-el/1-content> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///web-resources-scripts-content-el/3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#TitledContent> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c88 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c88 <http://discobits.org/ontology#pos> "0" .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c88 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/1-title> .
 <bundle:///web-resources-scripts-content-el/0-content> <http://discobits.org/ontology#infoBit> "The <code xmlns=\"http://www.w3.org/1999/xhtml\">ModificationStatus</code> is a global object with a field <code xmlns=\"http://www.w3.org/1999/xhtml\">isModified</code> indicating if some saveable information has been changed on the page. \n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\nThe isModified field can be set by client code (see example: if the user clicks on the div with the blue background color <code xmlns=\"http://www.w3.org/1999/xhtml\">isModified</code> is set to true), or alternatively elements that fire change events can be registered for being monitored using <code xmlns=\"http://www.w3.org/1999/xhtml\">watchElements</code> (the following example adds listeners to all input fields).<code xmlns=\"http://www.w3.org/1999/xhtml\">watchElements</code> takes a jquery selector string to specify the elements to be wat
 ched.<br xmlns=\"http://www.w3.org/1999/xhtml\"></br><br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<strong xmlns=\"http://www.w3.org/1999/xhtml\">Example</strong>:\n\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"tx-blockcode\">\n&lt;html xmlns=\"http://www.w3.org/1999/xhtml\"&gt;\n    &lt;head&gt;\n        &lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/&gt;\n\t\t&lt;script src=\"/jquery/jquery-1.3.2.min.js\"\n\t\t\t\ttype=\"text/javascript\" /&gt;\n\t\t&lt;script src=\"/scripts/modification-status.js\" type=\"text/javascript\" /&gt;\n\t\t&lt;script type=\"text/javascript\"&gt;\n\t\t\tModificationStatus.watchElements(\"input\");\n\t\t&lt;/script&gt;\n        &lt;title&gt;Simple&lt;/title&gt;\n    &lt;/head&gt;\n    &lt;body&gt;\n       &lt;div&gt;\n           &lt;div&gt;click to modify:\n               &lt;div style=\"background-color: blue
 \" \n                   onclick=\"this.style.backgroundColor = 'red'; ModificationStatus.isModified = true\"&gt;\n               &lt;/div&gt;\n           &lt;/div&gt;\n\t\t&lt;a href=\"http://clerezza.org/\"&gt;clerezza.org&lt;/a&gt;\n\t\t&lt;a href=\"http://clerezza.org/\"&gt;clerezza.org&lt;/a&gt;\n\t\t&lt;input type=\"text\" / &gt;\n    &lt;/body&gt;\n&lt;/html&gt;\n<br></br>\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
-<bundle:///web-resources-scripts-content-el/2> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7ea2 .
-<bundle:///web-resources-scripts-content-el/2> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7ea6 .
+<bundle:///web-resources-scripts-content-el/0-content> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c87 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c87 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/0-content> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c87 <http://discobits.org/ontology#pos> "1" .
+<bundle:///web-resources-scripts-content-el/3-content> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+<bundle:///web-resources-scripts-content-el/3-content> <http://discobits.org/ontology#infoBit> "The <code xmlns=\"http://www.w3.org/1999/xhtml\">Overlay</code> behave similarly to an OS window. Unlike true browser popup windows, the overlay is floating DHTML elements embedded directly within the page context. The Overlay is positioned above the flow of a page and is draggable, resizable and has a close button. The Overlay has a method show with arguments body, header, width and height, which renders the overlay. The body and the header can be html elements or text. The width (default value: 46em) and height (default value: 37em) can be defined absolutely or relatively. \n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\nThe following css and scripts have to be included:\n<div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"tx-blockcode\">\n &lt;link href=\"/yui/container/assets/container-core.css\" rel=\"stylesheet\" type=\"te
 xt/css\"/&gt;\n &lt;script src=\"/yui/yahoo-dom-event/yahoo-dom-event.js\" type=\"text/javascript\"/&gt;\n &lt;script src=\"/yui/element/element-min.js\" type=\"text/javascript\"/&gt;\n &lt;script src=\"/yui/container/container-min.js\" type=\"text/javascript\"/&gt;\n &lt;script src=\"/yui/dragdrop/dragdrop-min.js\" type=\"text/javascript\"/&gt;\n &lt;script src=\"/yui/resize/resize-min.js\" type=\"text/javascript\"/&gt;\n &lt;script src=\"/yui/utilities/utilities.js\" type=\"text/javascript\"/&gt;\n &lt;script src=\"/scripts/overlay.js\" type=\"text/javascript\"/&gt;\n</div>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<strong xmlns=\"http://www.w3.org/1999/xhtml\">Example</strong>:\n\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"tx-blockcode\">\n...\n    &lt;body&gt;\n       &lt;div&gt;\n         &lt;a href=\"#\" onclick=\"Overlay.show('&amp;lt;div&amp;gt;body&a
 mp;lt;/div&amp;gt;','header', '20em', '10em');\"&gt;click here to add the overlay &lt;/a&gt; &lt;br/&gt;\n       &lt;/div&gt;\n    &lt;/body&gt;\n...\n<br></br>\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
+<bundle:///web-resources-scripts-content-el/2> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c89 .
+<bundle:///web-resources-scripts-content-el/2> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8d .
 <bundle:///web-resources-scripts-content-el/2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#TitledContent> .
 <bundle:///web-resources-scripts-content-el/2-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
 <bundle:///web-resources-scripts-content-el/2-title> <http://discobits.org/ontology#infoBit> "Alert Message"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
 <bundle:///web-resources-scripts-content-el/2-content> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
 <bundle:///web-resources-scripts-content-el/2-content> <http://discobits.org/ontology#infoBit> "AlertMessage shows a dialog box on top of a page. AlertMessage has a method show, which creates and renders a dialog box. This method takes as argument a callback function, which is executed when the \"accept\"-button is pressed,  message, a header message, text for the \"accept\"-button and text for the \"decline\"-button. The message, header message, text for \"accept\"-button, text for the \"decline\"-button are optional. The default values are shown in the following example.\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\nAlertMessage needs the following css and javascript:\n <div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"tx-blockcode\">\n&lt;link href=\"/yui/container/assets/container-core.css\" rel=\"stylesheet\" type=\"text/css\"/&gt;<br></br>\n&lt;script src=\"/yui/yahoo-dom-event/yahoo-dom-event.js\" type=\"text/ja
 vascript\"/&gt;<br></br>\n&lt;script src=\"/yui/element/element-min.js\" type=\"text/javascript\"/&gt;<br></br>\n&lt;script src=\"/yui/container/container-min.js\" type=\"text/javascript\"/&gt;<br></br>\n</div>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<br xmlns=\"http://www.w3.org/1999/xhtml\"></br>\n<div xmlns=\"http://www.w3.org/1999/xhtml\" class=\"tx-blockcode\">\nAlertMessage.show(function(){alert(\"done\");}, \"Are you sure you want to lose the unsaved changes\", \"Unsaved changes\", \"Yes\", \"No\");\n</div>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea1 <http://discobits.org/ontology#pos> "1" .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea1 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/1-content> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea0 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea0 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/0-content> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea0 <http://discobits.org/ontology#pos> "1" .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8c <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/0> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8c <http://discobits.org/ontology#pos> "0" .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8c <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c86 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c86 <http://discobits.org/ontology#pos> "0" .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c86 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-title> .
 <bundle:///web-resources-scripts-content-el/1-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
 <bundle:///web-resources-scripts-content-el/1-title> <http://discobits.org/ontology#infoBit> "Status Message"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea3 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/0> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea3 <http://discobits.org/ontology#pos> "0" .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c85 <http://discobits.org/ontology#pos> "0" .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c85 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c85 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/0-title> .
 <bundle:///web-resources-scripts-content-el/0-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit> .
 <bundle:///web-resources-scripts-content-el/0-title> <http://discobits.org/ontology#infoBit> "Modification Status"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
-<bundle:///web-resources-scripts-content-el/1> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7ea1 .
+<bundle:///web-resources-scripts-content-el/1> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c84 .
 <bundle:///web-resources-scripts-content-el/1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#TitledContent> .
-<bundle:///web-resources-scripts-content-el/1> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7e9f .
+<bundle:///web-resources-scripts-content-el/1> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c88 .
+<bundle:///web-resources-scripts-content-el/0> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c87 .
+<bundle:///web-resources-scripts-content-el/0> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c85 .
 <bundle:///web-resources-scripts-content-el/0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#TitledContent> .
-<bundle:///web-resources-scripts-content-el/0> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7ea7 .
-<bundle:///web-resources-scripts-content-el/0> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7ea0 .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea5 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/2> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea5 <http://discobits.org/ontology#pos> "2" .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7ea5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7e9e <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7e9e <http://discobits.org/ontology#pos> "1" .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7e9e <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
-<bundle:///web-resources-scripts> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7e9e .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c84 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c84 <http://discobits.org/ontology#pos> "1" .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c84 <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/1-content> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8b <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/1> .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8b <http://discobits.org/ontology#pos> "1" .
+_:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c8b <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .
+<bundle:///web-resources-scripts> <http://discobits.org/ontology#contains> _:AX2dX1add52afX3aX125b0b0ce6cX3aXX2dX7c86 .
 <bundle:///web-resources-scripts> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#TitledContent> .
-<bundle:///web-resources-scripts> <http://discobits.org/ontology#contains> _:A1035a0e8X3aX125351884aaX3aXX2dX7ea8 .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7e9f <http://discobits.org/ontology#holds> <bundle:///web-resources-scripts-content-el/1-title> .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7e9f <http://discobits.org/ontology#pos> "0" .
-_:A1035a0e8X3aX125351884aaX3aXX2dX7e9f <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry> .

Modified: incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/overlay.js
URL: http://svn.apache.org/viewvc/incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/overlay.js?rev=892831&r1=892742&r2=892831&view=diff
==============================================================================
--- incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/overlay.js (original)
+++ incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/overlay.js Mon Dec 21 14:23:07 2009
@@ -33,28 +33,28 @@
 /**
  * Creates and renders an overlay.
  *
- * @param bodyText
- * @param headerText
+ * @param body html elements or text
+ * @param header html elements or text
  * @param widthOverlay an optional parameter which specifies the width of the overlay
- * (default is 560px)
+ * (default is 46em)
  * @param heightOverlay an optional parameter which specifies the height of the overlay
- * (default is 450px)
+ * (default is 37em)
  * 
  *
  */
-Overlay.show = function(bodyText, headerText, widthOverlay, heightOverlay) {
+Overlay.show = function(body, header, widthOverlay, heightOverlay) {
 
 	if(widthOverlay == undefined || widthOverlay == "") {
-		widthOverlay = 560;
+		widthOverlay = "46em";
 	}
 	if(heightOverlay == undefined || heightOverlay == "") {
-		heightOverlay = 450;
+		heightOverlay = "37em";
 	}
 
 	this.overlay = new YAHOO.widget.Panel("tx-assetsdetail", {
 		draggable: true,
-		width: widthOverlay+"px",
-		height: heightOverlay+"px",
+		width: widthOverlay,
+		height: heightOverlay,
 		constraintoviewport: true,
 		modal: true,
 		zIndex: 100000,
@@ -64,12 +64,12 @@
 		context: ["content"]
 	});
 	
-	if (bodyText.length) {
-		this.overlay.setBody(bodyText);
+	if (body.length) {
+		this.overlay.setBody(body);
 	}
 	
-	if (headerText.length) {
-		this.overlay.setHeader(headerText);
+	if (header.length) {
+		this.overlay.setHeader(header);
 	}	
 	
 	this.overlay.render(document.body);
@@ -86,8 +86,6 @@
 	this.resize = new YAHOO.util.Resize("tx-assetsdetail", {
 		handles: ["br"],
 		autoRatio: false,
-		minWidth: widthOverlay,
-		minHeight: heightOverlay,
 		status: false 
 	});