|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ora.jsp.beans.motd.CartoonBean
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.
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 |
private static int index
private java.util.List fileNames
Constructor Detail |
public CartoonBean()
Method Detail |
public java.lang.String getFileName()
private void initFileList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |