|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.plugin.generalconfig.ConfigurationManager
public class ConfigurationManager
| Field Summary | |
|---|---|
static String |
CTRL_ENTER_COMMAND
|
static String |
ENTER_COMMAND
|
| Constructor Summary | |
|---|---|
ConfigurationManager()
|
|
| Method Summary | |
|---|---|
static String[] |
getAvailableSslProtocols()
|
static int |
getChatHistorySize()
Returns the number of messages from chat history that would be shown in the chat window. |
static int |
getClientPort()
|
static int |
getClientSecurePort()
|
static Locale |
getCurrentLanguage()
|
static String[] |
getEnabledSslProtocols()
|
static String |
getPopupHandlerConfig()
Gets the configuration handler which is currently in use. |
static String |
getSendMessageCommand()
Return the "sendMessageCommand" property that was saved previously through the ConfigurationService. |
static int |
getWindowTransparency()
Returns the transparency value for all transparent windows. |
static boolean |
isAutoPopupNewMessage()
Return TRUE if "autoPopupNewMessage" property is true, otherwise - return FALSE. |
static boolean |
isHistoryLoggingEnabled()
Returns true if the "isHistoryLoggingEnabled" property is
true, otherwise - returns false. |
static boolean |
isHistoryShown()
Returns true if the "isHistoryShown" property is
true, otherwise - returns false. |
static boolean |
isLeaveChatRoomOnWindowCloseEnabled()
Returns true if the "isLeaveChatRoomOnWindowCloseEnabled"
property is true, otherwise - returns false. |
static boolean |
isMultiChatWindowEnabled()
Returns true if the "isMultiChatWindowEnabled" property is
true, otherwise - returns false. |
static boolean |
isNormalizePhoneNumber()
Returns true if phone numbers should be normalized,
false otherwise. |
static boolean |
isSendTypingNotifications()
Return TRUE if "sendTypingNotifications" property is true, otherwise - return FALSE. |
static boolean |
isTransparentWindowEnabled()
Returns true if transparent windows are enabled,
false otherwise. |
static void |
loadGuiConfigurations()
|
static void |
setAutoPopupNewMessage(boolean autoPopupNewMessage)
Updates the "autoPopupNewMessage" property. |
static void |
setChatHistorySize(int historySize)
Updates the "chatHistorySize" property through the ConfigurationService. |
static void |
setClientPort(int port)
|
static void |
setClientSecurePort(int port)
|
static void |
setEnabledSslProtocols(String[] enabledProtocols)
|
static void |
setHistoryLoggingEnabled(boolean isHistoryLoggingEnabled)
Updates the "isHistoryLoggingEnabled" property through the ConfigurationService. |
static void |
setHistoryShown(boolean isHistoryShown)
Updates the "isHistoryShown" property through the ConfigurationService. |
static void |
setLanguage(Locale locale)
|
static void |
setLeaveChatRoomOnWindowClose(boolean isLeaveChatroomOnWindowClose)
Updates the "isLeaveChatroomOnWindowClose" property through the ConfigurationService. |
static void |
setMultiChatWindowEnabled(boolean isMultiChatWindowEnabled)
Updates the "isMultiChatWindowEnabled" property through the ConfigurationService. |
static void |
setNormalizePhoneNumber(boolean isNormalize)
Updates the "NORMALIZE_PHONE_NUMBER" property. |
static void |
setPopupHandlerConfig(String handler)
Saves the popup handler choice made by the user. |
static void |
setSendMessageCommand(String newMessageCommand)
Updates the "sendMessageCommand" property through the ConfigurationService. |
static void |
setSendTypingNotifications(boolean isSendTypingNotif)
Updates the "sendTypingNotifications" property through the ConfigurationService. |
static void |
setTransparentWindowEnabled(boolean isTransparentWindowEnabled)
|
static void |
setWindowTransparency(int windowTransparency)
Updates the "WINDOW_TRANSPARENCY" property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ENTER_COMMAND
public static final String CTRL_ENTER_COMMAND
| Constructor Detail |
|---|
public ConfigurationManager()
| Method Detail |
|---|
public static void loadGuiConfigurations()
public static boolean isAutoPopupNewMessage()
public static boolean isSendTypingNotifications()
public static boolean isMultiChatWindowEnabled()
true if the "isMultiChatWindowEnabled" property is
true, otherwise - returns false. Indicates to the user
interface whether the chat window could contain multiple chats or just
one chat.
true if the "isMultiChatWindowEnabled" property is
true, otherwise - returns false.public static boolean isLeaveChatRoomOnWindowCloseEnabled()
true if the "isLeaveChatRoomOnWindowCloseEnabled"
property is true, otherwise - returns false. Indicates to
the user interface whether when closing the chat window we would leave
the chat room.
true if the "isLeaveChatRoomOnWindowCloseEnabled"
property is true, otherwise - returns false.public static boolean isHistoryLoggingEnabled()
true if the "isHistoryLoggingEnabled" property is
true, otherwise - returns false. Indicates to the user
interface whether the history logging is enabled.
true if the "isHistoryLoggingEnabled" property is
true, otherwise - returns false.public static boolean isHistoryShown()
true if the "isHistoryShown" property is
true, otherwise - returns false. Indicates to the user
whether the history is shown in the chat window.
true if the "isHistoryShown" property is
true, otherwise - returns false.public static int getChatHistorySize()
public static String getSendMessageCommand()
public static String getPopupHandlerConfig()
public static void setPopupHandlerConfig(String handler)
handler - the handler which will be usedpublic static boolean isTransparentWindowEnabled()
true if transparent windows are enabled,
false otherwise.
true if transparent windows are enabled,
false otherwise.public static void setTransparentWindowEnabled(boolean isTransparentWindowEnabled)
public static boolean isNormalizePhoneNumber()
true if phone numbers should be normalized,
false otherwise.
true if phone numbers should be normalized,
false otherwise.public static void setNormalizePhoneNumber(boolean isNormalize)
isNormalize - indicates to the user interface whether all dialed
phone numbers should be normalizedpublic static int getWindowTransparency()
public static void setWindowTransparency(int windowTransparency)
windowTransparency - indicates to the user interface what is the
window transparency valuepublic static void setAutoPopupNewMessage(boolean autoPopupNewMessage)
autoPopupNewMessage - indicates to the user interface whether new
messages should be opened and bring to front.public static void setSendTypingNotifications(boolean isSendTypingNotif)
isSendTypingNotif - true to indicate that typing
notifications are enabled, false otherwise.public static void setSendMessageCommand(String newMessageCommand)
newMessageCommand - the command used to send a message ( it could be
ENTER_COMMAND or CTRL_ENTER_COMMAND)public static void setMultiChatWindowEnabled(boolean isMultiChatWindowEnabled)
isMultiChatWindowEnabled - indicates if the chat window could
contain multiple chats or only one chat.public static void setLeaveChatRoomOnWindowClose(boolean isLeaveChatroomOnWindowClose)
isLeaveChatroomOnWindowClose - indicates whether
to leave chat room on window close.public static void setHistoryLoggingEnabled(boolean isHistoryLoggingEnabled)
isHistoryLoggingEnabled - indicates if the history logging is
enabled.public static void setHistoryShown(boolean isHistoryShown)
isHistoryShown - indicates if the message history is
shownpublic static void setChatHistorySize(int historySize)
historySize - indicates if the history logging is
enabled.public static Locale getCurrentLanguage()
public static void setLanguage(Locale locale)
public static void setClientPort(int port)
public static void setClientSecurePort(int port)
public static int getClientPort()
public static int getClientSecurePort()
public static String[] getAvailableSslProtocols()
public static String[] getEnabledSslProtocols()
public static void setEnabledSslProtocols(String[] enabledProtocols)
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||