|
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.LyPanelBehavior
leon.app.behavior.LyTableBehavior
leon.app.behavior.LySocialBehavior
public class LySocialBehavior
This class implements the default behavior for a social controller.
Field Summary | |
---|---|
static java.lang.String |
PHOTO
|
Fields inherited from class leon.app.behavior.LyTableBehavior |
---|
__VERSION, MAX_ROW_HEIGHT |
Fields inherited from interface leon.view.setinterface.LyQuestionAnswerInterface |
---|
__VERSION |
Constructor Summary | |
---|---|
LySocialBehavior()
Default constructor. |
Method Summary | |
---|---|
void |
free()
Free this behavior. |
LyWorkSpace |
getContent(LyTableController tableController,
LyWorkSpace context)
Gets the content of the table corresponding of the given context. |
LyInfoDataList<LyAction,LyClassInfo> |
getPopupMenuActions(LyPanelController panelController,
LyInfoDataList<LyAction,LyClassInfo> actions,
boolean selection)
Gets the ordered list of pairs of (action, classInfo) to display in a popup menu. |
java.lang.String |
getRowImage(LySimpleTableController tableController,
LyObject user)
Gets the row image of the given table object used on display list mode. |
java.lang.String |
getRowImage(LySimpleTableController tableController,
LyObject user,
boolean withDownload)
Gets the row image of the given table object used on display list mode. |
boolean |
handleDemand(LyController controller,
LyDemand demand)
Method invoked when a demand is sent to this listener. |
void |
init(LyController controller)
Initializes information used within this behavior and is called immediately after its construction. |
static java.lang.String |
loadImage(LyApplication application,
java.lang.String userId)
Load images from database. |
void |
questionAnswer(boolean result,
java.lang.Object clientData)
Answer to a askQuestion request. |
static void |
saveImage(LyApplication application,
java.lang.String userId,
java.lang.String imageFilePath)
Save images from database. |
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. |
boolean |
startAction(LyAreaController areaController,
LyAction action)
Starts an action for the given controller. |
Methods inherited from class leon.app.behavior.LyPanelBehavior |
---|
completePopupMenu, getTitle, needRefresh, validateFilter |
Methods inherited from class leon.app.behavior.LyActionBehavior |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, reset |
Methods inherited from class leon.app.behavior.LyBehavior |
---|
getSession |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface leon.app.behaviorinterface.LyPanelBehaviorInterface |
---|
completePopupMenu, needRefresh, validateFilter |
Methods inherited from interface leon.app.behaviorinterface.LyActionBehaviorInterface |
---|
endAction, getClientContext, getContextTitle, getHelpFile, getImage, getImageTooltip, getKeyValue, getMenuItemImage, getTitle, reset |
Field Detail |
---|
public static final java.lang.String PHOTO
Constructor Detail |
---|
public LySocialBehavior()
Method Detail |
---|
public LyWorkSpace getContent(LyTableController tableController, LyWorkSpace context)
getContent
in interface LyTableBehaviorInterface
getContent
in class LyTableBehavior
tableController
- Table controller that requires the content.context
- Context for which the content is required.
public 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 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 init(LyController controller)
init
in interface LyBehaviorInterface
init
in class LyBehavior
controller
- The controller that requested the creation of this behavior.public void free()
free
in interface LyBehaviorInterface
free
in class LyBehavior
public void sessionAdded(LyApplication application, LyDataSession session)
sessionAdded
in interface LySessionListenerInterface
application
- Application in which a session is added.session
- Session added to the application.public void sessionLoggedIn(LyApplication application, LyDataSession session, LyObject user)
sessionLoggedIn
in interface LySessionListenerInterface
application
- Application in which a session is added.session
- Session added to the application.user
- User that logged in.public void sessionRemoved(LyApplication application, LyDataSession session)
sessionRemoved
in interface LySessionListenerInterface
application
- Application in which a session is removed.session
- Session removed from the application.public LyInfoDataList<LyAction,LyClassInfo> getPopupMenuActions(LyPanelController panelController, LyInfoDataList<LyAction,LyClassInfo> actions, boolean selection)
getPopupMenuActions
in interface LyPanelBehaviorInterface
getPopupMenuActions
in class LyPanelBehavior
panelController
- Panel controller that displays the menu.actions
- List of pairs (action, classInfo) that the controller is about to
present in popup menu on current selection.selection
- Boolean indicating if popup menu is asked or not on selection.
public java.lang.String getRowImage(LySimpleTableController tableController, LyObject user)
getRowImage
in interface LyTableBehaviorInterface
getRowImage
in class LyTableBehavior
tableController
- Table controller that requires the row image.object
- Object to which the row image is associated.
public java.lang.String getRowImage(LySimpleTableController tableController, LyObject user, boolean withDownload)
tableController
- Table controller that requires the row image.object
- Object to which the row image is associated.
public static void saveImage(LyApplication application, java.lang.String userId, java.lang.String imageFilePath)
application
- Application on which extra info is saved.type
- Extra info type.id
- Id of saved info.public static java.lang.String loadImage(LyApplication application, java.lang.String userId)
application
- Application on which extra info is saved.type
- Extra info type.id
- Id of saved info.
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)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |