Log updates
[beagleboard.org.git] / code / .docs / prototype_Global / macro_helma.Inspector.prototype.properties_macro.html
blobab3fd804b7d05b23b825a9d16b438cea4fc263cf
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2 <html>
4 <head>
5 <title></title>
6 <style type="text/css">
8 body, p, td, th, li {
9 font-family: verdana, sans-serif;
10 font-size: 10pt;
13 big.top {
14 font-size: 18pt;
15 font-weight: bold;
18 big {
19 font-size: 13pt;
20 font-weight: bold;
23 a {
24 font-weight:bold;
25 color: #cc3333;
26 text-decoration:none;
28 a:hover {
29 text-decoration:underline;
32 .navig {
33 font-size: 9px;
34 text-decoration: none;
35 font-weight:normal;
38 li {
39 padding-bottom: 5px;
43 .mainbox {
44 border-color:#999999;
45 padding-top:5px;
46 padding-bottom:5px;
47 border-bottom-width:1px;
48 border-bottom-style:dotted;
51 .headline {
52 font-weight:bold;
53 background:#dfdfdf;
54 border-color:#999999;
55 padding-top:5px;
56 padding-bottom:5px;
59 </style>
60 </head>
62 <body>
64 <table width="90%" border="0" cellspacing="1" cellpadding="5">
65 <tr>
66 <td class="headline">
67 <big><tt>&lt;%&nbsp;Global.helma.Inspector.prototype.properties&nbsp;%&gt;</tt></big><br>
68 </td>
69 </tr>
71 <tr>
72 <td class="mainbox">
75 <ul>
82 </ul>
83 </td>
84 </tr>
85 </table>
87 <table width="90%" border="0" cellspacing="1" cellpadding="5">
88 <tr>
89 <td>Sourcecode in helmaTools.zip/Global/helma.Inspector.js:
90 <pre><font color="#aaaaaa">182:</font> this.properties_macro = function() {
91 <font color="#aaaaaa">183:</font> if (hopObj._id) {
92 <font color="#aaaaaa">184:</font> renderSkin(skins.property, {
93 <font color="#aaaaaa">185:</font> title: <font color="#9999aa">&quot;_id&quot;</font>, value: hopObj._id
94 <font color="#aaaaaa">186:</font> });
95 <font color="#aaaaaa">187:</font> renderSkin(skins.property, {
96 <font color="#aaaaaa">188:</font> title: <font color="#9999aa">&quot;_prototype&quot;</font>, value: hopObj._prototype
97 <font color="#aaaaaa">189:</font> });
98 <font color="#aaaaaa">190:</font> }
99 <font color="#aaaaaa">191:</font>
100 <font color="#aaaaaa">192:</font> if (hopObj._parent) {
101 <font color="#aaaaaa">193:</font> renderSkin(skins.property, {
102 <font color="#aaaaaa">194:</font> title: html.linkAsString({
103 <font color="#aaaaaa">195:</font> href: hopObj._parent.href(req.action)
104 <font color="#aaaaaa">196:</font> }, <font color="#9999aa">&quot;_parent&quot;</font>),
105 <font color="#aaaaaa">197:</font> value: hopObj._parent
106 <font color="#aaaaaa">198:</font> });
107 <font color="#aaaaaa">199:</font> }
108 <font color="#aaaaaa">200:</font>
109 <font color="#aaaaaa">201:</font> for (var i in properties) {
110 <font color="#aaaaaa">202:</font> var obj = properties[i];
111 <font color="#aaaaaa">203:</font> if (obj.value instanceof Date) {
112 <font color="#aaaaaa">204:</font> var param = {value: obj.value.toString()};
113 <font color="#aaaaaa">205:</font> param.title = html.linkAsString({
114 <font color="#aaaaaa">206:</font> href: <font color="#9999aa">&quot;javascript:void(null)&quot;</font>,
115 <font color="#aaaaaa">207:</font> onclick: <font color="#9999aa">&quot;toggleEditor(this)&quot;</font>
116 <font color="#aaaaaa">208:</font> }, obj.key);
117 <font color="#aaaaaa">209:</font> param.key = obj.key;
118 <font color="#aaaaaa">210:</font> param.years = genOptions(1970, 2070, obj.value.getFullYear());
119 <font color="#aaaaaa">211:</font> param.months = genOptions(1, 12, obj.value.getMonth()+1);
120 <font color="#aaaaaa">212:</font> param.days = genOptions(1, 31, obj.value.getDate());
121 <font color="#aaaaaa">213:</font> param.hours = genOptions(0, 23, obj.value.getHours());
122 <font color="#aaaaaa">214:</font> param.minutes = genOptions(0, 59, obj.value.getMinutes());
123 <font color="#aaaaaa">215:</font> param.seconds = genOptions(0, 59, obj.value.getSeconds());
124 <font color="#aaaaaa">216:</font> renderSkin(skins.date, param);
125 <font color="#aaaaaa">217:</font> } else {
126 <font color="#aaaaaa">218:</font> var param = {value: obj.value};
127 <font color="#aaaaaa">219:</font> if (obj.value.href) {
128 <font color="#aaaaaa">220:</font> param.title = html.linkAsString({href: obj.value.href(req.action)}, obj.key);
129 <font color="#aaaaaa">221:</font> renderSkin(skins.property, param);
130 <font color="#aaaaaa">222:</font> } else {
131 <font color="#aaaaaa">223:</font> param.title = html.linkAsString({
132 <font color="#aaaaaa">224:</font> href: <font color="#9999aa">&quot;javascript:void(null)&quot;</font>,
133 <font color="#aaaaaa">225:</font> onclick: <font color="#9999aa">&quot;toggleEditor(this)&quot;</font>
134 <font color="#aaaaaa">226:</font> }, obj.key);
135 <font color="#aaaaaa">227:</font> param.key = obj.key;
136 <font color="#aaaaaa">228:</font> renderSkin(skins.editor, param);
137 <font color="#aaaaaa">229:</font> }
138 <font color="#aaaaaa">230:</font> }
139 <font color="#aaaaaa">231:</font> }
140 <font color="#aaaaaa">232:</font>
141 <font color="#aaaaaa">233:</font> return;
142 <font color="#aaaaaa">234:</font> }
143 </pre>
144 </td>
145 </tr>
147 </table>
153 </body>
154 </html>