public abstract class Response
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Response.Confirm
This response sends a signal that a confirm message should be presented
to the user.
|
static class |
Response.Error
This response singals that an errors occurred when the cell was being
edited.
|
static class |
Response.Ok
This response singals that the operation was successful.
|
static class |
Response.OpenLink
This response signals that a link should be opened.
|
static class |
Response.Script
This response returns a javascript that should be executed on the client.
|
| Modifier and Type | Method and Description |
|---|---|
static Response |
newConfirm(MultilingualText message,
ConfirmCallback callback) |
static Response |
newConfirm(java.lang.String message,
ConfirmCallback callback) |
static Response |
newError() |
static Response |
newError(MultilingualText error) |
static Response |
newError(MultilingualText[] errors) |
static Response |
newError(java.lang.String error) |
static Response |
newError(java.lang.String[] errors) |
static Response |
newOk() |
static Response |
newOk(MultilingualText message) |
static Response |
newOk(MultilingualText[] messages) |
static Response |
newOk(java.lang.String message) |
static Response |
newOk(java.lang.String[] messages) |
static Response |
newOpenLink(com.technia.tvc.structurebrowser.util.TableLink link) |
static Response |
newReloadRow(java.lang.String objectId)
Returns a script that will reload the row (or rows) referring to the
specified object-id.
|
static Response |
newReloadRows(java.lang.String[] objectIds)
Returns a script that will reload the rows referring to the object-ids in
the given array.
|
static Response |
newReloadTable()
Returns a script that will reload the table page.
|
static Response |
newReloadTable(boolean forceReload)
Returns a script that will reload the table page.
|
static Response |
newScript(java.lang.String javascript) |
public static Response newConfirm(java.lang.String message, ConfirmCallback callback)
message - The confirm message.callback - The callback that will be invoked when the user accepts
or cancels.public static Response newConfirm(MultilingualText message, ConfirmCallback callback)
message - The confirm message.callback - The callback that will be invoked when the user accepts
or cancels.public static Response newError()
public static Response newError(java.lang.String error)
error - The error message.public static Response newError(java.lang.String[] errors)
errors - The error messages.public static Response newError(MultilingualText error)
error - The error message.public static Response newError(MultilingualText[] errors)
errors - The error messages.public static Response newOk()
public static Response newOk(java.lang.String message)
message - The message.public static Response newOk(java.lang.String[] messages)
messages - The messages.public static Response newOk(MultilingualText message)
message - The message.public static Response newOk(MultilingualText[] messages)
messages - The messages.public static Response newScript(java.lang.String javascript)
javascript - A javascript that should be executed on the client.public static Response newReloadTable()
This method calls the newReloadTable(boolean) with false as
argument.
newReloadTable(boolean)public static Response newReloadTable(boolean forceReload)
forceReload - True if the table should be re-evaluated.public static Response newReloadRow(java.lang.String objectId)
objectId - The object-id.public static Response newReloadRows(java.lang.String[] objectIds)
objectIds - An array of object ids.public static Response newOpenLink(com.technia.tvc.structurebrowser.util.TableLink link)
link - The link that should be opened.Copyright ? Technia AB. All Rights Reserved.