|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mb.session.Conversation
public class Conversation
Converations is whole time the app runs the same object instance witch travels from one controller to another.
Field Summary | |
---|---|
static java.lang.String |
CANCEL_CONTROLLER
cancel controller key |
static java.lang.String |
CONTROLLER
controller key |
static java.lang.String |
MIDLET
midlet key |
Constructor Summary | |
---|---|
Conversation()
|
Method Summary | |
---|---|
void |
addNewMap()
resize current map and adds one new map at the end of array |
void |
clear()
see init() |
java.lang.Object |
getAttribute(java.lang.Class key)
Get attribute from last map in map array |
java.lang.Object |
getAttribute(java.lang.String key)
Get attribute from last map in map array |
java.lang.Class |
getCancelController()
Returns cancel controller class from current conversation |
java.lang.Object |
getController()
return actual controller from conversation |
long |
getId()
id getter |
MicroMIDlet |
getMIDlet()
return actual midlet from conversation |
static Conversation |
init()
initialize Conversation and sets random ID |
void |
removeAttribute(java.lang.String formKey)
Remove attribute from current map conversation |
void |
removeLastMap()
resize current map and substracts one map from the end of array |
void |
setAttribute(java.lang.Class key,
java.lang.Object value)
Set attribute to last map in map array |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Set attribute to last map in map array |
void |
setId(long newId)
id setter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CANCEL_CONTROLLER
public static final java.lang.String CONTROLLER
public static final java.lang.String MIDLET
Constructor Detail |
---|
public Conversation()
Method Detail |
---|
public static Conversation init()
public void clear()
public void addNewMap()
public void removeLastMap()
public long getId()
public void setId(long newId)
newId
- public void setAttribute(java.lang.String key, java.lang.Object value)
key
- value
- public void setAttribute(java.lang.Class key, java.lang.Object value)
key
- value
- public java.lang.Object getAttribute(java.lang.Class key)
key
-
public java.lang.Object getAttribute(java.lang.String key)
key
-
public java.lang.Class getCancelController()
public void removeAttribute(java.lang.String formKey)
formKey
- public MicroMIDlet getMIDlet()
public java.lang.Object getController()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |