org.overlord.sramp.ui.client.services.growl
Class Growl

java.lang.Object
  extended by org.overlord.sramp.ui.client.services.growl.Growl

public class Growl
extends Object

Models a single notification being tracked by the growl service.

Author:
eric.wittmann@redhat.com

Constructor Summary
Growl(int id, String title, String message)
          Constructor.
 
Method Summary
 com.google.gwt.user.client.Timer getAliveTimer()
           
 com.google.gwt.animation.client.Animation getAutoCloseAnimation()
           
 GrowlDialog getDialog()
           
 com.google.gwt.user.client.Timer getFadeTimer()
           
 int getGrowlIndex()
           
 int getId()
           
 String getMessage()
           
 Date getTimestamp()
           
 String getTitle()
           
 void setAliveTimer(com.google.gwt.user.client.Timer aliveTimer)
           
 void setAutoCloseAnimation(com.google.gwt.animation.client.Animation autoCloseAnimation)
           
 void setDialog(GrowlDialog dialog)
           
 void setFadeTimer(com.google.gwt.user.client.Timer fadeTimer)
           
 void setGrowlIndex(int growlIndex)
           
 void setId(int id)
           
 void setMessage(String message)
           
 void setTimestamp(Date timestamp)
           
 void setTitle(String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Growl

public Growl(int id,
             String title,
             String message)
Constructor.

Parameters:
id -
title -
message -
Method Detail

getTimestamp

public Date getTimestamp()
Returns:
the timestamp

getTitle

public String getTitle()
Returns:
the title

getMessage

public String getMessage()
Returns:
the message

getAliveTimer

public com.google.gwt.user.client.Timer getAliveTimer()
Returns:
the aliveTimer

getFadeTimer

public com.google.gwt.user.client.Timer getFadeTimer()
Returns:
the fadeTimer

setTimestamp

public void setTimestamp(Date timestamp)
Parameters:
timestamp - the timestamp to set

setTitle

public void setTitle(String title)
Parameters:
title - the title to set

setMessage

public void setMessage(String message)
Parameters:
message - the message to set

setAliveTimer

public void setAliveTimer(com.google.gwt.user.client.Timer aliveTimer)
Parameters:
aliveTimer - the aliveTimer to set

setFadeTimer

public void setFadeTimer(com.google.gwt.user.client.Timer fadeTimer)
Parameters:
fadeTimer - the fadeTimer to set

getDialog

public GrowlDialog getDialog()
Returns:
the dialog

setDialog

public void setDialog(GrowlDialog dialog)
Parameters:
dialog - the dialog to set

getId

public int getId()
Returns:
the id

setId

public void setId(int id)
Parameters:
id - the id to set

getAutoCloseAnimation

public com.google.gwt.animation.client.Animation getAutoCloseAnimation()
Returns:
the autoCloseAnimation

setAutoCloseAnimation

public void setAutoCloseAnimation(com.google.gwt.animation.client.Animation autoCloseAnimation)
Parameters:
autoCloseAnimation - the autoCloseAnimation to set

getGrowlIndex

public int getGrowlIndex()
Returns:
the growlIndex

setGrowlIndex

public void setGrowlIndex(int growlIndex)
Parameters:
growlIndex - the growlIndex to set


Copyright © 2012-2013 JBoss, a division of Red Hat. All Rights Reserved.