Author: reto
Date: Tue Mar 9 12:41:15 2010
New Revision: 920847
URL: http://svn.apache.org/viewvc?rev=920847&view=rev
Log:
added example for alert message
Added:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/org/apache/clerezza/app/webguiexamples/staticweb/alert.xhtml
Modified:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/META-INF/documentation.nt
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=920847&r1=920846&r2=920847&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
Tue Mar 9 12:41:15 2010
@@ -1,13 +1,13 @@
-_:AX2dX403be998X3aX124d4df5006X3aXX2dX7f72
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
-_: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<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> .
+<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><li><a
href=\"/web-gui-examples/alert.xhtml\" target=\"_blank\">alert
message</a></li>\n</ul>"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>
.
+_:AX2dX304e41c0X3aX1274283458aX3aXX2dX7e4e
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:AX2dX304e41c0X3aX1274283458aX3aXX2dX7e4e <http://discobits.org/ontology#pos>
"0" .
+_:AX2dX304e41c0X3aX1274283458aX3aXX2dX7e4e
<http://discobits.org/ontology#holds> <bundle:///webguiexamples-title> .
<bundle:///webguiexamples> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#TitledContent> .
-<bundle:///webguiexamples> <http://discobits.org/ontology#contains>
_:AX2dX403be998X3aX124d4df5006X3aXX2dX7f71 .
-<bundle:///webguiexamples> <http://discobits.org/ontology#contains>
_:AX2dX403be998X3aX124d4df5006X3aXX2dX7f72 .
+<bundle:///webguiexamples> <http://discobits.org/ontology#contains>
_:AX2dX304e41c0X3aX1274283458aX3aXX2dX7e4e .
+<bundle:///webguiexamples> <http://discobits.org/ontology#contains>
_:AX2dX304e41c0X3aX1274283458aX3aXX2dX7e4d .
<bundle:///webguiexamples-title> <http://discobits.org/ontology#infoBit> "Web
Gui Examples"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
<bundle:///webguiexamples-title>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#XHTMLInfoDiscoBit> .
+_:AX2dX304e41c0X3aX1274283458aX3aXX2dX7e4d
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://discobits.org/ontology#Entry> .
+_:AX2dX304e41c0X3aX1274283458aX3aXX2dX7e4d <http://discobits.org/ontology#pos>
"1" .
+_:AX2dX304e41c0X3aX1274283458aX3aXX2dX7e4d
<http://discobits.org/ontology#holds> <bundle:///webguiexamples-content> .
Added:
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/org/apache/clerezza/app/webguiexamples/staticweb/alert.xhtml
URL:
http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/org/apache/clerezza/app/webguiexamples/staticweb/alert.xhtml?rev=920847&view=auto
==============================================================================
---
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/org/apache/clerezza/app/webguiexamples/staticweb/alert.xhtml
(added)
+++
incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.app.webguiexamples/src/main/resources/org/apache/clerezza/app/webguiexamples/staticweb/alert.xhtml
Tue Mar 9 12:41:15 2010
@@ -0,0 +1,77 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<title>alert message - example</title>
+
+ <link href="/style/style.css" media="screen" rel="stylesheet"
type="text/css" />
+ <link href="./style/demo.css" media="screen" rel="stylesheet"
type="text/css" />
+ <link href="/yui/container/assets/container-core.css" rel="stylesheet"
type="text/css"/>
+ <script src="/jquery/jquery-1.3.2.min.js" type="text/javascript" />
+ <script src="/yui/yahoo-dom-event/yahoo-dom-event.js"
type="text/javascript"/>
+ <script src="/yui/element/element-min.js" type="text/javascript"/>
+ <script src="/yui/container/container-min.js" type="text/javascript"/>
+ <script src="/scripts/alert-message.js" type="text/javascript"/>
+ <script type="text/javascript">
+ function showAlert() {
+
+ }
+ </script>
+</head>
+
+<body>
+
+
+<!-- content -->
+<div id="tx-content" class="demo">
+
+ <div id="demo">
+ <h3>Description</h3>
+
+
+ <h3>Alert</h3>
+
+ <div>
+ <br/>
+ <br/>
+ <div style="display: none">
+ <div id="myOverlayBody">body</div>
+ </div>
+ <div>
+ <a href="#"
onclick="AlertMessage.show(function(){alert('done');},
+ 'This is a test alert', 'Test Alert', 'Yes',
'No')">click here to show alert.</a> <br/>
+ </div>
+ <br/>
+ <br/>
+
+
+ The following css and scripts have to be included:
+ <pre>
+<link href="/yui/container/assets/container-core.css" rel="stylesheet"
type="text/css"/>
+<script src="/jquery/jquery-1.3.2.min.js" type="text/javascript" />
+<script src="/yui/yahoo-dom-event/yahoo-dom-event.js"
type="text/javascript"/>
+<script src="/yui/element/element-min.js" type="text/javascript"/>
+<script src="/yui/container/container-min.js" type="text/javascript"/>
+<script src="/scripts/alert-message.js" type="text/javascript"/>
+ </pre>
+ <br/>
+ <br/>
+ e.g.
+ <pre>
+...
+ <div>
+ <a href="#"
onclick="AlertMessage.show(function(){alert('done');},
+ 'This is a test alert', 'Test Alert', 'Yes',
'No')">click here to add sho alert </a> <br/>
+ </div>
+...
+ </pre>
+ </div>
+
+ </div>
+</div>
+<!-- // content -->
+
+</body>
+</html>
+