|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.log.UserLog
public class UserLog
Classe permettant d'afficher facillement des messages a l'utilisateur. Si une interface graphique est disponible alors des boites de dialogue sont affichees. Il est aussi possible d'indique des composants a utiliser pour afficher les messages. N'importe quel composant ayant une methode setText convient
| Nested Class Summary | |
|---|---|
static class |
UserLog.Level
|
| Field Summary | |
|---|---|
protected static boolean |
graphicUI
|
protected static ListenerSet<Object> |
listeners
|
| Constructor Summary | |
|---|---|
UserLog()
|
|
| Method Summary | |
|---|---|
static void |
addListeners(ListenerSet<Object> l)
|
static void |
debug(String msg)
Log message using commons-logging and display message box if UI is available and non disabled. |
static void |
debug(String msg,
Throwable cause)
Log message using commons-logging and display message box if UI is available and non disabled. |
static void |
error(String msg)
Log message using commons-logging and display message box if UI is available and non disabled. |
static void |
error(String msg,
Throwable cause)
Log message using commons-logging and display message box if UI is available and non disabled. |
static void |
fatal(String msg)
Log message using commons-logging and display message box if UI is available and non disabled. |
static void |
fatal(String msg,
Throwable cause)
Log message using commons-logging and display message box if UI is available and non disabled. |
static void |
info(String msg)
Log message using commons-logging and display message box if UI is available and non disabled. |
static void |
info(String msg,
Throwable cause)
Log message using commons-logging and display message box if UI is available and non disabled. |
static boolean |
isGraphicUI()
Return true if UI login is enabled and available. |
static void |
removeListeners(ListenerSet<Object> l)
|
static void |
setGraphicUI(boolean graphicUI)
Enable/disable UI log display. |
protected static void |
show(UserLog.Level level,
String msg,
Throwable cause)
Appel la methode setText de tous les listeners avec le message en parametre et si isGraphicUI() retourne vrai affiche une boite
de dialogue avec le message |
static void |
warn(String msg)
Log message using commons-logging and display message box if UI is available and non disabled. |
static void |
warn(String msg,
Throwable cause)
Log message using commons-logging and display message box if UI is available and non disabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ListenerSet<Object> listeners
protected static boolean graphicUI
| Constructor Detail |
|---|
public UserLog()
| Method Detail |
|---|
public static void addListeners(ListenerSet<Object> l)
public static void removeListeners(ListenerSet<Object> l)
public static void setGraphicUI(boolean graphicUI)
graphicUI - true to enablepublic static boolean isGraphicUI()
protected static void show(UserLog.Level level,
String msg,
Throwable cause)
isGraphicUI() retourne vrai affiche une boite
de dialogue avec le message
level - le niveau du messagemsg - le messagecause - l'exception s'il y en a unepublic static void debug(String msg)
msg - message to display
public static void debug(String msg,
Throwable cause)
msg - message to displaycause - exception causepublic static void info(String msg)
msg - message to display
public static void info(String msg,
Throwable cause)
msg - message to displaycause - exception causepublic static void warn(String msg)
msg - message to display
public static void warn(String msg,
Throwable cause)
msg - message to displaycause - exception causepublic static void error(String msg)
msg - message to display
public static void error(String msg,
Throwable cause)
msg - message to displaycause - exception causepublic static void fatal(String msg)
msg - message to display
public static void fatal(String msg,
Throwable cause)
msg - message to displaycause - exception cause
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||