SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.utils
Class Constants

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.utils.Constants

public class Constants
extends Object

All look and feel related constants are stored here.

Author:
Yana Stamcheva

Field Summary
static String AIM
          The AIM protocol.
static String AWAY_STATUS
          Indicates that the user is away.
static Color BORDER_COLOR
          A color between blue and gray used to paint some borders.
static Color CONTACT_LIST_GROUP_BG_COLOR
          The color used to paint the background of contact list groups.
static Color CONTACT_LIST_GROUP_BG_GRADIENT_COLOR
          The end color used to paint a gradient mouse over background of some components.
static String DEFAULT_STYLE_PATH
          The default path, where chat window styles could be found.
static String DO_NOT_DISTURB_STATUS
          Indicates that the user is connected and eager to communicate.
static Font FONT
          The default Font object used through this ui implementation.
static String FREE_FOR_CHAT_STATUS
          Indicates that the user is connected and eager to communicate.
static String GIBBERISH
          The Gibberish protocol.
static Color GRADIENT_DARK_COLOR
          The start color used to paint a gradient mouse over background of some components.
static Color GRADIENT_LIGHT_COLOR
          The end color used to paint a gradient mouse over background of some components.
static Color HISTORY_IN_CALL_COLOR
          The color used to paint the background of an incoming call history record.
static Color HISTORY_OUT_CALL_COLOR
          The color used to paint the background of an outgoing call history record.
static String ICQ
          The ICQ protocol.
static String JABBER
          The Jabber protocol.
static Color LIST_SELECTION_BORDER_COLOR
          A color between blue and gray (darker than the other one), used to paint some borders.
static String MSN
          The MSN protocol.
static String OFFLINE_STATUS
          Indicates that the user is disconnected.
static String ONLINE_STATUS
          Indicates that the user is connected and ready to communicate.
static boolean REMOVE_CONTACT_ASK
          Indicates whether to ask for confirmation when user tries to delete a contact.
static boolean REMOVE_GROUP_ASK
          Indicates whether to ask for confirmation when user tries to delete a contact.
static Color SELECTED_COLOR
          The end color used to paint a gradient selected background of some components.
static String SIP
          The SIP protocol.
static String SKYPE
          The Skype protocol.
static String YAHOO
          The Yahoo protocol.
 
Constructor Summary
Constants()
           
 
Method Summary
static BufferedImage getStatusIcon(PresenceStatus status)
          Returns the image corresponding to the given presence status.
static BufferedImage getStatusIcon(String status)
          Returns the image corresponding to the given status.
static boolean isSpecialChar(int charCode)
          Checks if the given char is in the list of application special chars.
static void loadAdiumStyle()
          Loads a chat window style.
static void loadSimpleStyle(StyleSheet styleSheet, Font defaultFont)
          Temporary method to load the css style used in the chat window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONLINE_STATUS

public static final String ONLINE_STATUS
Indicates that the user is connected and ready to communicate.

See Also:
Constant Field Values

OFFLINE_STATUS

public static final String OFFLINE_STATUS
Indicates that the user is disconnected.

See Also:
Constant Field Values

AWAY_STATUS

public static final String AWAY_STATUS
Indicates that the user is away.

See Also:
Constant Field Values

FREE_FOR_CHAT_STATUS

public static final String FREE_FOR_CHAT_STATUS
Indicates that the user is connected and eager to communicate.

See Also:
Constant Field Values

DO_NOT_DISTURB_STATUS

public static final String DO_NOT_DISTURB_STATUS
Indicates that the user is connected and eager to communicate.

See Also:
Constant Field Values

REMOVE_CONTACT_ASK

public static boolean REMOVE_CONTACT_ASK
Indicates whether to ask for confirmation when user tries to delete a contact.


REMOVE_GROUP_ASK

public static boolean REMOVE_GROUP_ASK
Indicates whether to ask for confirmation when user tries to delete a contact.


HISTORY_IN_CALL_COLOR

public static final Color HISTORY_IN_CALL_COLOR
The color used to paint the background of an incoming call history record.


HISTORY_OUT_CALL_COLOR

public static final Color HISTORY_OUT_CALL_COLOR
The color used to paint the background of an outgoing call history record.


SELECTED_COLOR

public static final Color SELECTED_COLOR
The end color used to paint a gradient selected background of some components.


GRADIENT_DARK_COLOR

public static final Color GRADIENT_DARK_COLOR
The start color used to paint a gradient mouse over background of some components.


GRADIENT_LIGHT_COLOR

public static final Color GRADIENT_LIGHT_COLOR
The end color used to paint a gradient mouse over background of some components.


BORDER_COLOR

public static final Color BORDER_COLOR
A color between blue and gray used to paint some borders.


LIST_SELECTION_BORDER_COLOR

public static final Color LIST_SELECTION_BORDER_COLOR
A color between blue and gray (darker than the other one), used to paint some borders.


CONTACT_LIST_GROUP_BG_COLOR

public static final Color CONTACT_LIST_GROUP_BG_COLOR
The color used to paint the background of contact list groups.


CONTACT_LIST_GROUP_BG_GRADIENT_COLOR

public static final Color CONTACT_LIST_GROUP_BG_GRADIENT_COLOR
The end color used to paint a gradient mouse over background of some components.


FONT

public static final Font FONT
The default Font object used through this ui implementation.


ICQ

public static final String ICQ
The ICQ protocol.

See Also:
Constant Field Values

MSN

public static final String MSN
The MSN protocol.

See Also:
Constant Field Values

AIM

public static final String AIM
The AIM protocol.

See Also:
Constant Field Values

YAHOO

public static final String YAHOO
The Yahoo protocol.

See Also:
Constant Field Values

JABBER

public static final String JABBER
The Jabber protocol.

See Also:
Constant Field Values

SKYPE

public static final String SKYPE
The Skype protocol.

See Also:
Constant Field Values

GIBBERISH

public static final String GIBBERISH
The Gibberish protocol.

See Also:
Constant Field Values

SIP

public static final String SIP
The SIP protocol.

See Also:
Constant Field Values

DEFAULT_STYLE_PATH

public static final String DEFAULT_STYLE_PATH
The default path, where chat window styles could be found.

See Also:
Constant Field Values
Constructor Detail

Constants

public Constants()
Method Detail

isSpecialChar

public static boolean isSpecialChar(int charCode)
Checks if the given char is in the list of application special chars.

Parameters:
charCode - The char code.

getStatusIcon

public static BufferedImage getStatusIcon(PresenceStatus status)
Returns the image corresponding to the given presence status.

Parameters:
status - The presence status.
Returns:
the image corresponding to the given presence status.

getStatusIcon

public static BufferedImage getStatusIcon(String status)
Returns the image corresponding to the given status.

Parameters:
status - ONLINE_STATUS or OFFLINE_STATUS
Returns:
the image corresponding to the given status.

loadAdiumStyle

public static void loadAdiumStyle()
Loads a chat window style.


loadSimpleStyle

public static void loadSimpleStyle(StyleSheet styleSheet,
                                   Font defaultFont)
Temporary method to load the css style used in the chat window.

Parameters:
styleSheet - style sheet
defaultFont - default font

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.