com.blackledge.david.tivo.multitasker
Class TickerTape.TickerTapeSegmentDefault

java.lang.Object
  extended by com.blackledge.david.tivo.multitasker.TickerTape.TickerTapeSegmentDefault
All Implemented Interfaces:
TickerTape.TickerTapeSegment
Enclosing interface:
TickerTape

public static class TickerTape.TickerTapeSegmentDefault
extends Object
implements TickerTape.TickerTapeSegment

Default implementation of TickerTapeSegment if you just have 1, 2, or 3 strings you want returned as is.

Version:
$Revision: 1.1 $

Constructor Summary
TickerTape.TickerTapeSegmentDefault(String content)
          A segment with no group or image.
TickerTape.TickerTapeSegmentDefault(String group, String content, String image, boolean isNotFinished)
          A segment with a group and optional image.
 
Method Summary
 String getContent()
          The actual content that will scroll across the screen.
 String getGroup()
          The optional grouping information above the scrolling ticker.
 String getImage()
          Return the URL for the image used for this ticker (optional)
 boolean isNotFinished()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TickerTape.TickerTapeSegmentDefault

public TickerTape.TickerTapeSegmentDefault(String content)
A segment with no group or image.

Parameters:
content -

TickerTape.TickerTapeSegmentDefault

public TickerTape.TickerTapeSegmentDefault(String group,
                                           String content,
                                           String image,
                                           boolean isNotFinished)
A segment with a group and optional image.

Parameters:
group -
content -
image - optional (null ok)
Method Detail

getContent

public String getContent()
Description copied from interface: TickerTape.TickerTapeSegment
The actual content that will scroll across the screen.

Specified by:
getContent in interface TickerTape.TickerTapeSegment
Returns:

getGroup

public String getGroup()
Description copied from interface: TickerTape.TickerTapeSegment
The optional grouping information above the scrolling ticker.

Specified by:
getGroup in interface TickerTape.TickerTapeSegment
Returns:

getImage

public String getImage()
Description copied from interface: TickerTape.TickerTapeSegment
Return the URL for the image used for this ticker (optional)

Specified by:
getImage in interface TickerTape.TickerTapeSegment
Returns:

toString

public String toString()
Overrides:
toString in class Object

isNotFinished

public boolean isNotFinished()
Specified by:
isNotFinished in interface TickerTape.TickerTapeSegment
Returns:
true if the next segment is a continuation of this one.