public class ActionResult extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
CANCELLED
result constant 'CANCELLED' - action cancelled (by user).
|
static int |
FAILED
Result constant 'FAILED' - action not performed successfully - an error occured.
|
protected static Logger |
LOG |
static int |
OK
Result constant 'OK' - action performed successfully.
|
| Constructor and Description |
|---|
ActionResult(int result,
boolean needRefresh) |
ActionResult(int result,
boolean needRefresh,
boolean showResult) |
ActionResult(int result,
String message,
boolean needRefresh) |
ActionResult(int result,
String message,
boolean needRefresh,
boolean showResult) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String message) |
String |
getMessage() |
List |
getMessages()
Returns the list of messages which should be shown to the user after action.
|
Object |
getObject() |
int |
getResult()
Returns the result code.
|
boolean |
needRefresh()
If
true, the item editor will be refreshed to show possible changes on the item perfomed by the
action. |
void |
setObject(Object object) |
void |
setResult(int result) |
void |
setShowResult(boolean show) |
boolean |
showResult()
If
true, the popup window with the result will be shown. |
protected static final Logger LOG
public static final int OK
public static final int FAILED
public static final int CANCELLED
public ActionResult(int result,
String message,
boolean needRefresh)
public ActionResult(int result,
boolean needRefresh)
public ActionResult(int result,
boolean needRefresh,
boolean showResult)
public ActionResult(int result,
String message,
boolean needRefresh,
boolean showResult)
public int getResult()
public List getMessages()
public String getMessage()
public void addMessage(String message)
public boolean needRefresh()
true, the item editor will be refreshed to show possible changes on the item perfomed by the
action.public boolean showResult()
true, the popup window with the result will be shown.public void setShowResult(boolean show)
public void setResult(int result)
result - The result to set.public Object getObject()
public void setObject(Object object)
Copyright © 2017 SAP SE. All Rights Reserved.