|
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.data.LyContextManager
public class LyContextManager
This class manages the instances of LyContext. There is only one instance of this class for a Leonardi application (i.e. for a primary module).
LyContext
,
LyApplication
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version. |
Constructor Summary | |
---|---|
LyContextManager(LyDataSession session)
Constructs a context manager. |
Method Summary | |
---|---|
void |
cancelAll()
Cancel all contexts. |
void |
clearUndoRedo()
Method for clearing the lists of contexts for undo/redo operations. |
void |
free()
Free this context manager. |
LyContext |
getContext(int index)
Gets context at the given index in contexts list. |
int |
getContextCount()
Gets number of current contexts. |
java.util.Collection<LyContext> |
getContexts()
Accessor to the contexts list. |
java.lang.String |
getRedoName()
To get the name of the next available redo operation. |
java.lang.String |
getUndoName()
To get the name of the next available undo operation. |
boolean |
isRedoAvailable()
To test if a redo operation can be done. |
boolean |
isUndoAvailable()
To test if an undo operation can be done. |
LyContext |
newContext(LyDataSession session)
To begin a new context. |
LyContext |
newContext(LyDataSession session,
LyContext.Type type)
To begin a new context. |
boolean |
objectCreated(LyDataSourceEvent event)
Method for receiving an object creation. |
boolean |
objectDeleted(LyDataSourceEvent event)
Method for receiving an object deletion. |
boolean |
objectModified(LyDataSourceEvent event)
Method for receiving an object modification. |
boolean |
redo(LyDataSession session)
Redo all operations undo by the last undo call. |
boolean |
undo(LyDataSession session)
Undo all operations done by the last comitted context. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyContextManager(LyDataSession session)
session
- Current session instanceMethod Detail |
---|
public void free()
public final LyContext newContext(LyDataSession session)
session
- the associated user session.
public LyContext newContext(LyDataSession session, LyContext.Type type)
session
- the associated user session.type
- the type of the new context.
public java.util.Collection<LyContext> getContexts()
public int getContextCount()
public LyContext getContext(int index)
index
- Index of the requested context.
public void cancelAll()
public void clearUndoRedo()
public boolean isUndoAvailable()
public java.lang.String getUndoName()
public boolean isRedoAvailable()
public java.lang.String getRedoName()
public boolean undo(LyDataSession session)
session
- the current session
public boolean redo(LyDataSession session)
session
- the current session
public boolean objectCreated(LyDataSourceEvent event)
objectCreated
in interface LyDataSourceListener
event
- Event notifying the creation of an object.
public boolean objectDeleted(LyDataSourceEvent event)
objectDeleted
in interface LyDataSourceListener
event
- Event notifying the deletion of an object.
public boolean objectModified(LyDataSourceEvent event)
objectModified
in interface LyDataSourceListener
event
- Event notifying the modification of an object.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |