Prev
Next

Set(...) / ExecAndSet(...) / Timer (...) commands

This command used to control and customize GUI of Java client. It is possible to change:
  • caption of screen
  • title and status fields
  • arrange icons from predefined icon set,
  • change background and foreground color,
  • change font size
  • change icon layouts (skins)
  • use internal vibrator of the phone
  • set fullscreen mode
  • set debug mode
This command also could be used to:
  • show text on the screen of cell phone
  • show list on the screen of cell phone
  • run external commands and use results
    of it execution to set GUI of Java client
  • run external commands periodically

Set(...) command is used to set various parameters of GUI of Java client with exact comands specification.

ExecAndSet(..) do the same thing, but it uses the results of executed command as as part of command which will be sent to Java client.

Timer(...) do the same thing as ExecAndSet(...), but it could beexecuted periodically.

For details see examples below.

There are a lot of ways to use this command:

Set(icons, ...)

Format: SetI(icons,caption,1,name1,2,name2...,*,name11,#,name12)

where nameX specifies desired action. This command sets the caption of Java client window and reports to Java client to dynamically change shown icons.

if You do not want to change the caption of Java client window then it is possible to write:

Set(title, ...)

Format: Set(title, new_title)

This command sets the title field of Java client

It is possible to add line break characters to the text. It could be done with "\n".

Set(status, ...)

Format: Set(status, new_status) This command sets the status field of Java client

Set(bg ...)

Format: Set(bg,R,G,B)

Where R, G, B values should be beetween 0 and 255. This command sets the background color of Java client. For example to set background to blue:

The simples way to determine appropriare RGB value is to run KolourPaint program and then open Select Color dialog.

Set(fg ...)

Format: Set(fg,R,G,B)

Where R, G, B values should be beetween 0 and 255. This command sets the foreground color of Java client. For example to set foreground to blue:

Set(font ...)

Format: Set(font,small|medium|large)

This command sets the font size for title and status fields of Java client. Java realization in the phone could not support some of font sizes. On SE phones medium font looks the same as large one. For example to set small font size:

Set(volume ...)

Format: Set(volume,X)

Whare X should be between 0 and 100. This command sets value of volume bar of Java client (it needs to issue Set(skin,....volume) command before to make volume bar visible):

Set(vibrate)

Format: Set(vibrate)

This command switches on internal vibrator of the phone (if exists) for 1/2 sec.

Set(text, ...)

Format: Set(text,add|replace|show|clear|close|fg|bg|font, _data_)

This command shows help test on the screen of cell phone. See detailed description here.

Set(list ...)

Format: Set(list,add|replace|clear|show|close|menu|fg|bg|font, _data_)

This command used to create and manage lists. It could be useful to manage player playlists or to browse directory structure. See detailed description here.

Set(menu ...)

Format: Set(menu,add|replace|clear[,_data_])

This command used to manage menues. Custom made menu could be added to each screen of Java Client. See detailed description here.

Set(skin ...)

Format: Set(skin,default|bottomline|bottomarc[,keypad_only|joystick_only][,ticker|noticker],[volume])

This command used to choose icon layout ("skin") to show. There are 3 icon layouts defined: default, bottomline and bottomarc. If keypad_only parameter specified, then it will be possible to send commands only by pressing numeric keys. If joystick_only parameter is specified, then it will be possible to send commands only by pressing joystick central button. If ticker parameter is specified then ticker (running text) will be used to show title field instead of static text. If noticker parameter is specified then title field will be shown as static text. If volume parameter is specified then volume bar will be shown. In bottomline and bottomarc icon layouts if there will be not enough space on phone screen to show all icons, then some of them will be omitted.

A note about Nokia: Nokia-6021 does not send events from Select (push joystick) button in graphic mode. It is possible to use Send (green) button instead.

Set(filemanager ...)

Format: Set(filemanager,add|replace,left|right,_list_of_files)

This command used to show file manager window. It looks like MC and allows to do basic file operations. See detailed description here.

Set(fullscreen ...)

Format: Set(fullscreen,on|off)

Set fullscreen mode on or off.

Set(editfield ...)

Format: Set(editfield,caption_value,label_value,init_value)

Shows edit field on phones screen. When used press OK, then message label_value(0,_entered_value_) will be sent to server.

For example, if user enters, say - new_line - and press OK, then message Parametes(0,new_line) will be sent.

Set(debug ...)

Format: Set(debug,on|off)

Switch on/off debug information printing in Java Client. Useful for debugging.

Set(upload ...)

Format: Set(upload,_icon_name_,_ARGB_array_16x16_)

Upload icon to the phone.

To upload icons use cfg-example/Server-style/iconUpload.cfg configuration file.

Only 16x16 PNG icons could be uploaded. There is no direct way to remove uploaded icons nor to show the list of uploaded icons. All uploaded icons will be removed if Java Client will be removed from the phone.





Prev
Next
Home