de.beamertool.util.configuration
Class Settings

java.lang.Object
  extended by de.beamertool.util.configuration.Settings
All Implemented Interfaces:
SettingsMBean, Serializable

public class Settings
extends Object
implements Serializable, SettingsMBean

Contains all settings used by beamer-tool and beamer-tool_admin

Author:
ocm-zeeman
See Also:
Serialized Form

Constructor Summary
Settings(String fileName)
          Constructs an Settings-object with the properties from the given filename and beamer-tool's default for unset properties.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
           
 boolean equals(Object obj)
           
 Color getBackgroundColor()
           
 Collection<String> getBadWordList()
           
 Integer getChatAlignment()
           
 Integer getChatHeight()
           
 String getCommercialPath()
           
 String getCommercialPreText()
           
 Integer getCommercialRotatio()
           
 Collection<String> getCommercialText()
           
 Integer getCommercialTextInterval()
           
 Color getCubeColor()
           
static SettingsMBean getDefaultSettings()
          Returns a Settings-Object with all propteries set to beamer-tool's defaults
 Integer getGsmDeviceBaudrate()
           
 String getGsmDevicePin()
           
 String getGsmDevicePort()
           
 MobileType getGsmDeviceType()
           
 Integer getHeight()
           
 String getLogFileName()
           
 MessagePresentation getMessagePresentation()
           
 Color getNotificationColor()
           
 Font getNotificationFont()
           
 String getPicturePath()
           
 String getRemoteControlHost()
           
 Integer getRemoteControlPort()
           
 String getRemotePassword()
           
 Integer getSlideshowInterval()
           
 Map<String,String> getSmileyReplaceStrings()
           
 Integer getText3dCount()
           
 MessageOrientation getText3dOrientation()
           
 Color getTextBackgroundColor1()
           
 Color getTextBackgroundColor2()
           
 Color getTextColor1()
           
 Color getTextColor2()
           
 Font getTextFont()
           
 Color getTitleBackgroundColor()
           
 Color getTitleColor()
           
 Font getTitleFont()
           
 String getTitleText()
           
 Integer getWidth()
           
 int hashCode()
           
 Boolean isChatOnTop()
           
 Boolean isDeleteMessages()
           
 Boolean isFilterMessages()
           
 Boolean isGsmDeviceVirtual()
           
 Boolean isOnlySlideshow()
           
 Boolean isSlideshow3d()
           
 Boolean isSlieshow3d()
           
 Boolean isSms2chat()
           
 Boolean isText3d()
           
 void removePropertyChangeListener(PropertyChangeListener l)
           
 void saveSettings(String fileName)
          Saves this settings object to the given file
 void setBackgroundColor(Color backgroundColor)
           
 void setBadWordList(Collection<String> badWordList)
           
 void setChatAlignment(Integer chatAlignment)
           
 void setChatHeight(Integer chatHeight)
           
 void setChatOnTop(Boolean chatOnTop)
           
 void setCommercialPath(String commercialPath)
           
 void setCommercialPreText(String commercialPreText)
           
 void setCommercialRotatio(Integer commercialRotatio)
           
 void setCommercialText(Collection<String> commercialText)
           
 void setCommercialTextInterval(Integer commercialTextInterval)
           
 void setCubeColor(Color cubeColor)
           
 void setDeleteMessages(Boolean deleteMessages)
           
 void setFilterMessages(Boolean filterMessages)
           
 void setGsmDeviceBaudrate(Integer gsmDeviceBaudrate)
           
 void setGsmDevicePin(String gsmDevicePin)
           
 void setGsmDevicePort(String gsmDevicePort)
           
 void setGsmDeviceType(MobileType gsmDeviceType)
           
 void setGsmDeviceVirtual(Boolean gsmDeviceVirtual)
           
 void setHeight(Integer height)
           
 void setLogFileName(String logFileName)
           
 void setMessagePresentation(MessagePresentation messagePresentation)
           
 void setNotificationColor(Color notificationColor)
           
 void setNotificationFont(Font notificationFont)
           
 void setOnlySlideshow(Boolean onlySlideshow)
           
 void setPicturePath(String picturePath)
           
 void setRemoteControlHost(String remoteControlHost)
           
 void setRemoteControlPort(Integer remoteControlPort)
           
 void setRemotePassword(String remotePassword)
           
 void setSlideshow3d(Boolean slideshow3d)
           
 void setSlideshowInterval(Integer slideshowInterval)
           
 void setSlieshow3d(Boolean slieshow3d)
           
 void setSmileyReplaceStrings(Map<String,String> smileyReplaceStrings)
           
 void setSms2chat(Boolean sms2chat)
           
 void setText3d(Boolean text3d)
           
 void setText3dCount(Integer text3dCount)
           
 void setText3dOrientation(MessageOrientation text3dOrientation)
           
 void setTextBackgroundColor1(Color textBackgroundColor1)
           
 void setTextBackgroundColor2(Color textBackgroundColor2)
           
 void setTextColor1(Color textColor1)
           
 void setTextColor2(Color textColor2)
           
 void setTextFont(Font textFont)
           
 void setTitleBackgroundColor(Color titleBackgroundColor)
           
 void setTitleColor(Color titleColor)
           
 void setTitleFont(Font titleFont)
           
 void setTitleText(String titleText)
           
 void setWidth(Integer width)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Settings

