Author: reto
Date: Mon Mar 1 13:56:27 2010
New Revision: 917528
URL: http://svn.apache.org/viewvc?rev=917528&view=rev
Log:
CLEREZZA-47: closing
Added:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/org/apache/clerezza/app/webguiexamples/staticweb/overlay.xhtml
- copied unchanged from r917524,
incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.app.webguiexamples/src/main/resources/org/apache/clerezza/app/webguiexamples/staticweb/overlay.xhtml
Removed:
incubator/clerezza/issues/CLEREZZA-47/
Modified:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/
(props changed)
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.launcher.storageless.parent/org.apache.clerezza.platform.launcher.storageless/
(props changed)
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/
(props changed)
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/META-INF/documentation.nt
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/alert-message.js
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/overlay.js
Propchange:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Mar 1 13:56:27 2010
@@ -1 +1,2 @@
+/incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.app.webguiexamples:892743-917524
/incubator/clerezza/issues/CLEREZZA-52/org.apache.clerezza.app.webguiexamples:894321-894392
Modified:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt
URL:
http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt?rev=917528&r1=917527&r2=917528&view=diff
==============================================================================
---
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt
(original)
+++
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt
Mon Mar 1 13:56:27 2010
@@ -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<link
href=\"/style/style.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\"
/>\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<link
href=\"/style/style.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\"
/>\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> .
Propchange:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.platform.launcher.storageless.parent/org.apache.clerezza.platform.launcher.storageless/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Mar 1 13:56:27 2010
@@ -1 +1,3 @@
target
+target-comp
+target-nocomp
Propchange:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/
------------------------------------------------------------------------------
--- svn:mergeinfo (added)
+++ svn:mergeinfo Mon Mar 1 13:56:27 2010
@@ -0,0 +1,2 @@
+/incubator/clerezza/issues/CLEREZZA-47/org.apache.clerezza.web.resources.scripts:892743-917522
+/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts:916331-916719
Modified:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/META-INF/documentation.nt
URL:
http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/META-INF/documentation.nt?rev=917528&r1=917527&r2=917528&view=diff
==============================================================================
---
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/META-INF/documentation.nt
(original)
+++
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/META-INF/documentation.nt
Mon Mar 1 13:56:27 2010
@@ -1,63 +1,80 @@
-_: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> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e24 <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-title> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e24 <http://discobits.org/ontology#pos> "0"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e24
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e23
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e23 <http://discobits.org/ontology#pos> "1"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e23 <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/1-content> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e22 <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/3-content> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e22 <http://discobits.org/ontology#pos> "1"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e22
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
<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> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e21
.
+<bundle:///web-resources-scripts-content>
<http://discobits.org/ontology#contains> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e20
.
+<bundle:///web-resources-scripts-content>
<http://discobits.org/ontology#contains> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e1f
.
+<bundle:///web-resources-scripts-content>
<http://discobits.org/ontology#contains> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e1e
.
<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<html
xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta
http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>\n
<link type=\"text/css\" href=\"/style/style.css\
" rel=\"stylesheet\" />\n\t\t<script src=\"/jquery/jquery-1.3.2.min.js\"
type=\"text/javascript\" />\n\t\t<script
src=\"/scripts/status-message.js\" type=\"text/javascript\" />\n\n
<title>Simple</title>\n </head>\n <body>\n
<div>\n <a href=\"#\"
onclick=\"statusMessage.add('id-of-message', 'text to display');\">click
here to add the message </a> <br/>\n <a href=\"#\"
onclick=\"statusMessage.remove('id-of-message');\">click here to remove the
message </a>\n </div>\n
</body>\n</html>\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://discobits.org/ontology#contains> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e22
.
+<bundle:///web-resources-scripts-content-el/3>
<http://discobits.org/ontology#contains> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e1d
.
+<bundle:///web-resources-scripts-content-el/3>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#TitledContent> .
<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<html
xmlns=\"http://www.w3.org/1999/xhtml\">\n <head>\n <meta
http-equiv=\"Content-Type\" content=\"text/html;
charset=UTF-8\"/>\n\t\t<script
src=\"/jquery/jquery-1.3.2.min.js\"\n\t\t\t\ttype=\"text/javascript\"
/>\n\t\t<script src=\"/scripts/modification-status.js\"
type=\"text/javascript\" />\n\t\t<script
type=\"text/javascript\">\n\t\t\tModificationStatus.watchElements(\"input\");\n\t\t</script>\n
<title>Simple</title>\n </head>\n
<body>\n <div>\n <div>click to modify:\n
<div style=\"background-color: blue
\" \n onclick=\"this.style.backgroundColor = 'red';
ModificationStatus.isModified = true\">\n </div>\n
</div>\n\t\t<a
href=\"http://clerezza.org/\">clerezza.org</a>\n\t\t<a
href=\"http://clerezza.org/\">clerezza.org</a>\n\t\t<input
type=\"text\" / >\n
</body>\n</html>\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> .
+<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 <link
href=\"/yui/container/assets/container-core.css\" rel=\"stylesheet\" type=\"tex
t/css\"/>\n <script src=\"/yui/yahoo-dom-event/yahoo-dom-event.js\"
type=\"text/javascript\"/>\n <script src=\"/yui/element/element-min.js\"
type=\"text/javascript\"/>\n <script
src=\"/yui/container/container-min.js\" type=\"text/javascript\"/>\n
<script src=\"/yui/dragdrop/dragdrop-min.js\"
type=\"text/javascript\"/>\n <script src=\"/yui/resize/resize-min.js\"
type=\"text/javascript\"/>\n <script src=\"/yui/utilities/utilities.js\"
type=\"text/javascript\"/>\n <script src=\"/scripts/overlay.js\"
type=\"text/javascript\"/>\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
<body>\n <div style=\"display: none\">\n <div
id=\"myOverlayBody\">body</d
iv>\n </div>\n <div>\n <a href=\"#\"
onclick=\"Overlay.show($('#myOverlayBody').html(),'header', '20em',
'10em');\">click here to add the overlay </a> <br/>\n
</div>\n
</body>\n...\n<br></br>\n</div>\n"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
.
+<bundle:///web-resources-scripts-content-el/2>
<http://discobits.org/ontology#contains> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e1c
.
+<bundle:///web-resources-scripts-content-el/2>
<http://discobits.org/ontology#contains> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e1b
.
<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<link
href=\"/yui/container/assets/container-core.css\" rel=\"stylesheet\"
type=\"text/css\"/><br></br>\n<script
src=\"/yui/yahoo-dom-event/yahoo-dom-event.js\" type=\"text/ja
vascript\"/><br></br>\n<script src=\"/yui/element/element-min.js\"
type=\"text/javascript\"/><br></br>\n<script
src=\"/yui/container/container-min.js\"
type=\"text/javascript\"/><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"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1a
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1a <http://discobits.org/ontology#pos> "0"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1a <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/1-title> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e19 <http://discobits.org/ontology#pos> "0"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e19
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e19 <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/0-title> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e18
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e18 <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/0-content> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e18 <http://discobits.org/ontology#pos> "1"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e20 <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/1> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e20 <http://discobits.org/ontology#pos> "1"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e20
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1e
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1e <http://discobits.org/ontology#pos> "3"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1e <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/3> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1d <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/3-title> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1d <http://discobits.org/ontology#pos> "0"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1d
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1b
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1b <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/2-title> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1b <http://discobits.org/ontology#pos> "0"
.
<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> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1c <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/2-content> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1c <http://discobits.org/ontology#pos> "1"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1c
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
<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> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e23
.
<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> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e1a
.
+<bundle:///web-resources-scripts-content-el/0>
<http://discobits.org/ontology#contains> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e18
.
+<bundle:///web-resources-scripts-content-el/0>
<http://discobits.org/ontology#contains> _:A78ce6e94X3aX125bba622b6X3aXX2dX6e19
.
<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 .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e17 <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e17 <http://discobits.org/ontology#pos> "1"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e17
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e21 <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/0> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e21 <http://discobits.org/ontology#pos> "0"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e21
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1f <http://discobits.org/ontology#pos> "2"
.
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1f
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:A78ce6e94X3aX125bba622b6X3aXX2dX6e1f <http://discobits.org/ontology#holds>
<bundle:///web-resources-scripts-content-el/2> .
+<bundle:///web-resources-scripts> <http://discobits.org/ontology#contains>
_:A78ce6e94X3aX125bba622b6X3aXX2dX6e17 .
+<bundle:///web-resources-scripts> <http://discobits.org/ontology#contains>
_:A78ce6e94X3aX125bba622b6X3aXX2dX6e24 .
<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/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/alert-message.js
URL:
http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/alert-message.js?rev=917528&r1=917527&r2=917528&view=diff
==============================================================================
---
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/alert-message.js
(original)
+++
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/alert-message.js
Mon Mar 1 13:56:27 2010
@@ -28,7 +28,7 @@
/**
* Creates and renders a dialox box.
*
- * @param doFunction is a callback function which fired if accept button is
pressed
+ * @param doFunction is a callback function which fired when the yes button is
pressed
* @param message
* @param headerText
* @param textYes
@@ -36,7 +36,7 @@
*
*
*/
-AlertMessage.show = function(doFunction, message, headerText, textYes, textNo)
{
+AlertMessage.show = function(handleYesFunction, message, headerText, textYes,
textNo) {
var handleYes = function() {
doFunction();
this.destroy();
Modified:
incubator/clerezza/trunk/org.apache.clerezza.parent/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/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/overlay.js?rev=917528&r1=917527&r2=917528&view=diff
==============================================================================
---
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/overlay.js
(original)
+++
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.resources.scripts/src/main/resources/org/apache/clerezza/web/resources/scripts/staticweb/overlay.js
Mon Mar 1 13:56:27 2010
@@ -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", {
+ this.overlay = new YAHOO.widget.Panel("tx-overlay", {
draggable: true,
- width: widthOverlay+"px",
- height: heightOverlay+"px",
+ width: widthOverlay,
+ height: heightOverlay,
constraintoviewport: true,
modal: true,
zIndex: 100000,
@@ -64,12 +64,16 @@
context: ["content"]
});
- if (bodyText.length) {
- this.overlay.setBody(bodyText);
+ if (body.length) {
+ if (!body.substring) {
+ //as with results from jquery $-fucntion
+ body = body[0]
+ }
}
-
- if (headerText.length) {
- this.overlay.setHeader(headerText);
+
+ this.overlay.setBody(body);
+ if (header.length) {
+ this.overlay.setHeader(header);
}
this.overlay.render(document.body);
@@ -86,8 +90,6 @@
this.resize = new YAHOO.util.Resize("tx-assetsdetail", {
handles: ["br"],
autoRatio: false,
- minWidth: widthOverlay,
- minHeight: heightOverlay,
status: false
});