|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.app.behavior.LyBehavior
leon.app.behavior.LyActionBehavior
leon.app.behavior.LyUserInputBehavior
leon.app.behavior.LyChatBehavior
public class LyChatBehavior
Behavior for chat action.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LyChatBehavior()
|
Method Summary | |
---|---|
void |
free()
Free this behavior. |
LyText |
getChatWindow()
|
LyConversation |
getConversation()
Conversation accessor. |
boolean |
handleDemand(LyController controller,
LyDemand demand)
Method invoked when a demand is sent to this listener. |
void |
initChatWindow(LyAreaController areaController)
Draw chat window. |
void |
questionAnswer(boolean result,
java.lang.Object clientData)
Answer to a askQuestion request. |
void |
sessionAdded(LyApplication application,
LyDataSession session)
Method called when a session is added to the application. |
void |
sessionLoggedIn(LyApplication application,
LyDataSession session,
LyObject user)
Method called when a user logged in a session. |
void |
sessionRemoved(LyApplication application,
LyDataSession session)
Method called when a session is removed from the application. |
void |
setConversation(LyConversation conversation)
Conversation setter. |
void |
setConversationTab(LyTab tab)
Set conversation tab. |
boolean |
startAction(LyAreaController areaController,
LyAction action)
Starts an action for the given controller. |
void |
tabRemoveSession(LySession session)
Remove session from conversation. |
void |
updateActorsLabel()
update Actors Label. |
void |
updateSessionStatus(LySession session,
boolean chat)
Update status of session. |
boolean |
validate(LyController controller,
LyParameterValues values)
Method invoked when the user validates the content of the input. |
void |
writeMessage(java.lang.String message,
LyObject user,
boolean serverMessage)
Write a message in chat window. |
Methods inherited from class leon.app.behavior.LyUserInputBehavior |
---|
cancel, close, userInputDemand |
Methods inherited from class leon.app.behavior.LyActionBehavior |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset |
Methods inherited from class leon.app.behavior.LyBehavior |
---|
getSession, init |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset |
Methods inherited from interface leon.app.behaviorinterface.LyBehaviorInterface |
---|
init |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyChatBehavior()
Method Detail |
---|
public void initChatWindow(LyAreaController areaController)
areaController
- The area.public void writeMessage(java.lang.String message, LyObject user, boolean serverMessage)
message
- The messageuser
- The userme
- true if i am the senderpublic boolean startAction(LyAreaController areaController, LyAction action)
LyActionBehavior
startAction
in interface LyActionBehaviorInterface
startAction
in class LyActionBehavior
areaController
- the current LyAreaController instanceaction
- the action that will be executed
public boolean validate(LyController controller, LyParameterValues values)
LyUserInputBehavior
validate
in class LyUserInputBehavior
controller
- the current LyUserInputController instancevalues
- values set by the user.
public boolean handleDemand(LyController controller, LyDemand demand)
LyBehavior
handleDemand
in interface LyBehaviorInterface
handleDemand
in class LyBehavior
controller
- controller that routed the demand.demand
- demand parameters sent by the view component.
public void questionAnswer(boolean result, java.lang.Object clientData)
LyQuestionAnswerInterface
questionAnswer
in interface LyQuestionAnswerInterface
result
- true if the user has clicked on Yes or OkLyQuestionAnswerInterface.questionAnswer(boolean, Object)
public void updateActorsLabel()
public void updateSessionStatus(LySession session, boolean chat)
session
- Sessionchat
- new status.public void tabRemoveSession(LySession session)
session
- session to removepublic void sessionAdded(LyApplication application, LyDataSession session)
LySessionListenerInterface
sessionAdded
in interface LySessionListenerInterface
application
- Application in which a session is added.session
- Session added to the application.LySessionListenerInterface.sessionAdded(LyApplication, LyDataSession)
public void sessionLoggedIn(LyApplication application, LyDataSession session, LyObject user)
LySessionListenerInterface
sessionLoggedIn
in interface LySessionListenerInterface
application
- Application in which a session is added.session
- Session added to the application.user
- User that logged in.LySessionListenerInterface.sessionLoggedIn(LyApplication, LyDataSession, LyObject)
public void sessionRemoved(LyApplication application, LyDataSession session)
LySessionListenerInterface
sessionRemoved
in interface LySessionListenerInterface
application
- Application in which a session is removed.session
- Session removed from the application.LySessionListenerInterface.sessionRemoved(LyApplication, LyDataSession)
public LyConversation getConversation()
public void setConversation(LyConversation conversation)
public void free()
free
in interface LyBehaviorInterface
free
in class LyBehavior
public void setConversationTab(LyTab tab)
tab
- Tabpublic LyText getChatWindow()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |