Venice 0.7beta

org.mov.table
Class WatchScreen

java.lang.Object
  extended by org.mov.table.WatchScreen

public class WatchScreen
extends java.lang.Object

Representation of a watch screen. A watch screen contains a list of stock symbols that the user has grouped together to monitor. Each watch screen also has its own name.

Author:
Andrew Leppard
See Also:
Symbol

Constructor Summary
WatchScreen(java.lang.String name)
          Create a new watch screen with the given name.
 
Method Summary
 void addSymbol(Symbol symbol)
          Add a symbol to this watch screen.
 void addSymbols(java.util.List symbols)
          Add a list of symbols to this watch screen.
 java.lang.String getName()
          Get the name of the watcch screen.
 java.util.List getSymbols()
          Return the list of stock symbols in this watch screen.
 void removeAllSymbols(java.util.List symbols)
          Remove all the given symbols from this watch screen.
 void removeSymbol(Symbol symbol)
          Remove the given symbol from this watch screen.
 void setName(java.lang.String name)
          Set the name of the watch screen to the new name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatchScreen

public WatchScreen(java.lang.String name)
Create a new watch screen with the given name.

Parameters:
name - the name of the watch screen.
Method Detail

getName

public java.lang.String getName()
Get the name of the watcch screen.

Returns:
the name of the watch screen.

setName

public void setName(java.lang.String name)
Set the name of the watch screen to the new name.

Parameters:
name - the new name of the watch screen.

getSymbols

public java.util.List getSymbols()
Return the list of stock symbols in this watch screen.

Returns:
list of symbols
See Also:
Symbol

addSymbol

public void addSymbol(Symbol symbol)
Add a symbol to this watch screen.

Parameters:
symbol - the symbol to add.

addSymbols

public void addSymbols(java.util.List symbols)
Add a list of symbols to this watch screen.

Parameters:
symbols - the list of symbols to add.

removeSymbol

public void removeSymbol(Symbol symbol)
Remove the given symbol from this watch screen.

Parameters:
symbol - the symbol to remove.

removeAllSymbols

public void removeAllSymbols(java.util.List symbols)
Remove all the given symbols from this watch screen.

Parameters:
symbols - the list of symbols to remove.
See Also:
Symbol

Venice 0.7beta