public interface CommandContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
rcs_id |
Modifier and Type | Method and Description |
---|---|
void |
execute(Command command)
Execute given command in this context
|
ApplicationContext |
getApplicationContext()
Obtain the ApplicationContext
|
Item |
getItem()
Get selected item
|
java.util.Locale |
getLocale()
Get Locale to be used in this context
|
void |
openPageInTarget(java.lang.String url,
java.lang.String target)
Open given external URL in given target frame
|
void |
sendError(java.lang.String text)
Display an error message
|
boolean |
showImageForCommand()
Command is executed with a CommandContext.
|
void |
showMessage(java.lang.String title,
java.lang.String msg)
Display message in popup dialog
|
void |
showThrowable(java.lang.String title,
java.lang.String msg,
java.lang.Throwable t)
Display any Throwable which occured during processing
|
void |
showThrowable(java.lang.Throwable t)
Display any Throwable which occured during processing
|
static final java.lang.String rcs_id
void execute(Command command)
command
- ApplicationContext getApplicationContext()
java.util.Locale getLocale()
Item getItem()
void openPageInTarget(java.lang.String url, java.lang.String target)
url
- the URL to be opendtarget
- the target framevoid sendError(java.lang.String text)
text
- Text to displayvoid showThrowable(java.lang.Throwable t)
t
- the Throwablevoid showThrowable(java.lang.String title, java.lang.String msg, java.lang.Throwable t)
title
- msg
- t
- the Throwablevoid showMessage(java.lang.String title, java.lang.String msg)
title
- msg
- boolean showImageForCommand()