|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.servlet.tbeans.olaptableview.html.OLAPTableView
public class OLAPTableView
The OLAPTableView is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript to represent a table of data from the given multidimensional model.
The OLAPTableView is one of several TransformationBeans that rely on a set of style classes that are used by default when generating the resulting markup language. For more information on style sheets and the default style classes that apply to this TransformationBean, refer to the AppDev Studio Developer Site. You'll find a useful reference document entitled Cascading Style Sheets, Images, and TransformationBeans as well as the TransformationBeans Style Sheet Reference.
The OLAPTableView is one of several TransformationBeans that rely on JavaScript to provide some of its functionality. These JavaScript files are including automatically by the tbean. See JavaScriptIncludeHandler for more information about how these files are included and how to customize this behavior. The OLAPTableView uses the following JavaScript files:
Note that the toString() method on this class calls the write method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging
For More Information:
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Examples for this class may be found on the Examples Site.
JSP custom tags provide an alternative to using the TransformationBeans. Visit the Custom Tag Library Reference for additional information on the sas:OLAPTableView custom tag.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
| Field Summary | |
|---|---|
protected java.util.Map |
cacheOfMeasureFormatsForExport
|
protected java.lang.String |
currentMeasureUniqueName
|
| Fields inherited from class com.sas.servlet.tbeans.olaptableview.BaseOLAPTableView |
|---|
rolap |
| Fields inherited from class com.sas.servlet.tbeans.tableview.AbstractBaseTableView |
|---|
DEFAULT_EXPORT_NUMERIC_CUSTOM_FORMATED_VALUES_AS_TEXT, MISSING_STYLEINFO, WRAP_ALL, WRAP_NONE, WRAP_PER_COLUMN |
| Fields inherited from interface com.sas.servlet.tbeans.HttpConstants |
|---|
ALL, BASELINE, CHAR, COL, COLGROUP, JUSTIFY, MULTIPLE, NONE, ROW, ROWGROUP, SINGLE |
| Constructor Summary | |
|---|---|
OLAPTableView()
Construct a new Table object |
|
OLAPTableView(java.lang.String name,
OLAPDataSetInterface model)
Construct a new Table object |
|
OLAPTableView(java.lang.String name,
OLAPDataSetInterface model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Construct a new Table object |
|
| Method Summary | |
|---|---|
java.util.HashMap |
getAdditionalParameters()
Returns an HashMap containing additional parameters that should be added to the form used to perform the various actions on the table. |
int |
getCurrentHeaderIndex()
Get the current index within the header, usually the tupleElementIndex for the current header. |
Form |
getDefaultFormObject()
Returns the FORM object used if no FORM object is specifed. |
Form |
getFormObject()
Returns the FORM Object used to execute commands. |
boolean |
isFormEnabled()
Determines if the tbean should render its formObject. |
void |
setAdditionalParameter(java.lang.String name,
java.lang.String value)
Sets an additional parameter to be added to the form used to perform the various actions on the table. |
void |
setAdditionalParameters(java.util.HashMap map)
Sets an HashMap containing additional parameters that should be added to the form used to perform the various actions on the table. |
void |
setCellRenderer(OLAPTableFormatArea cellArea,
TableCellRenderer renderer)
|
void |
setFormEnabled(boolean value)
Sets whether the tbean should render its formObject. |
void |
setFormObject(Form formObject)
Returns the FORM Object used to execute commands. |
void |
setModel(OLAPDataSetInterface model)
Sets the model on the viewer. |
void |
writeColumnHeader(java.io.PrintWriter out)
Writes the column headings of the table. |
void |
writeEmptyTable(java.io.PrintWriter out)
Writes an empty table when a model in not attached |
void |
writeRows(java.io.PrintWriter out)
Writes the row headings and contents of the table. |
void |
writeTableFooter(java.io.PrintWriter out)
Writes the footer tag for the tableview. |
void |
writeTableHeader(java.io.PrintWriter out)
Writes the table header |
| Methods inherited from class com.sas.servlet.tbeans.olaptableview.BaseOLAPTableView |
|---|
columnNumbersAreValid, contentsChanged, getColumnCount, getModel, getRowCount, gotoColumn, gotoRow, initialize, initializeColumnNumbers, initializeRowNumbers, isAccurateRowCountAvailable, isGotoColumnSupported, isGotoRowSupported, rowNumbersAreValid, setActionProvider, toString |
| Methods inherited from class com.sas.servlet.tbeans.BaseActionTransformation |
|---|
dispose, getActionProvider, getActionSupportType, getUniqueId, isActionVisible, listActionTypes, listAreaTypes, setActionSupportType, setActionVisible, setUniqueId |
| Methods inherited from interface com.sas.servlet.tbeans.ComplexStyleInterface |
|---|
getStyleMap |
| Methods inherited from interface com.sas.actionprovider.URLTemplateViewInterface |
|---|
getURLTemplate, setURLTemplate |
| Methods inherited from interface com.sas.servlet.tbeans.TransformationInterface |
|---|
getCustomAttributes, getDescription, getId, getLocale, getName, getRequest, getResponse, getTagEpilog, getTagProlog, isVisible, setCustomAttributes, setDescription, setId, setLocale, setName, setRequest, setResponse, setTagEpilog, setTagProlog, setVisible, write, write, write |
| Methods inherited from interface com.sas.actionprovider.HttpActionProviderViewInterface |
|---|
getRequest, setRequest |
| Field Detail |
|---|
protected java.lang.String currentMeasureUniqueName
protected java.util.Map cacheOfMeasureFormatsForExport
| Constructor Detail |
|---|
public OLAPTableView()
public OLAPTableView(java.lang.String name,
OLAPDataSetInterface model)
name - The field namemodel - The model used for this viewer
public OLAPTableView(java.lang.String name,
OLAPDataSetInterface model,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
name - The field namemodel - The model used for this viewerrequest - The HttpServletRequest objectresponse - the HttpServletResponse object| Method Detail |
|---|
public void setModel(OLAPDataSetInterface model)
setModel in class BaseOLAPTableViewmodel - an instance of the OLAPDataSetInterface
public void writeEmptyTable(java.io.PrintWriter out)
throws java.io.IOException
writeEmptyTable in class AbstractBaseTableViewout - The output stream
java.io.IOException - Thrown if some type of I/O error occurs
public void writeTableHeader(java.io.PrintWriter out)
throws java.io.IOException
writeTableHeader in class AbstractBaseTableViewout - The output stream
java.io.IOException - Thrown if some type of I/O error occurs
public void writeTableFooter(java.io.PrintWriter out)
throws java.io.IOException
writeTableFooter in class AbstractBaseTableViewout - the output stream
java.io.IOException - Thrown if some type of I/O error occurs
public void writeColumnHeader(java.io.PrintWriter out)
throws java.io.IOException
writeColumnHeader in class AbstractBaseTableViewout - the output stream
java.io.IOException - Thrown if some type of I/O error occurs
public void writeRows(java.io.PrintWriter out)
throws java.io.IOException
writeRows in class AbstractBaseTableViewout - the output stream
java.io.IOException - Thrown if some type of I/O error occurspublic Form getDefaultFormObject()
getDefaultFormObject in interface FormViewInterfacegetFormObject()public Form getFormObject()
getFormObject in interface FormViewInterfacesetFormObject(com.sas.servlet.tbeans.form.html.Form)public void setFormObject(Form formObject)
setFormObject in interface FormViewInterfaceformObject - The form objectsetFormObject(com.sas.servlet.tbeans.form.html.Form)public java.util.HashMap getAdditionalParameters()
getAdditionalParameters in interface FormViewInterfaceHashMappublic void setAdditionalParameters(java.util.HashMap map)
setAdditionalParameters in interface FormViewInterfacemap - HashMap objectHashMap
public void setAdditionalParameter(java.lang.String name,
java.lang.String value)
setAdditionalParameter in interface FormViewInterfacename - name of the list itemvalue - value of the list itemHashMappublic boolean isFormEnabled()
isFormEnabled in interface FormViewInterfacepublic void setFormEnabled(boolean value)
setFormEnabled in interface FormViewInterfacevalue - true if the formObject should be rendered by the tbean
public void setCellRenderer(OLAPTableFormatArea cellArea,
TableCellRenderer renderer)
public int getCurrentHeaderIndex()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||