|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.managers.lifecycle.LifeCycleManager
public final class LifeCycleManager
A JTheque application implementation. This class manage the cycle life of JTheque.
Constructor Summary | |
---|---|
LifeCycleManager()
|
Method Summary | |
---|---|
void |
addFunctionListener(FunctionListener listener)
Add function listener to receive function events from the application. |
void |
addTitleListener(TitleListener listener)
Add title listener to receive title events from the application. |
void |
chooseCollection(java.lang.String collection,
java.lang.String password,
boolean create)
Choose a collection. |
void |
exit()
Exit the application. |
java.lang.String |
getCurrentFunction()
Return the current function of the application. |
java.lang.String |
getTitle()
Return the current title of the application. |
void |
initCycles()
Init the cycles. |
void |
initTitle()
Init the title. |
boolean |
isSecondPhaseDone()
Indicate if the second phase is done or not. |
void |
launchNextPhase()
Launch the next phase. |
void |
refreshText()
Refresh the text. |
void |
removeFunctionListener(FunctionListener listener)
Remove the specified function listener so that it no longer receives function events from the application. |
void |
removeTitleListner(TitleListener listener)
Remove the specified title listener so that it no longer receives title events from the application. |
void |
restart()
Restart the application. |
void |
setCurrentFunction(java.lang.String function)
Set the current function of the application. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifeCycleManager()
Method Detail |
---|
public void initCycles()
ILifeCycleManager
initCycles
in interface ILifeCycleManager
public void launchNextPhase()
ILifeCycleManager
launchNextPhase
in interface ILifeCycleManager
public void initTitle()
ILifeCycleManager
initTitle
in interface ILifeCycleManager
public void exit()
ILifeCycleManager
exit
in interface ILifeCycleManager
public void restart()
ILifeCycleManager
restart
in interface ILifeCycleManager
public void setCurrentFunction(java.lang.String function)
ILifeCycleManager
setCurrentFunction
in interface ILifeCycleManager
function
- The internationalized key of the new current function. Spublic java.lang.String getCurrentFunction()
ILifeCycleManager
getCurrentFunction
in interface ILifeCycleManager
public java.lang.String getTitle()
ILifeCycleManager
getTitle
in interface ILifeCycleManager
public void addTitleListener(TitleListener listener)
ILifeCycleManager
addTitleListener
in interface ILifeCycleManager
listener
- The title listener.public void removeTitleListner(TitleListener listener)
ILifeCycleManager
removeTitleListner
in interface ILifeCycleManager
listener
- The title listener.public void addFunctionListener(FunctionListener listener)
ILifeCycleManager
addFunctionListener
in interface ILifeCycleManager
listener
- The function listener.public void removeFunctionListener(FunctionListener listener)
ILifeCycleManager
removeFunctionListener
in interface ILifeCycleManager
listener
- The function listener.public void chooseCollection(java.lang.String collection, java.lang.String password, boolean create)
ILifeCycleManager
chooseCollection
in interface ILifeCycleManager
collection
- The name of the collection.password
- The password of the collection.create
- A boolean flag indicating if we must create the collection or not.public void refreshText()
Internationalizable
refreshText
in interface Internationalizable
public boolean isSecondPhaseDone()
ILifeCycleManager
isSecondPhaseDone
in interface ILifeCycleManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |