This class also used in (click to expand):
AjaxResponse.addFragment(String, Fragment)
Buffer.appendFragment(Fragment)
Buffer.toDocumentFragment(String, boolean)
Buffer.toPageFragment(String, boolean)
Chunk.setFragment(Fragment)
Document.addFragment(String, Fragment, boolean, boolean)
Document.getFragment(String)
Document.updateFragment(String, Fragment)
DownloadResponse.setFragmentContent(Fragment, String, boolean)
InternalDevelopmentPal.getAjaxFragment(String)
InternalDevelopmentPal.getChartFragment(String)
InternalDevelopmentPal.getDocumentAsFragment(String)
InternalDevelopmentPal.getDocumentFragment(String)
InternalDevelopmentPal.getExportFragment(String)
InternalDevelopmentPal.getHeadFragment(String)
InternalDevelopmentPal.getServiceFragment(String)
InternalDevelopmentPal.getWizardFragment(String, String, String)
InternalWebController.createAjaxResponse(Fragment, boolean)
Pal.getAjaxFragment(String)
Pal.getChartFragment(String)
Pal.getDocumentAsFragment(String)
Pal.getDocumentFragment(String)
Pal.getExportFragment(String)
Pal.getHeadFragment(String)
Pal.getServiceFragment(String)
Pal.getWizardFragment(String, String, String)
RuntimePal.getAjaxFragment(String)
RuntimePal.getChartFragment(String)
RuntimePal.getDocumentAsFragment(String)
RuntimePal.getDocumentFragment(String)
RuntimePal.getExportFragment(String)
RuntimePal.getHeadFragment(String)
RuntimePal.getServiceFragment(String)
RuntimePal.getWizardFragment(String, String, String)
ServiceRequest.setFragment(Fragment)
ServiceRequest.setFragmentFormParameter(String, Fragment)
ShellPal.getAjaxFragment(String)
ShellPal.getChartFragment(String)
ShellPal.getDocumentAsFragment(String)
ShellPal.getDocumentFragment(String)
ShellPal.getExportFragment(String)
ShellPal.getHeadFragment(String)
ShellPal.getServiceFragment(String)
ShellPal.getWizardFragment(String, String, String)
|
addData(Data data)
Adds the specified Data to this response.
|
boolean
|
addDataList(DataList list)
Adds the specified list to a page
|
boolean
|
addDataMap(String id, Data data)
Registers the data in the response with the specified id.
|
boolean
|
addDataMaps(String keyColumn, DataList list)
Extracts the records from the list and registers them in the response using the values in the key column. Limited to 500 records per response.
|
boolean
|
addDataRecord(String id, DataRecord dataRecord)
Registers the DataRecord in the response with the specified id. Limited to 500 records per response.
|
|
addPayload(Payload payload)
Adds the payload to this response.
|
|
allowHTML(String key)
Permits any rendering target with the specified key to be rendered as HTML.
|
String
|
get(String key)
Returns the value associated with key if it exists, null otherwise.
|
Boolean
|
getBoolean(String field)
Returns the given field as a boolean. The value must be true or false. Throws exception if the value does not exist or cannot be cast to the correct type.
|
Boolean
|
getCommonBoolean(String field)
Returns the given field as a boolean. The value must be any of the following combinations: [true/false], [1/0], [yes,no], [on,off]. Throws exception if the value does not exist or cannot be cast to the correct type.
|
Data
|
getData()
Returns the Data object for this response.
|
Date
|
getDate(String field)
Returns the given field as a Date. Throws exception if the value does not exist or cannot be cast to the correct type.
|
Boolean
|
getDefaultBoolean(String field, Boolean defaultBoolean)
Returns the given field as a boolean. If the field does not exist or refers to a non-boolean field, it returns the default value
|
Date
|
getDefaultDate(String field, Date defaultDate)
Returns the given field as a date. If the field does not exist or refers to a non-date field, it returns the default value
|
Double
|
getDefaultDouble(String field, Number defaultDouble)
Returns the given field as a double. If the field does not exist or refers to a non-double field, it returns the default value
|
Integer
|
getDefaultInt(String field, Number defaultInt)
Returns the given field as an int. If the field does not exist or refers to a non-int field, it returns the default value
|
String
|
getDefaultValue(String field, String defaultValue, boolean emptyIsNull)
Returns the given field. If the field does not exist, it returns the default value. If the field exists but is value is empty, this method returns defaultValue only if emptyIsNull=true.
|
Double
|
getDouble(String key)
Returns the given value of the given key as a double. Throws exception if the value does not exist or cannot be cast to the correct type.
|
Integer
|
getInt(String key)
Returns the given value of the given key as an Java Int which is smaller than a Javascript Int. Throws exception if the value does not exist or cannot be cast to the correct type.
|
Long
|
getLong(String key)
Returns the given value of the given key as Java Long which is larger. Throws exception if the value does not exist or cannot be cast to the correct type.
|
String
|
getName()
Returns the name of the fragment.
|
String
|
getType()
Returns the type of fragment: common,web,console,transaction,export,store,service,document,runtime,head
|
String
|
getValue(String key)
Returns the value associated with key if it exists, null otherwise.
|
|
removeDataList(String name)
Removes the datalist from the payload
|
|
removeDataMap(String id)
Removes the data in the response with the specified id.
|
|
removeValue(String key)
Removes the associated key from the response.
|
boolean
|
set(String name, Object value)
Sets the string value referenced by name. Returns false on fail (e.g. if the column does not exist, etc). The object must be capable of being serialized as a String.
|
boolean
|
setBoolean(String name, Boolean value)
Sets the boolean value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
|
boolean
|
setData(String id, Data data)
Registers the data in the response with the specified id.
|
boolean
|
setDate(String name, Date value)
Sets the date value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
|
boolean
|
setDouble(String name, Number double)
Sets the decimal value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
|
|
setHTML(String key, String xhtml)
Adds the given XHTML to the page (the XHTML should ideally be well-formed). You must use the c:html tag for displaying the content. Throws exception if the content contains illegal tags or attributes. You should avoid inline scripts or script blocks.
|
boolean
|
setInt(String name, Number value)
Sets the integer value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
|
|
setName(String name)
Changes the name of this fragment to the specified name.
|
boolean
|
setString(String name, String value)
Sets the string value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
|
|
setValue(String key, Object value)
Sets the string value referenced by name. The object must be capable of being serialized as a String.
|
File
|
toFile(String filename)
Renders this fragment into file using current fragment's state
|
ImageFile
|
toImage(String filename, int width, int height)
Renders this fragment into an image file using current fragment's state. Supports PNG, JPG, GIF, and TIFF.
|
String
|
toString()
Returns a description of this object.
|
Method Detail
addData(Data data)
Adds the specified Data to this response.
Parameters:
Since:
05-28-2010
boolean addDataList(DataList list)
Adds the specified list to a page
Parameters:
Returns:
boolean
Since:
07-11-2008
boolean addDataMap(String id, Data data)
Registers the data in the response with the specified id.
Parameters:
-
String
id
Required parameter.
-
Data
data
Required parameter.
Returns:
boolean
Since:
05-28-2010
boolean addDataMaps(String keyColumn, DataList list)
Extracts the records from the list and registers them in the response using the values in the key column. Limited to 500 records per response.
Parameters:
-
String
keyColumn
Required parameter.
-
DataList
list
Required parameter.
Returns:
boolean
Since:
05-28-2010
boolean addDataRecord(String id, DataRecord dataRecord)
Registers the DataRecord in the response with the specified id. Limited to 500 records per response.
Parameters:
-
String
id
Required parameter.
-
DataRecord
dataRecord
Required parameter.
Returns:
boolean
Since:
11-09-2010
addPayload(Payload payload)
Adds the payload to this response.
Parameters:
Since:
07-20-2010
allowHTML(String key)
Permits any rendering target with the specified key to be rendered as HTML.
Parameters:
-
String
key
Required parameter.
Since:
08-02-2017
String get(String key)
Returns the value associated with key if it exists, null otherwise.
Parameters:
Returns:
String
Since:
08-28-2018
Boolean getBoolean(String field)
Returns the given field as a boolean. The value must be true or false. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns:
Boolean
Since:
07-11-2008
Boolean getCommonBoolean(String field)
Returns the given field as a boolean. The value must be any of the following combinations: [true/false], [1/0], [yes,no], [on,off]. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns:
Boolean
Since:
08-22-2008
Data getData()
Returns the Data object for this response.
Returns:
Data
Since:
05-31-2007
Date getDate(String field)
Returns the given field as a Date. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
Returns:
Date
Since:
07-11-2008
Boolean getDefaultBoolean(String field, Boolean defaultBoolean)
Returns the given field as a boolean. If the field does not exist or refers to a non-boolean field, it returns the default value
Parameters:
-
String
field
-
Boolean
defaultBoolean
Returns:
Boolean
Since:
09-05-2008
Date getDefaultDate(String field, Date defaultDate)
Returns the given field as a date. If the field does not exist or refers to a non-date field, it returns the default value
Parameters:
-
String
field
-
Date
defaultDate
Returns:
Date
Since:
09-05-2008
Double getDefaultDouble(String field, Number defaultDouble)
Returns the given field as a double. If the field does not exist or refers to a non-double field, it returns the default value
Parameters:
-
String
field
-
Number
defaultDouble
Returns:
Double
Since:
09-05-2008
Integer getDefaultInt(String field, Number defaultInt)
Returns the given field as an int. If the field does not exist or refers to a non-int field, it returns the default value
Parameters:
-
String
field
-
Number
defaultInt
Returns:
Integer
Since:
09-05-2008
String getDefaultValue(String field, String defaultValue, boolean emptyIsNull)
Returns the given field. If the field does not exist, it returns the default value. If the field exists but is value is empty, this method returns defaultValue only if emptyIsNull=true.
Parameters:
-
String
field
-
String
defaultValue
-
boolean
emptyIsNull
Returns:
String
Since:
09-05-2008
Double getDouble(String key)
Returns the given value of the given key as a double. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
-
String
key
Required parameter.
Returns:
Double
Since:
07-11-2008
Integer getInt(String key)
Returns the given value of the given key as an Java Int which is smaller than a Javascript Int. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
-
String
key
Required parameter.
Returns:
Integer
Since:
07-11-2008
Long getLong(String key)
Returns the given value of the given key as Java Long which is larger. Throws exception if the value does not exist or cannot be cast to the correct type.
Parameters:
-
String
key
Required parameter.
Returns:
Long
Since:
05-28-2022
String getName()
Returns the name of the fragment.
Returns:
String
Since:
05-31-2007
String getType()
Returns the type of fragment: common,web,console,transaction,export,store,service,document,runtime,head
Returns:
String
Since:
08-23-2010
String getValue(String key)
Returns the value associated with key if it exists, null otherwise.
Parameters:
Returns:
String
Since:
07-11-2008
removeDataList(String name)
Removes the datalist from the payload
Parameters:
-
String
name
- name of data list in payload.
Required parameter.
Since:
06-29-2021
removeDataMap(String id)
Removes the data in the response with the specified id.
Parameters:
-
String
id
Required parameter.
Since:
12-21-2017
removeValue(String key)
Removes the associated key from the response.
Parameters:
Since:
05-28-2010
boolean set(String name, Object value)
Sets the string value referenced by name. Returns false on fail (e.g. if the column does not exist, etc). The object must be capable of being serialized as a String.
Parameters:
Returns:
boolean
Since:
08-28-2018
boolean setBoolean(String name, Boolean value)
Sets the boolean value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
-
String
name
-
Boolean
value
Returns:
boolean
Since:
08-28-2018
boolean setData(String id, Data data)
Registers the data in the response with the specified id.
Parameters:
-
String
id
Required parameter.
-
Data
data
Required parameter.
Returns:
boolean
Since:
02-11-2019
boolean setDate(String name, Date value)
Sets the date value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns:
boolean
Since:
08-28-2018
boolean setDouble(String name, Number double)
Sets the decimal value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
-
String
name
-
Number
double
Returns:
boolean
Since:
08-28-2018
setHTML(String key, String xhtml)
Adds the given XHTML to the page (the XHTML should ideally be well-formed). You must use the c:html tag for displaying the content. Throws exception if the content contains illegal tags or attributes. You should avoid inline scripts or script blocks.
Parameters:
Since:
07-11-2008
boolean setInt(String name, Number value)
Sets the integer value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns:
boolean
Since:
08-28-2018
setName(String name)
Changes the name of this fragment to the specified name.
Parameters:
Since:
11-30-2007
boolean setString(String name, String value)
Sets the string value referenced by name. Returns false on fail (e.g. if the column does not exist, etc).
Parameters:
Returns:
boolean
Since:
08-28-2018
setValue(String key, Object value)
Sets the string value referenced by name. The object must be capable of being serialized as a String.
Parameters:
Since:
07-11-2008
File toFile(String filename)
Renders this fragment into file using current fragment's state
Parameters:
-
String
filename
- file name.
Required parameter.
Returns:
File
Since:
08-17-2011
ImageFile toImage(String filename, int width, int height)
Renders this fragment into an image file using current fragment's state. Supports PNG, JPG, GIF, and TIFF.
Parameters:
-
String
filename
- file name.
Required parameter.
-
int
width
- image width.
Required parameter.
Maximum allowed size of parameter: 5120
-
int
height
- image height.
Required parameter.
Maximum allowed size of parameter: 5120
Returns:
ImageFile
Since:
05-11-2018
String toString()
Returns a description of this object.
Returns:
String
Since:
06-14-2007