|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.model.GUIState
Holds the entire visual state of the system. Although this class is Serializable, it cannot be used directly when deserialzed. Before it can be used, it must have it transport toolkit set. The GUIStates returned from a "set" method on a deserialized GUIState with no toolkit will result in a GUIState that does not contain all of the information required to complete the deserialization process, and is useless in the system.
| Field Summary |
| Constructor Summary | |
GUIState(TransportToolkit tt)
Creates a new gui state with no values set. |
|
| Method Summary | |
void |
fetchMessage(TransportToolkit tt)
Gets the actual message from the store after deserialization. |
Person |
findPerson()
Returns the person who sent the current message. |
static GUIState |
fromString(java.lang.String source)
Converts the output of toString back to a GUIstate object. |
java.io.Serializable |
get(java.lang.String key)
Gets the value associated with the given key. |
long |
getMask()
Returns the bit mask of this state |
javax.mail.internet.MimeMessage |
getMessage()
Returns the current message. |
StringValueMap |
getProps()
|
boolean |
isTrue(long mask)
Returns true if the current value contains all of the bits from mask. |
boolean |
isTrue(long requiredMask,
long prohibitedMask)
Returns true if the current value contains all bits from requiredMask and no bits from prohibitedMask. |
GUIState |
put(java.lang.String key,
java.io.Serializable value)
Adds the given key value pair. |
GUIState |
setMask(long mask)
Returns a new GUIstate with mask added and all other bits removed. |
GUIState |
setMask(long addMask,
long removeMask)
Returns a new GUIState with addMask added and removeMask removed. |
GUIState |
setMessage(javax.mail.internet.MimeMessage m)
Returns a new GUIState with the given message. |
static java.lang.String[] |
setStrings(java.lang.String[] target,
java.lang.String[] add,
java.lang.String[] remove)
Adds and deletes strings from an array such as the String array for ACTIVE_COMMANDS. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public GUIState(TransportToolkit tt)
| Method Detail |
public static java.lang.String[] setStrings(java.lang.String[] target,
java.lang.String[] add,
java.lang.String[] remove)
target - the array to be altered.remove - array of items to remove from target, if present.add - array of items to add to target, if absent.
This array WILL BE ALTERED in the course of the method.
Therefore, if the array is needed for later processing,
this method should be given a copy.
java.lang.NullPointerException - if any of the entries in any array are null
or add or remove are null.
public void fetchMessage(TransportToolkit tt)
throws javax.mail.MessagingException
javax.mail.MessagingException
public GUIState setMask(long addMask,
long removeMask)
public GUIState setMask(long mask)
public GUIState setMessage(javax.mail.internet.MimeMessage m)
public GUIState put(java.lang.String key,
java.io.Serializable value)
public java.io.Serializable get(java.lang.String key)
public boolean isTrue(long mask)
public boolean isTrue(long requiredMask,
long prohibitedMask)
public javax.mail.internet.MimeMessage getMessage()
public Person findPerson()
public long getMask()
public StringValueMap getProps()
public java.lang.String toString()
public static GUIState fromString(java.lang.String source)
java.lang.IllegalArgumentException - if the source is not a legal GUIState string.
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.