|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ora.jsp.beans.motd.MixedMessageBean
This is an example of a bean with one writeable property for selecting a message category and one readable property that cycles through messages in the selected category.
Field Summary | |
private java.lang.String |
category
|
private static int |
quoteIndex
|
private java.util.List |
quotes
|
private static int |
thoughtIndex
|
private java.util.List |
thoughts
|
Constructor Summary | |
MixedMessageBean()
Contructor that initializes the data structures that hold the messages. |
Method Summary | |
java.lang.String |
getMessage()
Returns a new message from the selected category every time it's called, cycling through all available messages. |
private void |
initMessageLists()
Creates and initalizes the data structures that hold the messages. |
void |
setCategory(java.lang.String category)
Sets the message category, one of "quotes" or "thoughts". |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static int quoteIndex
private static int thoughtIndex
private java.util.List quotes
private java.util.List thoughts
private java.lang.String category
Constructor Detail |
public MixedMessageBean()
Method Detail |
public void setCategory(java.lang.String category)
public java.lang.String getMessage()
private void initMessageLists()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |