|
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 |
public interface LyDataSessionBehaviorInterface
This interface defines the methods to implement in order to change the default behavior of a session.
LyDataSession
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Method Summary | |
---|---|
void |
close(LyDataSession session)
Method called when a session is closed. |
void |
connectionLost(LyDataSession session,
LyInfo server)
Method called when a connection with a server ( LyLocation or LyNotifier ) is lost. |
short |
controlBeforeCommit(LyDataSession session,
java.util.Collection<LyObject> objects)
Method called when a context needs to control objects before commit. |
void |
free()
Free this behavior. |
LyUnit |
getDefaultUnitForField(LyDataSession session,
LyFieldInfo fieldInfo)
Get the reference unit for the given field for the current session |
java.lang.Object |
getKeyValue(java.lang.String key)
Retrieves a value from a registered key. |
LyObject |
getUser(LyDataSession session)
Gets user of this session. |
void |
handleException(LyDataSession session,
java.lang.Throwable t)
Method called when an exception occured during the session proccessing. |
void |
start(LyDataSession session)
Method called when a session is started. |
void |
updateUndoRedo(LyDataSession session)
Method called when the undo/redo status has changed. |
Field Detail |
---|
static final java.lang.String __VERSION
Method Detail |
---|
void start(LyDataSession session)
session
- the started session.LyObject getUser(LyDataSession session)
session
- Current session.
void close(LyDataSession session)
session
- the closed session.void handleException(LyDataSession session, java.lang.Throwable t)
session
- the current sessiont
- The throwable instance that stopped the processing.short controlBeforeCommit(LyDataSession session, java.util.Collection<LyObject> objects)
session
- the current sessionobjects
- the objects to control.
void free()
void updateUndoRedo(LyDataSession session)
session
- the current session.LyContextManager.isUndoAvailable()
,
LyContextManager.isRedoAvailable()
void connectionLost(LyDataSession session, LyInfo server)
LyLocation
or LyNotifier
) is lost.
session
- Current session.server
- Logical server definitionjava.lang.Object getKeyValue(java.lang.String key)
key
- The key that must be used.
LyUnit getDefaultUnitForField(LyDataSession session, LyFieldInfo fieldInfo)
session
- Current sessionfieldInfo
- a field
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |