|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.aspects.gui.Actions
This class is a container of commonly used GUI actions static methods.
Usually, a GUI action takes in parameter the display context. Using the context, is can then know the customized window to use to interact with the users. When an action does not take any display context, it means that it does not need any interaction with the GUI or that the display context is retrieved throught the collaboration.
Constructor Summary | |
Actions()
|
Method Summary | |
static void |
exit(DisplayContext context)
Quit the application by shutting down the server. |
static void |
genReport(String reportDef,
File pdfFile)
Generate a PDF report |
static void |
invoke(Object object,
String methodName)
Invokes a method on an object. |
static void |
logout(DisplayContext context)
Logout from an application by clearing the current user. |
static void |
reloadAspect(String aspect)
Reloads an aspect for the current application |
static void |
setTrace(String category,
int level)
Changes a trace for the current application |
static void |
showStatus(String message)
Shows a message on the status bar of the current customized. |
static void |
showWindow(DisplayContext context,
String id)
Show a customized window that has been declared and configured within the GUI aspect. |
static void |
viewObject(DisplayContext context,
String objectName,
String panelID)
Display an object in a panel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Actions()
Method Detail |
public static void exit(DisplayContext context)
context
- the display context for this actionpublic static void logout(DisplayContext context)
context
- the display context for this actionpublic static void showStatus(String message)
println
is
used.
message
- the message to showpublic static void showWindow(DisplayContext context, String id)
context
- the display context for this actionid
- the customized IDpublic static void invoke(Object object, String methodName)
public static void viewObject(DisplayContext context, String objectName, String panelID)
context
- the DisplayContext of the custmoized viewobjectName
- the name of the object to displaypanelID
- the panel ID where to display the objectpublic static void genReport(String reportDef, File pdfFile) throws dori.jasper.engine.JRException
reportDef
- resource name of the XML report definition filepdfFile
- file where to store the resulting PDF document
dori.jasper.engine.JRException
public static void setTrace(String category, int level)
category
- category of the tracelevel
- level of the trace (0=quiet,1=verbose,2=more verbose...)public static void reloadAspect(String aspect) throws Exception
Exception
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |