KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > DefaultUserPref


1 import java.util.Properties JavaDoc;
2
3 /** Default user preference properties.*/
4 public final class DefaultUserPref extends Properties JavaDoc{
5     
6     /** Constructs a default property object.*/
7     public DefaultUserPref(){
8         super();
9         setProperty("lang","auto"); // Language requested - auto to use default locale setting
10
setProperty("laf","metal"); // look and feel. metal for JFC, or native to use native L&F
11
setProperty("warn_unencrypted","true"); // if we warn about sending unencrypted messages
12

13         setProperty("alert_online","true"); //whether the main window shows and focuses when a contact goes on line
14
setProperty("alert_new_message","true");
15         setProperty("alert_new_chat","true");
16         
17         setProperty("sound_alert_online","default"); //default, none or url to sound file
18
setProperty("sound_alert_new_message","default");
19         setProperty("sound_alert_new_chat","default");
20         
21         setProperty("emoticons","true"); //parse emoticons
22
/* Double click - action to be taken when user double clicks on a contact in the contact list
23         * default - chat if the contact is online or available for chat, otherwise send a message
24         * chat - open chat panel
25         * message - send a message */

26         setProperty("double_click","default");
27         setProperty("remember_window_size","true");
28         setProperty("contact_list_location","left");// where the contact list is - left or right
29
setProperty("muc_list_location","right"); // where the particpent list is - left or right
30

31         // In Service Discovery, assume that an entity starting with jud. is a jabber user directory
32
// if we are unable to get info about the entity. Default is true.
33
setProperty("assume_jud","true");
34         // Colours & message font
35
setProperty("text_colour","#000000");
36         setProperty("text_font","sans-serif");
37         setProperty("text_size","3");
38         setProperty("background_colour","#FFFFFF");
39         // quit to quit the application, hide minimises the main window.
40
// Default is to hide
41
setProperty("close_action","hide");
42         // After how long of inactivity we may
43
// automatically set the users presence to away
44
// and/or clear the passphrase
45
setProperty("idle_time","10");
46         //if we automatically set the users presence to away
47
setProperty("auto_away","true");
48         // If we clear the keypair
49
setProperty("clear_keypair","false");
50     }
51 }
Popular Tags