public Settings(String fileName)
Constructs an Settings-object with the properties from the given filename and beamer-tool's default for unset properties.

Parameters:
fileName -
Method Detail

getDefaultSettings

public static SettingsMBean getDefaultSettings()
Returns a Settings-Object with all propteries set to beamer-tool's defaults

Returns:
- beamer-tool's defaults

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener l)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getBackgroundColor

public Color getBackgroundColor()
Specified by:
getBackgroundColor in interface SettingsMBean

getBadWordList

public Collection<String> getBadWordList()
Specified by:
getBadWordList in interface SettingsMBean

getChatAlignment

public Integer getChatAlignment()
Specified by:
getChatAlignment in interface SettingsMBean

getChatHeight

public Integer getChatHeight()
Specified by:
getChatHeight in interface SettingsMBean

getCommercialPath

public String getCommercialPath()
Specified by:
getCommercialPath in interface SettingsMBean

getCommercialPreText

public String getCommercialPreText()
Specified by:
getCommercialPreText in interface SettingsMBean

getCommercialRotatio

public Integer getCommercialRotatio()
Specified by:
getCommercialRotatio in interface SettingsMBean

getCommercialText

public Collection<String> getCommercialText()
Specified by:
getCommercialText in interface SettingsMBean

getCommercialTextInterval

public Integer getCommercialTextInterval()
Specified by:
getCommercialTextInterval in interface SettingsMBean

getCubeColor

public Color getCubeColor()
Specified by:
getCubeColor in interface SettingsMBean

getGsmDeviceBaudrate

public Integer getGsmDeviceBaudrate()
Specified by:
getGsmDeviceBaudrate in interface SettingsMBean

getGsmDevicePin

public String getGsmDevicePin()
Specified by:
getGsmDevicePin in interface SettingsMBean

getGsmDevicePort

public String getGsmDevicePort()
Specified by:
getGsmDevicePort in interface SettingsMBean

getGsmDeviceType

public MobileType getGsmDeviceType()
Specified by:
getGsmDeviceType in interface SettingsMBean

getHeight

public Integer getHeight()
Specified by:
getHeight in interface SettingsMBean

getLogFileName

public String getLogFileName()
Specified by:
getLogFileName in interface SettingsMBean

getMessagePresentation

public MessagePresentation getMessagePresentation()
Specified by:
getMessagePresentation in interface SettingsMBean

getNotificationColor

public Color getNotificationColor()
Specified by:
getNotificationColor in interface SettingsMBean

getNotificationFont

public Font getNotificationFont()
Specified by:
getNotificationFont in interface SettingsMBean

getPicturePath

public String getPicturePath()
Specified by:
getPicturePath in interface SettingsMBean

getRemoteControlHost

public String getRemoteControlHost()
Specified by:
getRemoteControlHost in interface SettingsMBean

getRemoteControlPort

public Integer getRemoteControlPort()
Specified by:
getRemoteControlPort in interface SettingsMBean

getRemotePassword

public String getRemotePassword()
Specified by:
getRemotePassword in interface SettingsMBean

getSlideshowInterval

public Integer getSlideshowInterval()
Specified by:
getSlideshowInterval in interface SettingsMBean

getSmileyReplaceStrings

public Map<String,String> getSmileyReplaceStrings()
Specified by:
getSmileyReplaceStrings in interface SettingsMBean

getText3dCount

public Integer getText3dCount()
Specified by:
getText3dCount in interface SettingsMBean

getText3dOrientation

