net.sourceforge.eclipsetrader.trading
Class AlertPlugin

java.lang.Object
  extended bynet.sourceforge.eclipsetrader.trading.AlertPlugin

public abstract class AlertPlugin
extends java.lang.Object

Base abstract class for alert plugins.


Constructor Summary
AlertPlugin()
           
 
Method Summary
abstract  boolean apply()
           
 java.lang.String getDescription()
           
 org.eclipse.swt.graphics.RGB getHilightBackground()
          Get the color to use to hilight the watchlist row background.
 org.eclipse.swt.graphics.RGB getHilightForeground()
          Get the color to use to hilight the watchlist row foreground.
 java.util.Date getLastSeen()
           
 Security getSecurity()
           
 void init(java.util.Map params)
           
 void init(Security security, Alert alert)
           
 void init(Security security, java.util.Map params)
           
 boolean isSeenToday()
           
 void setLastSeen(java.util.Date lastSeen)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertPlugin

public AlertPlugin()
Method Detail

getDescription

public java.lang.String getDescription()

init

public void init(Security security,
                 Alert alert)

init

public void init(Security security,
                 java.util.Map params)

init

public void init(java.util.Map params)

apply

public abstract boolean apply()

isSeenToday

public boolean isSeenToday()

getHilightBackground

public org.eclipse.swt.graphics.RGB getHilightBackground()
Get the color to use to hilight the watchlist row background.

Returns:
the hilight color, or null to use the default

getHilightForeground

public org.eclipse.swt.graphics.RGB getHilightForeground()
Get the color to use to hilight the watchlist row foreground.

Returns:
the hilight color, or null to use the default

getSecurity

public Security getSecurity()

getLastSeen

public java.util.Date getLastSeen()

setLastSeen

public void setLastSeen(java.util.Date lastSeen)