Prev
Next

Set(list ... ) command

This command used to create and manage lists which will be shown on the phone screen. This could be useful to manage player playlists or to browse directory structure.

Format: Set(list,add|replace|clear|show|close|menu, title, _list_or_menu_data_)

Commands Set(list,add|replace ...) used to add or replace content of the existing list.

The word SAME was used instead of title not to change existing list title.

Commands Set(list,show|clean) used to show or clean existing list.

Commands Set(list,close) used to close existing list. If list is closed, then main window of Java Client will be shown.

Commands Set(list,menu ...) used to create a menu associated with the list. For example, it is possible to create list which will contains list of files. Then it is possible to create menu with the items, say "Choose", "File info" (see screenshot).

If user chooses ListItemX in list and then chooses MenuItemY in menu then command MenuItemY(index_of_ListItemX_in_list,ListItemX) will be issued. According to the screenshot above the Choose(9,ChangeLog) command will be issued.

There are several things which needs to be pointed out:

To handle events on server side it needs to use lines like:

The list element value and the list element index will be substituted with the $(Param) and $(Index) variables:

It is possible to overcome substitution of the $(Param) and $(Index) variables with explicit specification of event. For example if Choose(1,Reboot) event is send from Java Client, then two next lines will be equivalent and each of them will match that event.

As it was written above, "Back" menu item is added automatically, but it is user responsibility to handle corresponding events on server side. In general it could be done like this:


Prev
Next
Home