|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.service.support.DefaultInfoService
public class DefaultInfoService
Logger service based on the display of alerts.
| Constructor Summary | |
|---|---|
DefaultInfoService()
|
|
| Method Summary | |
|---|---|
boolean |
confirm(ActionContext actionContext,
Object messageKey,
Object... messageParameters)
Asks a confirmation from the user |
ConfirmResult |
confirm3(ActionContext actionContext,
Object messageKey,
Object... messageParameters)
Asks a three-choices confirmation from the user |
protected JComponent |
createMessageComponent(String message)
Creates the component for a message |
void |
error(ActionContext actionContext,
Throwable e,
Object messageKey,
Object... messageParameters)
Logs an error |
protected String |
getErrorMessage(Throwable e)
Creates the error message for an exception |
ErrorMessageService |
getErrorMessageService()
|
void |
info(ActionContext actionContext,
Object messageKey,
Object... messageParameters)
Logs an information message |
void |
setErrorMessageService(ErrorMessageService errorMessageService)
|
void |
warning(ActionContext actionContext,
Throwable e,
Object messageKey,
Object... messageParameters)
Logs a warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultInfoService()
| Method Detail |
|---|
public boolean confirm(ActionContext actionContext,
Object messageKey,
Object... messageParameters)
InfoService
confirm in interface InfoServiceactionContext - Action contextmessageKey - Key of the messagemessageParameters - Parameters for the message
public ConfirmResult confirm3(ActionContext actionContext,
Object messageKey,
Object... messageParameters)
InfoService
confirm3 in interface InfoServiceactionContext - Action contextmessageKey - Key of the messagemessageParameters - Parameters for the message
protected JComponent createMessageComponent(String message)
message - Message to display
public void error(ActionContext actionContext,
Throwable e,
Object messageKey,
Object... messageParameters)
InfoService
error in interface InfoServiceactionContext - Action contexte - Error to logmessageKey - Key of the messagemessageParameters - Parameters for the messageprotected String getErrorMessage(Throwable e)
e - Exception
ErrorMessageServicepublic ErrorMessageService getErrorMessageService()
public void info(ActionContext actionContext,
Object messageKey,
Object... messageParameters)
InfoService
info in interface InfoServiceactionContext - Action contextmessageKey - Key of the messagemessageParameters - Parameters for the messagepublic void setErrorMessageService(ErrorMessageService errorMessageService)
public void warning(ActionContext actionContext,
Throwable e,
Object messageKey,
Object... messageParameters)
InfoService
warning in interface InfoServiceactionContext - Action contexte - Warning to logmessageKey - Key of the messagemessageParameters - Parameters for the message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||