public MessageOrientation getText3dOrientation()
Specified by:
getText3dOrientation in interface SettingsMBean

getTextBackgroundColor1

public Color getTextBackgroundColor1()
Specified by:
getTextBackgroundColor1 in interface SettingsMBean

getTextBackgroundColor2

public Color getTextBackgroundColor2()
Specified by:
getTextBackgroundColor2 in interface SettingsMBean

getTextColor1

public Color getTextColor1()
Specified by:
getTextColor1 in interface SettingsMBean

getTextColor2

public Color getTextColor2()
Specified by:
getTextColor2 in interface SettingsMBean

getTextFont

public Font getTextFont()
Specified by:
getTextFont in interface SettingsMBean

getTitleBackgroundColor

public Color getTitleBackgroundColor()
Specified by:
getTitleBackgroundColor in interface SettingsMBean

getTitleColor

public Color getTitleColor()
Specified by:
getTitleColor in interface SettingsMBean

getTitleFont

public Font getTitleFont()
Specified by:
getTitleFont in interface SettingsMBean

getTitleText

public String getTitleText()
Specified by:
getTitleText in interface SettingsMBean

getWidth

public Integer getWidth()
Specified by:
getWidth in interface SettingsMBean

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isChatOnTop

public Boolean isChatOnTop()
Specified by:
isChatOnTop in interface SettingsMBean

isDeleteMessages

public Boolean isDeleteMessages()
Specified by:
isDeleteMessages in interface SettingsMBean

isFilterMessages

public Boolean isFilterMessages()
Specified by:
isFilterMessages in interface SettingsMBean

isGsmDeviceVirtual

public Boolean isGsmDeviceVirtual()
Specified by:
isGsmDeviceVirtual in interface SettingsMBean

isOnlySlideshow

public Boolean isOnlySlideshow()
Specified by:
isOnlySlideshow in interface SettingsMBean

isSlideshow3d

public Boolean isSlideshow3d()
Specified by:
isSlideshow3d in interface SettingsMBean

isSlieshow3d

public Boolean isSlieshow3d()
Specified by:
isSlieshow3d in interface SettingsMBean

isSms2chat

public Boolean isSms2chat()
Specified by:
isSms2chat in interface SettingsMBean

isText3d

public Boolean isText3d()
Specified by:
isText3d in interface SettingsMBean

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener l)

saveSettings

public void saveSettings(String fileName)
                  throws IOException,
                         SaveSettingsException
Saves this settings object to the given file

Parameters:
fileName -
Throws:
IOException
SaveSettingsException

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)
Specified by:
setBackgroundColor in interface SettingsMBean

setBadWordList

public void setBadWordList(Collection<String> badWordList)
Specified by:
setBadWordList in interface SettingsMBean

setChatAlignment

public void setChatAlignment(Integer chatAlignment)
Specified by:
setChatAlignment in interface SettingsMBean

setChatHeight

public void setChatHeight(Integer chatHeight)
Specified by:
setChatHeight in interface SettingsMBean

setChatOnTop

public void setChatOnTop(Boolean chatOnTop)
Specified by:
setChatOnTop in interface SettingsMBean

setCommercialPath

public void setCommercialPath(String commercialPath)
Specified by:
setCommercialPath in interface SettingsMBean

setCommercialPreText

public void setCommercialPreText(String commercialPreText)
Specified by:
setCommercialPreText in interface SettingsMBean

setCommercialRotatio

public void setCommercialRotatio(Integer commercialRotatio)
Specified by:
setCommercialRotatio in interface SettingsMBean

setCommercialText

public void setCommercialText(Collection<String> commercialText)
Specified by:
setCommercialText in interface SettingsMBean

setCommercialTextInterval

public void setCommercialTextInterval(Integer commercialTextInterval)
Specified by:
setCommercialTextInterval in interface SettingsMBean

setCubeColor

public void setCubeColor(Color cubeColor)
Specified by:
setCubeColor in interface SettingsMBean

setDeleteMessages

public void setDeleteMessages(Boolean deleteMessages)
Specified by:
setDeleteMessages in interface SettingsMBean

setFilterMessages

public void setFilterMessages(Boolean filterMessages)
Specified by:
setFilterMessages in interface SettingsMBean

setGsmDeviceBaudrate

public void setGsmDeviceBaudrate(Integer gsmDeviceBaudrate)
Specified by:
setGsmDeviceBaudrate in interface SettingsMBean

