Set(menu ... ) commandThis command used to manage a menu associated with the screen of java client. FormatSet(menu,add|replace,_list_of_items_) or Set(menu,clean) |
![]() |
Command Set(menu,add ...) used to add items to the menu.
1=Set(menu,add,Item1,Item2,Item3) 2=ExecAndSet(menu,add,cat some_file.txt) 3=Timer(t1,5,0,menu,add,cat some_file.txt)
Command Set(menu,replace ...) used to replace items in the menu.
1=Set(menu,replace,Item1,Item2,Item3) 2=ExecAndSet(menu,add,cat some_file.txt) 3=Timer(t2,5,0,menu,add,cat some_file.txt)
There is a set of predefined 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:
Controls (main) screen: | List view screen: | Text view screen: | File manager screen: | Editfield screen: | Search screen: |
Exit |
Back |
Back Wrap On Wrap Off Jump Up Jump To End |
Back GoTo Copy Move MkDir Delete View Execute File info |
OK Back |
Connect Exit Search Enter address |
Command Set(menu,clean) used to remove all items from menu.
7=Set(menu,clean)
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 after others Set(...) commands.
Set(menu,replace ...) command is not superposition of Set(menu,clean) and Set(menu,add ...) commands, since predefined menu items will be added only during Set(menu,replace ...). As a results, it is possible to omit predefined menu items by executing Set(menu,clean) and Set(menu,add ...) commands.
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):
Controls (main) screen: | List view screen | Text view screen | File manager screen | Editfield screen | Search screen |
MenuItem for custom menu items. Predefined menu item (Exit) managed internally. | MenuItem(I, ValueI) | MenuItem for custom menu items. Predefined menu items except Back managed internally. |
single selection: MenuItemL(I, ValueI) if left panel or MenuItemR(I, ValueI) if right panel
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. |
MenuItem(0, _editfield_value_) if _editfield_value_ is not empty. | No command will be issued. All menu items managed internally. |
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.