|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 String |
getFileIcon(File file)
|
static Collection |
getLoggerNames(Object substance)
Returns all known logger names |
static Collection |
getLoggers(ClassItem cli)
Returns all known loggers |
static Collection |
getLogLevels(ClassItem cli)
Returns all known log levels |
static Collection |
getMimeTypes(MetaItem cli)
|
static String |
getOpenViewIcon(MethodItem method,
Object object,
Object[] parameters)
|
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 |
openView(DisplayContext context,
String objectName)
Display an object in a new window |
static void |
reloadAspect(String aspect)
Reloads an aspect for the current application |
static void |
setTrace(String loggerName,
org.apache.log4j.Level 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. |
static void |
viewObject2(DisplayContext context,
String objectName,
String viewName,
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 viewObject2(DisplayContext context, String objectName, String viewName, String panelID)
context
- the DisplayContext of the custmoized viewobjectName
- the name of the object to displaypanelID
- the panel ID where to display the objectviewObject(DisplayContext,String,String)
,
openView(DisplayContext,String)
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 objectviewObject2(DisplayContext,String,String,String)
,
openView(DisplayContext,String)
public static void openView(DisplayContext context, String objectName)
context
- the DisplayContext of the custmoized viewobjectName
- the name of the object to displayviewObject2(DisplayContext,String,String,String)
,
viewObject(DisplayContext,String,String)
public static String getOpenViewIcon(MethodItem method, Object object, Object[] parameters)
public static String getFileIcon(File file)
public static void setTrace(String loggerName, org.apache.log4j.Level level)
loggerName
- category of the tracelevel
- level of the tracepublic static Collection getLoggerNames(Object substance)
public static Collection getLoggers(ClassItem cli)
public static Collection getLogLevels(ClassItem cli)
public static Collection getMimeTypes(MetaItem cli)
public static void reloadAspect(String aspect) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |