jasp.webcom
Class ContentRotator
java.lang.Object
|
+--jasp.webcom.ContentRotator
- public class ContentRotator
- extends java.lang.Object
The Content Rotator component creates a ContentRotator object that
automatically rotates HTML content strings on a Web page. Each time
a user requests the Web page, the object displays a new HTML content
string based upon information that you specify in a Content Schedule File.
Because the content strings can contain HTML tags, you can display any
type of content that HTML can represent: text, images, or hyperlinks.
For example, you can use this component to rotate through a list of
daily quotations or hyperlinks, or to change text and background colors
each time the Web page is opened.
Constructor Summary |
ContentRotator()
Creates a ContentRotator object that automatically rotates HTML content strings on a Web page. |
Method Summary |
java.lang.String |
ChooseContent(java.lang.String filename)
Retrieves and displays a content string. |
void |
GetAllContent(java.lang.String filename)
Retrieves and displays all the content strings in the Content Schedule file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentRotator
public ContentRotator()
- Creates a ContentRotator object that automatically rotates HTML content strings on a Web page.
ChooseContent
public java.lang.String ChooseContent(java.lang.String filename)
- Retrieves and displays a content string.
- Parameters:
filename
- Specifies the location of the Content Schedule file- Returns:
- Returns an HTML content string from the Content Schedule file.
GetAllContent
public void GetAllContent(java.lang.String filename)
- Retrieves and displays all the content strings in the Content Schedule file.
- Parameters:
filename
- Specifies the location of the Content Schedule file.