setGsmDevicePin

public void setGsmDevicePin(String gsmDevicePin)
Specified by:
setGsmDevicePin in interface SettingsMBean

setGsmDevicePort

public void setGsmDevicePort(String gsmDevicePort)
Specified by:
setGsmDevicePort in interface SettingsMBean

setGsmDeviceType

public void setGsmDeviceType(MobileType gsmDeviceType)
Specified by:
setGsmDeviceType in interface SettingsMBean

setGsmDeviceVirtual

public void setGsmDeviceVirtual(Boolean gsmDeviceVirtual)
Specified by:
setGsmDeviceVirtual in interface SettingsMBean

setHeight

public void setHeight(Integer height)
Specified by:
setHeight in interface SettingsMBean

setLogFileName

public void setLogFileName(String logFileName)
Specified by:
setLogFileName in interface SettingsMBean

setMessagePresentation

public void setMessagePresentation(MessagePresentation messagePresentation)
Specified by:
setMessagePresentation in interface SettingsMBean

setNotificationColor

public void setNotificationColor(Color notificationColor)
Specified by:
setNotificationColor in interface SettingsMBean

setNotificationFont

public void setNotificationFont(Font notificationFont)
Specified by:
setNotificationFont in interface SettingsMBean

setOnlySlideshow

public void setOnlySlideshow(Boolean onlySlideshow)
Specified by:
setOnlySlideshow in interface SettingsMBean

setPicturePath

public void setPicturePath(String picturePath)
Specified by:
setPicturePath in interface SettingsMBean

setRemoteControlHost

public void setRemoteControlHost(String remoteControlHost)
Specified by:
setRemoteControlHost in interface SettingsMBean

setRemoteControlPort

public void setRemoteControlPort(Integer remoteControlPort)
Specified by:
setRemoteControlPort in interface SettingsMBean

setRemotePassword

public void setRemotePassword(String remotePassword)
Specified by:
setRemotePassword in interface SettingsMBean

setSlideshow3d

public void setSlideshow3d(Boolean slideshow3d)
Specified by:
setSlideshow3d in interface SettingsMBean

setSlideshowInterval

public void setSlideshowInterval(Integer slideshowInterval)
Specified by:
setSlideshowInterval in interface SettingsMBean

setSlieshow3d

public void setSlieshow3d(Boolean slieshow3d)
Specified by:
setSlieshow3d in interface SettingsMBean

setSmileyReplaceStrings

public void setSmileyReplaceStrings(Map<String,String> smileyReplaceStrings)
Specified by:
setSmileyReplaceStrings in interface SettingsMBean

setSms2chat

public void setSms2chat(Boolean sms2chat)
Specified by:
setSms2chat in interface SettingsMBean

setText3d

public void setText3d(Boolean text3d)
Specified by:
setText3d in interface SettingsMBean

setText3dCount

public void setText3dCount(Integer text3dCount)
Specified by:
setText3dCount in interface SettingsMBean

setText3dOrientation

public void setText3dOrientation(MessageOrientation text3dOrientation)
Specified by:
setText3dOrientation in interface SettingsMBean

setTextBackgroundColor1

public void setTextBackgroundColor1(Color textBackgroundColor1)
Specified by:
setTextBackgroundColor1 in interface SettingsMBean

setTextBackgroundColor2

public void setTextBackgroundColor2(Color textBackgroundColor2)
Specified by:
setTextBackgroundColor2 in interface SettingsMBean

setTextColor1

public void setTextColor1(Color textColor1)
Specified by:
setTextColor1 in interface SettingsMBean

setTextColor2

public void setTextColor2(Color textColor2)
Specified by:
setTextColor2 in interface SettingsMBean

setTextFont

public void setTextFont(Font textFont)
Specified by:
setTextFont in interface SettingsMBean

setTitleBackgroundColor

public void setTitleBackgroundColor(Color titleBackgroundColor)
Specified by:
setTitleBackgroundColor in interface SettingsMBean

setTitleColor

public void setTitleColor(Color titleColor)
Specified by:
setTitleColor in interface SettingsMBean

setTitleFont

public void setTitleFont(Font titleFont)
Specified by:
setTitleFont in interface SettingsMBean

setTitleText

public void setTitleText(String titleText)
Specified by:
setTitleText in interface SettingsMBean

setWidth

public void setWidth(Integer width)
Specified by:
setWidth in interface SettingsMBean