1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="data/default.css">
<title>anyRemote - control PC with Bluetooth cell phone</title>
<link rel="stylesheet" type="text/css" href="data/default.css">
<link rel="icon" href="data/anyRemote32.png" type="image/png">
<link rel="shortcut icon" href="data/anyRemote16.png" type="image/png" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="anyRemote project page - Bluetooth remote control tool">
</head>
<body><div id="body">
<table style="text-align: left; width: 100%;" border="0" cellpadding="10" cellspacing="1">
<tbody>
<tr>
<td style="vertical-align: top; text-align: left width=50%;">
<h1>Set(menu ... ) command</h1>
<p>This command used to manage a menu associated with the screen of java client.
<h3>Format</h3>
<p><b>Set(menu,add|replace,_list_of_items_)</b> or
<p><b>Set(menu,clean)</b>
</td>
<td style="vertical-align: top; text-align: center; width=25%;">
<img src="data/client-list-menu.png" align="center" border="1">
</td>
</tbody>
</table>
<h3>Usage</h3>
<p>Command Set(menu,add ...) used to add items to the menu.
<ul type="disc"><pre class="screen">
<span><strong class="command">1=Set(menu,add,Item1,Item2,Item3)</strong></span>
<span><strong class="command">2=ExecAndSet(menu,add,cat some_file.txt)</strong></span>
</pre></ul>
<p>Command Set(menu,replace ...) used to replace items in the menu.
<ul type="disc"><pre class="screen">
<span><strong class="command">1=Set(menu,replace,Item1,Item2,Item3)</strong></span>
<span><strong class="command">2=ExecAndSet(menu,add,cat some_file.txt)</strong></span>
</pre></ul>
<p>There is a set of <b>predefined</b> menu items are associated with each screen of Java Client.
These set of items will be added automatically during execution of Set(menu,replace ...) command.
Here is the sets of predefined items:
<center>
<table style="text-align: left; width: 80%;" border="1" cellpadding="10" cellspacing="1">
<tbody>
<tr>
<td style="vertical-align: center; text-align: left width=16%;">
Controls (main) screen:
</td>
<td style="vertical-align: center; text-align: left width=16%;">
List view screen:
</td>
<td style="vertical-align: center; text-align: left width=18%;">
Text view screen:
</td>
<td style="vertical-align: center; text-align: left width=18%;">
File manager screen:
</td>
<td style="vertical-align: center; text-align: left width=16%;">
Editfield screen:
</td>
<td style="vertical-align: center; text-align: left width=16%;">
Search screen:
</td>
</tr>
<tr>
<td style="vertical-align: center; text-align: left width=16%;">
<pre>
Exit
</pre>
</td>
<td style="vertical-align: center; text-align: left width=16%;">
<pre>
Back
</pre>
</td>
<td style="vertical-align: center; text-align: left width=18%;">
<pre>
Back
Wrap On
Wrap Off
Jump Up
Jump To End
</pre>
</td>
<td style="vertical-align: center; text-align: left width=18%;">
<pre>
Back
GoTo
Copy
Move
MkDir
Delete
View
Execute
File info
</pre>
</td>
<td style="vertical-align: center; text-align: left width=16%;">
<pre>
OK
Back
</pre>
</td>
<td style="vertical-align: center; text-align: left width=16%;">
<pre>
Connect
Exit
Search
Enter address
</pre>
</td>
</tbody>
</table>
</center>
<p>Command Set(menu,clean) used to remove all items from menu.
<ul type="disc"><pre class="screen">
<span><strong class="command">7=Set(menu,clean)</strong></span>
</pre>
</ul>
<p>To avoid possible mess with menu, all menu items will be deleted each time Java Client screen changed from one type to another
(i.e. from Control (main) view to Text view). So, it is not necessary to issue Set(menu,clean) when Java Client screen changed
from one type to another. On another side it means what Set(menu ...) command should be executed <i>after</i> others Set(...) commands.
<p> Set(menu,replace ...) command is not superposition of Set(menu,clean) and Set(menu,add ...) commands, since <b>predefined</b>
menu items will be added only during Set(menu,replace ...). As a results, it is possible to omit <b>predefined</b> menu items
by executing Set(menu,clean) and Set(menu,add ...) commands.
<p>If user chooses menu item MenuItem, some command will be sent to the server. The exact syntax of command depends on the
screen of Java Client from which it is issued (where I is index of selected item in list and ValueI is a value of selected item in list):
<center>
<table style="text-align: left; width: 80%;" border="1" cellpadding="10" cellspacing="1">
<tbody>
<tr>
<td style="vertical-align: center; text-align: left width=16%;">
Controls (main) screen:
</td>
<td style="vertical-align: center; text-align: left width=18%;">
List view screen
</td>
<td style="vertical-align: center; text-align: left width=16%;">
Text view screen
</td>
<td style="vertical-align: center; text-align: left width=18%;">
File manager screen
</td>
<td style="vertical-align: center; text-align: left width=16%;">
Editfield screen
</td>
<td style="vertical-align: center; text-align: left width=16%;">
Search screen
</td>
<tr>
<tr>
<td style="vertical-align: center; text-align: left width=16%;">
MenuItem for custom menu items. Predefined menu item (Exit) managed internally.
</td>
<td style="vertical-align: center; text-align: left width=18%;">
MenuItem(I, ValueI)
</td>
<td style="vertical-align: center; text-align: left width=16%;">
MenuItem for custom menu items. Predefined menu items except Back managed internally.
</td>
<td style="vertical-align: center; text-align: left width=18%;">
single selection: MenuItemL(I, ValueI) if left panel or MenuItemR(I, ValueI) if right panel
<br>multiple selection: M_MenuItemL(I, ValueI) or M_MenuItemR(I, ValueI) (will be sent for each selected file, but the last). Finally, command with single-selection syntax will be issued.
</td>
<td style="vertical-align: center; text-align: left width=16%;">
MenuItem(0, _editfield_value_)
if _editfield_value_ is not empty.
</td>
<td style="vertical-align: center; text-align: left width=16%;">
No command will be issued.
All menu items managed internally.
</td>
<tr>
</tbody>
</table>
</center>
<p>It is not recommended to create menu items with labels OK and ERROR since command which will be sent for such menu items will be
parsed incorrectly by the server.
<br>
</div>
<div id="sidebar">
<p class="section">Information</p>
<ul>
<li><a href="index.html">About</a></li>
<li><a href="dload.html">Download</a></li>
<li><a href="pre.html">Prerequisites</a></li>
<li><a href="docs.html">Documentation</a></li>
<li><a href="frontend.html">FrontEnds</a></li>
</ul>
<p class="section">Documentation</p>
<ul>
<li><a href="pre-setup.html">Before install</a></li>
<li><a href="install.html">Compilation and installation</a></li>
<li><a href="mode.html">Which mode to choose ?</a></li>
<li><a href="use.html">How to use anyRemote</a></li>
<li><a href="setup-server.html">Setup: Server mode</a></li>
<li><a href="setup-at.html">Setup: AT mode</a></li>
<li><a href="conf-server.html">Configurational file format: Server Mode</a></li>
<li><a href="conf-at.html">Configurational file format: AT Mode</a></li>
<li><a href="dcop.html">DCOP support</a></li>
<li><a href="web.html">Web interface</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
<p class="section">Server mode</p>
<ul>
<li><a href="setup-server.html">Setup: server mode</a></li>
<li><a href="conf-server.html">Configurational file format: server mode</a></li>
<li><a href="conf-server-ex.html">Configurational file examples: server mode</a></li>
</ul>
<p class="section">Set() command</p>
<ul>
<li><a href="set.html">Common usage of Set()</a></li>
<li><a href="set-icons.html">Set(icons, ...)</a></li>
<li><a href="set-fm.html">Set(filemanager, ...)</a></li>
<li><a href="set-list.html">Set(list, ...)</a></li>
<li><a href="set-menu.html">Set(menu, ...)</a></li>
<li><a href="set-parameter.html">Set(parameter, ...)</a></li>
<li><a href="set-text.html">Set(text, ...)</a></li>
<li><a href="set-window.html">Set(image, ...)</a></li>
</ul>
</div>
<div id="hdr">
<div id="logo"><a href="index.html"><img src="data/anyRemote.png" alt="Home"></a></div>
<!--div id="banner"><img src="data/anyRemote.png" alt=""></div-->
<p class="none"></p>
<div id="hdrNav">
<a href="index.html">About</a> ·
<a href="dload.html">Download</a> ·
<a href="docs.html">Documentation</a> ·
<a href="frontend.html">FrontEnds</a> ·
<a href="contacts.html">Contacts</a> ·
</div>
</div>
<div id="copyright">
Maintained by <a href="mailto:anyremote@mail.ru">anyRemote</a><br>
</div>
</body></html>
|