|
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.impl.gui.utils.ConfigurationManager
public class ConfigurationManager
Cares about all common configurations. Storing and retrieving configuration values.
| Constructor Summary | |
|---|---|
ConfigurationManager()
|
|
| Method Summary | |
|---|---|
static Color |
getChatDefaultFontColor()
Returns the default chat font color. |
static String |
getChatDefaultFontFamily()
Returns the default chat font family. |
static int |
getChatDefaultFontSize()
Returns the default chat font size. |
static int |
getChatHistorySize()
Returns the number of messages from chat history that would be shown in the chat window. |
static String |
getChatRoomProperty(ProtocolProviderService protocolProvider,
String chatRoomId,
String property)
Returns the chat room property, saved through the ConfigurationService. |
static String |
getChatRoomStatus(ProtocolProviderService protocolProvider,
String chatRoomId)
Returns the last chat room status, saved through the ConfigurationService. |
static int |
getChatWriteAreaSize()
Returns the preferred height of the chat write area. |
static String |
getFactoryImplPackageName(ProtocolProviderFactory factory)
Returns the package name under which we would store information for the given factory. |
static ProtocolProviderService |
getLastCallConferenceProvider()
Returns the call conference provider used for the last conference call. |
static String |
getLastContactParent()
Return the "lastContactParent" property that was saved previously through the ConfigurationService. |
static String |
getSendFileLastDir()
Returns the last opened directory of the send file file chooser. |
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 |
isAddContactDisabled()
Returns true if the "ADD_CONTACT_DISABLED" property is
true, otherwise - returns false.. |
static boolean |
isAdvancedAccountConfigDisabled()
Returns true if the "ADVANCED_CONFIG_DISABLED" property is
true, otherwise - returns false.. |
static boolean |
isApplicationVisible()
Return TRUE if "showApplication" property is true, otherwise - return FALSE. |
static boolean |
isAutoPopupNewMessage()
Return TRUE if "autoPopupNewMessage" property is true, otherwise - return FALSE. |
static boolean |
isCallPanelShown()
Return TRUE if "showCallPanel" property is true, otherwise - return FALSE. |
static boolean |
isChatFontBold()
Returns the default chat font bold. |
static boolean |
isChatFontItalic()
Returns the default chat font italic. |
static boolean |
isChatFontUnderline()
Returns the default chat font underline. |
static boolean |
isChatStylebarVisible()
Returns true if the "isChatStylebarVisible" property is
true, otherwise - returns false.. |
static boolean |
isChatToolbarVisible()
Returns true if the "isChatToolbarVisible" property is
true, otherwise - returns false.. |
static boolean |
isContactListGroupCollapsed(String groupID)
Returns true if the group given by groupID is collapsed or false otherwise. |
static boolean |
isCreateGroupDisabled()
Returns true if the "CREATE_GROUP_DISABLED" property is
true, otherwise - returns false.. |
static boolean |
isGoToChatroomDisabled()
Returns true if the "GO_TO_CHATROOM_DISABLED" property is
true, otherwise - returns 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 |
isMoveContactConfirmationRequested()
Returns TRUE if the "isMoveContactConfirmationRequested" 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 |
isQuitWarningShown()
Return TRUE if "quitWarningShown" property is true, otherwise - return FALSE. |
static boolean |
isRemoveContactDisabled()
Returns true if the "REMOVE_CONTACT_DISABLED" property is
true, otherwise - returns false. |
static boolean |
isSendTypingNotifications()
Return TRUE if "sendTypingNotifications" property is true, otherwise - return FALSE. |
static boolean |
isShowOffline()
Return TRUE if "showOffline" property is true, otherwise - return FALSE. |
static boolean |
isShowSmileys()
Returns true if the "isShowSmileys" property is
true, otherwise - returns false.. |
static boolean |
isTransparentWindowEnabled()
Returns true if transparent windows are enabled,
false otherwise. |
static boolean |
isWindowDecorated()
Returns true if the "isWindowDecorated" property is
true, otherwise - returns false.. |
static void |
loadGuiConfigurations()
Loads all user interface configurations. |
static void |
saveChatRoom(ProtocolProviderService protocolProvider,
String oldChatRoomId,
String newChatRoomId,
String newChatRoomName)
Saves a chat room through the ConfigurationService. |
static void |
setAdvancedAccountConfigDisabled(boolean disabled)
Sets the advanced account config disabled property. |
static void |
setApplicationVisible(boolean isVisible)
Updates the "showApplication" property through the ConfigurationService. |
static void |
setChatDefaultFontColor(Color fontColor)
Sets the default font color. |
static void |
setChatDefaultFontFamily(String fontFamily)
Sets the default font family. |
static void |
setChatDefaultFontSize(int fontSize)
Sets the default font size. |
static void |
setChatFontIsBold(boolean isBold)
Sets the default isBold property. |
static void |
setChatFontIsItalic(boolean isItalic)
Sets the default isItalic property. |
static void |
setChatFontIsUnderline(boolean isUnderline)
Sets the default isUnderline property. |
static void |
setChatStylebarVisible(boolean isVisible)
Updates the "isChatStylebarVisible" property through the ConfigurationService. |
static void |
setChatToolbarVisible(boolean isVisible)
Updates the "isChatToolbarVisible" property through the ConfigurationService. |
static void |
setChatWriteAreaSize(int size)
Updates the "net.java.sip.communicator.impl.gui.CHAT_WRITE_AREA_SIZE" property through the ConfigurationService. |
static void |
setContactListGroupCollapsed(String groupID,
boolean isCollapsed)
Stores the last group status for the given groupID. |
static void |
setLastCallConferenceProvider(ProtocolProviderService protocolProvider)
Sets the call conference provider used for the last conference call. |
static void |
setLastContactParent(String groupName)
Updates the "lastContactParent" property through the ConfigurationService. |
static void |
setMoveContactConfirmationRequested(boolean isRequested)
Updates the "isMoveContactQuestionEnabled" property through the ConfigurationService. |
static void |
setQuitWarningShown(boolean isWarningShown)
Updates the "showAppQuitWarning" property through the ConfigurationService. |
static void |
setSendFileLastDir(String lastDir)
Updates the "SEND_FILE_LAST_DIR" property through the ConfigurationService. |
static void |
setShowCallPanel(boolean isCallPanelShown)
Updates the "showCallPanel" property through the ConfigurationService. |
static void |
setShowOffline(boolean isShowOffline)
Updates the "showOffline" property through the ConfigurationService. |
static void |
setShowSmileys(boolean isVisible)
Updates the "isShowSmileys" property through the ConfigurationService. |
static void |
setTransparentWindowEnabled(boolean isTransparent)
Updates the "isTransparentWindowEnabled" property through the ConfigurationService. |
static void |
setWindowTransparency(int transparency)
Sets the transparency value for all transparent windows. |
static void |
updateChatRoomProperty(ProtocolProviderService protocolProvider,
String chatRoomId,
String property,
String value)
Updates the value of a chat room property through the ConfigurationService. |
static void |
updateChatRoomStatus(ProtocolProviderService protocolProvider,
String chatRoomId,
String chatRoomStatus)
Updates the status of the chat room through the ConfigurationService. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigurationManager()
| Method Detail |
|---|
public static void loadGuiConfigurations()
public static boolean isAutoPopupNewMessage()
public static boolean isCallPanelShown()
public static boolean isShowOffline()
public static boolean isApplicationVisible()
public static boolean isQuitWarningShown()
public static boolean isSendTypingNotifications()
public static boolean isMoveContactConfirmationRequested()
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 boolean isWindowDecorated()
true if the "isWindowDecorated" property is
true, otherwise - returns false..
true if the "isWindowDecorated" property is
true, otherwise - returns false.public static boolean isChatToolbarVisible()
true if the "isChatToolbarVisible" property is
true, otherwise - returns false..
true if the "isChatToolbarVisible" property is
true, otherwise - returns false.public static boolean isChatStylebarVisible()
true if the "isChatStylebarVisible" property is
true, otherwise - returns false..
true if the "isChatStylebarVisible" property is
true, otherwise - returns false.public static boolean isShowSmileys()
true if the "isShowSmileys" property is
true, otherwise - returns false..
true if the "isShowSmileys" property is
true, otherwise - returns false.public static boolean isAddContactDisabled()
true if the "ADD_CONTACT_DISABLED" property is
true, otherwise - returns false..
true if the "ADD_CONTACT_DISABLED" property is
true, otherwise - returns false.public static boolean isCreateGroupDisabled()
true if the "CREATE_GROUP_DISABLED" property is
true, otherwise - returns false..
true if the "CREATE_GROUP_DISABLED" property is
true, otherwise - returns false.public static boolean isGoToChatroomDisabled()
true if the "GO_TO_CHATROOM_DISABLED" property is
true, otherwise - returns false..
true if the "GO_TO_CHATROOM_DISABLED" property is
true, otherwise - returns false.public static boolean isRemoveContactDisabled()
true if the "REMOVE_CONTACT_DISABLED" property is
true, otherwise - returns false.
true if the "REMOVE_CONTACT_DISABLED" property is
true, otherwise - returns false.public static boolean isAdvancedAccountConfigDisabled()
true if the "ADVANCED_CONFIG_DISABLED" property is
true, otherwise - returns false..
true if the "ADVANCED_CONFIG_DISABLED" property is
true, otherwise - returns false.public static String getChatDefaultFontFamily()
public static int getChatDefaultFontSize()
public static Color getChatDefaultFontColor()
public static boolean isChatFontBold()
public static boolean isChatFontItalic()
public static boolean isChatFontUnderline()
public static void setAdvancedAccountConfigDisabled(boolean disabled)
disabled - the new value to setpublic static String getSendMessageCommand()
public static String getLastContactParent()
public static ProtocolProviderService getLastCallConferenceProvider()
public static int getChatHistorySize()
public static int getChatWriteAreaSize()
public static boolean isTransparentWindowEnabled()
true if transparent windows are enabled,
false otherwise.
true if transparent windows are enabled,
false otherwise.public static int getWindowTransparency()
public static String getSendFileLastDir()
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 setWindowTransparency(int transparency)
transparency - the transparency value for all transparent windows.public static void setShowOffline(boolean isShowOffline)
isShowOffline - true to indicate that the
offline users should be shown, false otherwise.public static void setShowCallPanel(boolean isCallPanelShown)
isCallPanelShown - true to indicate that the
call panel should be shown, false otherwise.public static void setApplicationVisible(boolean isVisible)
isVisible - true to indicate that the
application should be shown, false otherwise.public static void setQuitWarningShown(boolean isWarningShown)
isWarningShown - indicates if the message warning the user that the
application would not be closed if she clicks the X button would be
shown again.public static void setLastContactParent(String groupName)
groupName - the group name of the selected group when adding
last contactpublic static void setMoveContactConfirmationRequested(boolean isRequested)
isRequested - indicates if a confirmation would be requested
from user during the move contact process.public static void setTransparentWindowEnabled(boolean isTransparent)
isTransparent - indicates if the transparency is enabled in the
application.public static void setChatToolbarVisible(boolean isVisible)
isVisible - indicates if the chat toolbar is visible.public static void setShowSmileys(boolean isVisible)
isVisible - indicates if the smileys are visiblepublic static void setChatStylebarVisible(boolean isVisible)
isVisible - indicates if the chat stylebar is visible.public static void setChatWriteAreaSize(int size)
size - the new size to setpublic static void setSendFileLastDir(String lastDir)
lastDir - last download directorypublic static void setLastCallConferenceProvider(ProtocolProviderService protocolProvider)
protocolProvider - the call conference provider used for the last
conference callpublic static void setChatDefaultFontFamily(String fontFamily)
fontFamily - the default font family namepublic static void setChatDefaultFontSize(int fontSize)
fontSize - the default font sizepublic static void setChatFontIsBold(boolean isBold)
isBold - indicates if the default chat font is boldpublic static void setChatFontIsItalic(boolean isItalic)
isItalic - indicates if the default chat font is italicpublic static void setChatFontIsUnderline(boolean isUnderline)
isUnderline - indicates if the default chat font is underlinepublic static void setChatDefaultFontColor(Color fontColor)
fontColor - the default font color
public static void saveChatRoom(ProtocolProviderService protocolProvider,
String oldChatRoomId,
String newChatRoomId,
String newChatRoomName)
protocolProvider - the protocol provider to which the chat room
belongsoldChatRoomId - the old identifier of the chat roomnewChatRoomId - the new identifier of the chat roomnewChatRoomName - the new chat room name
public static void updateChatRoomStatus(ProtocolProviderService protocolProvider,
String chatRoomId,
String chatRoomStatus)
protocolProvider - the protocol provider to which the chat room
belongschatRoomId - the identifier of the chat room to updatechatRoomStatus - the new status of the chat room
public static void updateChatRoomProperty(ProtocolProviderService protocolProvider,
String chatRoomId,
String property,
String value)
protocolProvider - the protocol provider to which the chat room
belongschatRoomId - the identifier of the chat room to updateproperty - the name of the property of the chat roomvalue - the value of the property if null, property will be removed
public static String getChatRoomProperty(ProtocolProviderService protocolProvider,
String chatRoomId,
String property)
protocolProvider - the protocol provider, to which the chat room
belongschatRoomId - the identifier of the chat roomproperty - the property name, saved through the
ConfigurationService.
public static String getChatRoomStatus(ProtocolProviderService protocolProvider,
String chatRoomId)
protocolProvider - the protocol provider, to which the chat room
belongschatRoomId - the identifier of the chat room
public static void setContactListGroupCollapsed(String groupID,
boolean isCollapsed)
groupID - the identifier of the groupisCollapsed - indicates if the group is collapsed or expandedpublic static boolean isContactListGroupCollapsed(String groupID)
groupID - the identifier of the group
public static String getFactoryImplPackageName(ProtocolProviderFactory factory)
factory - the ProtocolProviderFactory, which package name
we're looking for
|
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 | |||||||||