Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.notificationconfiguration
Class NotificationEntry

java.lang.Object
  extended by net.java.sip.communicator.plugin.notificationconfiguration.NotificationEntry

public class NotificationEntry
extends Object

The NotificationEntry is a class which defines the different entries in the NotificationConfiguration JTable. It stores the configuration parameters of an entry.

Author:
Alexandre Maillard

Constructor Summary
NotificationEntry()
          Empty class constructor.
NotificationEntry(boolean enabled, boolean program, String programFile, boolean popup, boolean sound, String soundFile, String event)
          Class constructor with five parameters.
 
Method Summary
 boolean getEnabled()
          Method which returns the state of the notification.
 String getEvent()
          Method which returns the description of the notification.
 boolean getPopup()
          Method which returns true if one systray popup is executed.
 boolean getProgram()
          Method which returns true if one program is executed.
 String getProgramFile()
          Method which returns the program's name which is executed.
 boolean getSound()
          Method which returns if one sound is executed.
 String getSoundFile()
          Method which returns the sound file name which is executed.
 void setEnabled(boolean enabled)
          Method which assigns the notification state.
 void setEvent(String event)
          Method which assigns the notification's description.
 void setPopup(boolean popup)
          Method which set a boolean to true if a systray popup is executed for the notification.
 void setProgram(boolean program)
          Method which set a boolean to true if a program is executed for the notification.
 void setProgramFile(String programFile)
          Method which assigns the program filename for the notification.
 void setSound(boolean sound)
          Method which set a boolean to true a sound is playing for the notification.
 void setSoundFile(String soundFile)
          Method which assigns the sound file name for the notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationEntry

public NotificationEntry()
Empty class constructor. Creates a new instance of NotificationsTableEntry.


NotificationEntry

public NotificationEntry(boolean enabled,
                         boolean program,
                         String programFile,
                         boolean popup,
                         boolean sound,
                         String soundFile,
                         String event)
Class constructor with five parameters. Creates a new instance of NotificationsTableEntry.

Parameters:
enabled - assigns the value of _enabled to this.enabled.
program - assigns the value of _program to this.program.
programFile - assigns the value of _programFile to this.programFile.
popup - assigns the value of _popup to this.popup.
sound - assigns the value of _sound to this.sound.
soundFile - assigns the value of _soundFile to this.soundFile.
event - assigns the value of _event to this.event.
Method Detail

getEnabled

public boolean getEnabled()
Method which returns the state of the notification.

Returns:
boolean enable/disable.

getProgram

public boolean getProgram()
Method which returns true if one program is executed.

Returns:
boolean true if a programm is executed

getProgramFile

public String getProgramFile()
Method which returns the program's name which is executed.

Returns:
String representing the program file name.

getPopup

public boolean getPopup()
Method which returns true if one systray popup is executed.

Returns:
boolean true if a popup is executed.

getSound

public boolean getSound()
Method which returns if one sound is executed.

Returns:
boolean true if a sound is playing.

getSoundFile

public String getSoundFile()
Method which returns the sound file name which is executed.

Returns:
String representing the sound file name.

getEvent

public String getEvent()
Method which returns the description of the notification.

Returns:
String representing the notification's description.

setEnabled

public void setEnabled(boolean enabled)
Method which assigns the notification state.

Parameters:
enabled - true if the notification is enabled.

setProgram

public void setProgram(boolean program)
Method which set a boolean to true if a program is executed for the notification.

Parameters:
program - boolean for the program's presence.

setProgramFile

public void setProgramFile(String programFile)
Method which assigns the program filename for the notification.

Parameters:
programFile - String representing the program file name.

setPopup

public void setPopup(boolean popup)
Method which set a boolean to true if a systray popup is executed for the notification.

Parameters:
popup - boolean for the presence of popup.

setSound

public void setSound(boolean sound)
Method which set a boolean to true a sound is playing for the notification.

Parameters:
sound - boolean for the presence of a sound.

setSoundFile

public void setSoundFile(String soundFile)
Method which assigns the sound file name for the notification.

Parameters:
soundFile - String for the sound file name.

setEvent

public void setEvent(String event)
Method which assigns the notification's description.

Parameters:
event - String to assigns a description of a notification.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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