com.ora.jsp.beans.motd
Class CartoonBean

java.lang.Object
  extended bycom.ora.jsp.beans.motd.CartoonBean
All Implemented Interfaces:
java.io.Serializable

public class CartoonBean
extends java.lang.Object
implements java.io.Serializable

This is an example of a simple bean with one property that holds names of image files. Every time the property is read, a new file name is returned.

Version:
1.0
Author:
Hans Bergsten, Gefion software
See Also:
Serialized Form

Field Summary
private  java.util.List fileNames
           
private static int index
           
 
Constructor Summary
CartoonBean()
          Constructor that creates an internal data structure to hold the image file names.
 
Method Summary
 java.lang.String getFileName()
          Returns a new file name every time it's called, cycling through all available image files.
private  void initFileList()
          Creates and initializes a data structure to hold the image file names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

private static int index

fileNames

private java.util.List fileNames
Constructor Detail

CartoonBean

public CartoonBean()
Constructor that creates an internal data structure to hold the image file names.

Method Detail

getFileName

public java.lang.String getFileName()
Returns a new file name every time it's called, cycling through all available image files.


initFileList

private void initFileList()
Creates and initializes a data structure to hold the image file names.