Package com.uc4.communication
Class MessageSettings
java.lang.Object
com.uc4.communication.MessageSettings
This class represents the message window settings.
 These settings can be found in the User Interface - Options - Settings - Message Window
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumAutomatically open messages.
- 
Method SummaryModifier and TypeMethodDescriptiongetGroup()Returns the name of the user group if own messages are selected (EverythingInClient is set to false).intReturns the maximum number of messages in the Message Window.Returns whether the Message Window should open automatically for incoming information or error messages.booleanbooleanReturn the option "Display errors and Warnings only".booleanReturns the scope of subscribed messages.booleanbooleanReturns if unread messages should be shown after logon.voidsetAdministratorMessages(boolean administratorMessages) Defines if administrator messages should be shown in the message window.voidsetErrorAndWarningOnly(boolean errorAndWarningOnly) Sets the option "Display errors and Warnings only".voidsetEverythingInClient(boolean everythingInClient) Defines which messages should be shown in the message window.voidsetGroup(UC4ObjectName group) Sets the name of the user group if own messages are selected (EverythingInClient is set to false).voidsetMaxNumber(int maxNumber) Sets the maximum number of messages in the Message Window.voidsetOpenAutomatically(MessageSettings.OpenMessages openAutomatically) Specifies whether the Message Window should open automatically for incoming information or error messages.voidsetSecurityMessages(boolean securityMessages) Defines if security messages should be shown in the message window.voidsetShowUnreadAfterLogon(boolean showUnreadAfterLogon) Defines if unread messages should be shown after logon.
- 
Method Details- 
isErrorAndWarningOnlypublic boolean isErrorAndWarningOnly()Return the option "Display errors and Warnings only".- Returns:
- true if only errors and warnings are shown in the message window, false if information messages are also displayed
 
- 
setErrorAndWarningOnlypublic void setErrorAndWarningOnly(boolean errorAndWarningOnly) Sets the option "Display errors and Warnings only".- Parameters:
- errorAndWarningOnly- if true only errors and warnings are shown in the message window
 
- 
isEverythingInClientpublic boolean isEverythingInClient()Returns the scope of subscribed messages. if the parametereverythingInClientis set to false only own messages (and optionally messages of a defined user group) are displayed.- Returns:
- true if everything in the current client is shown in the message window, false for own + group messages only
 
- 
setEverythingInClientpublic void setEverythingInClient(boolean everythingInClient) Defines which messages should be shown in the message window. if the parametereverythingInClientis set to false only own messages (and optionally messages of a defined user group) are displayed.- Parameters:
- everythingInClient- true if everything in the current client should be shown in the message window, false for own + group messages only
 
- 
getGroupReturns the name of the user group if own messages are selected (EverythingInClient is set to false). If no user group is set an emptyUC4ObjectNameinstance is returned.- Returns:
- Name of the user group never null
 
- 
setGroupSets the name of the user group if own messages are selected (EverythingInClient is set to false).- Parameters:
- group- Name of the user group
 
- 
isAdministratorMessagespublic boolean isAdministratorMessages()- Returns:
- true if administrator messages are shown in the message window, false otherwise
 
- 
setAdministratorMessagespublic void setAdministratorMessages(boolean administratorMessages) Defines if administrator messages should be shown in the message window.- Parameters:
- administratorMessages- true if administrator messages should be shown in the message window, false otherwise
 
- 
isSecurityMessagespublic boolean isSecurityMessages()- Returns:
- true if security messages are shown in the message window, false otherwise
 
- 
setSecurityMessagespublic void setSecurityMessages(boolean securityMessages) Defines if security messages should be shown in the message window.- Parameters:
- securityMessages- true if security messages should be shown in the message window, false otherwise
 
- 
getOpenAutomaticallyReturns whether the Message Window should open automatically for incoming information or error messages.- Returns:
- Open message window condition
 
- 
setOpenAutomaticallySpecifies whether the Message Window should open automatically for incoming information or error messages.- Parameters:
- openAutomatically- Open message window condition
 
- 
getMaxNumberpublic int getMaxNumber()Returns the maximum number of messages in the Message Window.- Returns:
- Integer between 0 and 999
 
- 
setMaxNumberpublic void setMaxNumber(int maxNumber) Sets the maximum number of messages in the Message Window.- Parameters:
- maxNumber- Integer between 0 and 999
 
- 
isShowUnreadAfterLogonpublic boolean isShowUnreadAfterLogon()Returns if unread messages should be shown after logon.- Returns:
- true if unread messages should be shown, false otherwise
 
- 
setShowUnreadAfterLogonpublic void setShowUnreadAfterLogon(boolean showUnreadAfterLogon) Defines if unread messages should be shown after logon.- Parameters:
- showUnreadAfterLogon- true if unread messages should be shown, false otherwise
 
 
-