|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.tableview.AbstractBaseTableView
public abstract class AbstractBaseTableView
The abstract Transformation Bean base object for creating any TableView.
For More Information:
JSP custom tags provide an alternative to using the TransformationBeans. Visit the Custom Tag Library Reference for additional information on these custom tags.
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 | |
---|---|
static boolean |
DEFAULT_EXPORT_NUMERIC_CUSTOM_FORMATED_VALUES_AS_TEXT
|
protected static StyleInfo |
MISSING_STYLEINFO
|
static int |
WRAP_ALL
|
static int |
WRAP_NONE
|
static int |
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 | |
---|---|
AbstractBaseTableView()
Constructs a new default TableView. |
Method Summary | |
---|---|
void |
addFeature(com.sas.servlet.tbeans.features.Feature feature)
Deprecated. Use getFeatures().add(feature) instead. |
protected void |
addMoveMenu(TableCellRenderer renderer,
ActionList actions)
|
void |
firstColumn()
Navigates to the first column. |
void |
firstRow()
Navigates to the first row. |
int |
getBorderWidth()
Gets the width of the outer border around the table. |
java.lang.String |
getCaption()
Returns the <caption> tag for the table. |
int |
getCellPadding()
Gets the number of pixels between the border of a cell and the cell's contents. |
int |
getCellSpacing()
Gets the number of pixels between the border of each cell. |
abstract int |
getColumnCount()
Convenience method to return the number of viewable columns. |
int |
getColumnPageSize()
Returns the number of columns to display per page. |
int |
getColumnScrollSize()
Return the number of columns to scroll when paging forward/backward. |
int |
getEndColumn()
Returns the column number of the last column to be displayed in the TableView. |
int |
getEndRow()
Returns the row number of the last row to be displayed in the TableView. |
java.lang.String |
getFormName()
Gets the name of the form that is to be submitted when form submission is used to executed actions within the TableView. |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the table. |
abstract int |
getRowCount()
Convenience method to return the number of rows available from the model or -1 if the model is not set. |
int |
getRowPageSize()
Returns the number of rows to display per page. |
com.sas.rpf.Context |
getRulesContext()
Gets the Context used by the Rules Processing framework for conditional formatting of cells. |
int |
getStartColumn()
Returns the column number of the first column to be displayed in the TableView. |
int |
getStartRow()
Returns the row number of the first row to be displayed in the TableView. |
java.util.Map |
getStyleMap()
Returns a Map containing all the style information for this component. |
java.lang.String |
getSummary()
Returns the summary attribute of the table. |
int |
getTextWrapping()
Get locations where text wrapping is on |
int |
getWidth()
Gets the width of the table in pixels. |
int |
getWidthPercentage()
Gets the width of the table as a percentage. |
void |
gotoColumn(int column)
Navigates to the given column. |
void |
gotoRow(int row)
Navigates to the given row. |
abstract void |
initialize()
Initialize the TableView Object. |
abstract boolean |
isAccurateRowCountAvailable()
Indicates whether an accurate row count is available. |
boolean |
isAllActionsVisible()
Return a boolean to indicate whether actions on the TableView will be visible. |
boolean |
isColumnHeaderVisible()
Returns true if column header should be visible. |
boolean |
isColumnsResizable()
Determines whether resizing of columns is supported. |
boolean |
isFirstColumnSupported()
Determines whether navigation to the first column is supported. |
boolean |
isFirstRowSupported()
Determines whether navigation to the first row is supported. |
boolean |
isGotoColumnSupported()
Determines whether navigation to jump to a specified column is supported. |
boolean |
isGotoRowSupported()
Determines whether navigation to jump to a specified row is supported. |
boolean |
isLastColumnSupported()
Determines whether navigation to the last column is supported. |
boolean |
isLastRowSupported()
Determines whether navigation to the last row is supported. |
boolean |
isNextColumnSupported()
Determines whether navigation to the next column is supported. |
boolean |
isNextRowSupported()
Determines whether navigation to the next row is supported. |
boolean |
isPageBackwardColumnsSupported()
Determines whether navigation back a page of columns is supported. |
boolean |
isPageBackwardRowsSupported()
Determines whether navigation back a page of rows is supported. |
boolean |
isPageForwardColumnsSupported()
Determines whether navigation forward a page of columns is supported. |
boolean |
isPageForwardRowsSupported()
Determines whether navigation forward a page of rows is supported. |
boolean |
isPreviousColumnSupported()
Determines whether navigation to the previous column is supported. |
boolean |
isPreviousRowSupported()
Determines whether navigation to the previous row is supported. |
boolean |
isRowHeaderVisible()
Returns true if row header should be visible. |
void |
lastColumn()
Navigates to the last column. |
void |
lastRow()
Navigates to the last row. |
void |
nextColumn()
Navigates to the next column. |
void |
nextRow()
Navigates to the next row. |
void |
pageBackwardColumns()
Navigates backward a page of columns. |
void |
pageBackwardRows()
Navigates backward a page of rows. |
void |
pageForwardColumns()
Navigates forward a page of columns. |
void |
pageForwardRows()
Navigates forward a page of rows. |
void |
previousColumn()
Navigates to the previous column. |
void |
previousRow()
Navigates to the previous row. |
protected StyleInfo |
removeLastBorder(TableCellRenderer renderer,
int col,
int row,
StyleInfo savedStyle)
Add style information to remove the right/bottom border if on the last column/row. |
void |
setAllActionsVisible(boolean visible)
Sets whether actions on the TableView will be visible. |
void |
setBorderWidth(int border)
Sets the width of the outer border around the table in pixels. |
void |
setCaption(java.lang.String caption)
Sets the text to be used as the <caption> tag. |
void |
setCellPadding(int padding)
Sets the number of pixels between the border of a cell and the cell's contents. |
void |
setCellSpacing(int spacing)
Sets the number of pixels between the border of each cell. |
void |
setColumnHeaderVisible(boolean visible)
Turns on/off the use of the column header. |
void |
setColumnPageSize(int columns)
Sets the number of columns to display per page. |
void |
setColumnsResizable(boolean columnsResizable)
Sets whether resizing of columns is supported. |
void |
setEndColumn(int end)
Sets the last column to be displayed. |
void |
setEndRow(int end)
Set the last row to be displayed. |
void |
setHorizontalAlignment(int alignment)
Sets the horizontal alignment of the table. |
void |
setPageSize(int rows,
int columns)
Sets the number of rows and columns to display per page. |
void |
setRowHeaderVisible(boolean visible)
Turns on/off the use of the row header. |
void |
setRowPageSize(int rows)
Sets the number of rows to display per page. |
void |
setRulesContext(com.sas.rpf.Context rulesContext)
Sets the Context used by the Rules Processing framework for conditional formatting of cells. |
void |
setStartColumn(int start)
Sets the first column to be displayed. |
void |
setStartRow(int start)
Set the first row to be displayed. |
void |
setSummary(java.lang.String summary)
Sets the text to be used as the summary attribute of the table. |
void |
setTextWrapping(int textWrapping)
Set locations where text wrapping is on |
void |
setWidth(int width)
Sets the width of the table in pixels. |
void |
setWidthPercentage(int percentage)
Sets the width of the table as a percentage. |
void |
writeColumnHeader(java.io.OutputStream out)
Writes the row of the tableview which contains the column headers. |
abstract void |
writeColumnHeader(java.io.PrintWriter out)
Writes the row of the tableview which contains the column headers. |
void |
writeColumnHeader(java.io.Writer out)
Writes the row of the tableview which contains the column headers. |
protected void |
writeContent(java.io.PrintWriter out)
Writes the transformation's main content which is everything except for the following: Opening container html element. |
void |
writeEmptyTable(java.io.OutputStream out)
Writes an empty table when a model is not attached or the data model contains no rows. |
abstract void |
writeEmptyTable(java.io.PrintWriter out)
Writes an empty table when a model is not attached or the data model contains no rows. |
void |
writeEmptyTable(java.io.Writer out)
Writes an empty table when a model is not attached or the data model contains no rows. |
protected void |
writeFeatures(javax.servlet.http.HttpServletRequest request,
java.io.PrintWriter out)
Write all the features in the feature list. |
protected void |
writeRows(java.io.OutputStream out)
Writes the rows of data for the tableview. |
protected abstract void |
writeRows(java.io.PrintWriter out)
Writes the rows of data for the tableview. |
protected void |
writeRows(java.io.Writer out)
Writes the rows of data for the tableview. |
void |
writeTableFooter(java.io.OutputStream out)
Writes the footer tag for the tableview. |
abstract void |
writeTableFooter(java.io.PrintWriter out)
Writes the footer tag for the tableview. |
void |
writeTableFooter(java.io.Writer out)
Writes the footer tag for the tableview. |
void |
writeTableHeader(java.io.OutputStream out)
Writes the header tag and all its attributes for tableview. |
abstract void |
writeTableHeader(java.io.PrintWriter out)
Writes the header tag and all its attributes for tableview. |
void |
writeTableHeader(java.io.Writer out)
Writes the header tag and all its attributes for tableview. |
protected void |
writeTableTFoot(java.io.PrintWriter out)
|
Methods inherited from class com.sas.servlet.tbeans.BaseActionTransformation |
---|
dispose, getActionProvider, getActionSupportType, getUniqueId, isActionVisible, listActionTypes, listAreaTypes, setActionProvider, setActionSupportType, setActionVisible, setUniqueId |
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 |
---|
public static final int WRAP_NONE
public static final int WRAP_ALL
public static final int WRAP_PER_COLUMN
public static boolean DEFAULT_EXPORT_NUMERIC_CUSTOM_FORMATED_VALUES_AS_TEXT
protected static final StyleInfo MISSING_STYLEINFO
Constructor Detail |
---|
public AbstractBaseTableView()
Method Detail |
---|
public abstract void initialize()
public void writeTableHeader(java.io.Writer out) throws java.io.IOException
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeTableHeader(java.io.OutputStream out) throws java.io.IOException
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic abstract void writeTableHeader(java.io.PrintWriter out) throws java.io.IOException
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeColumnHeader(java.io.Writer out) throws java.io.IOException
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeColumnHeader(java.io.OutputStream out) throws java.io.IOException
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic abstract void writeColumnHeader(java.io.PrintWriter out) throws java.io.IOException
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occursprotected void writeRows(java.io.Writer out) throws java.io.IOException
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occursprotected void writeRows(java.io.OutputStream out) throws java.io.IOException
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occursprotected abstract void writeRows(java.io.PrintWriter out) throws java.io.IOException
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeTableFooter(java.io.Writer out) throws java.io.IOException
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeTableFooter(java.io.OutputStream out) throws java.io.IOException
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic abstract void writeTableFooter(java.io.PrintWriter out) throws java.io.IOException
out
- the output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeEmptyTable(java.io.Writer out) throws java.io.IOException
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic void writeEmptyTable(java.io.OutputStream out) throws java.io.IOException
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic abstract void writeEmptyTable(java.io.PrintWriter out) throws java.io.IOException
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occurspublic java.util.Map getStyleMap()
getStyleMap
in interface ComplexStyleInterface
public boolean isFirstRowSupported()
isFirstRowSupported
in interface RowNavigationInterface
firstRow()
public boolean isPageBackwardRowsSupported()
isPageBackwardRowsSupported
in interface RowNavigationInterface
pageBackwardRows()
public boolean isPreviousRowSupported()
isPreviousRowSupported
in interface RowNavigationInterface
previousRow()
public boolean isNextRowSupported()
isNextRowSupported
in interface RowNavigationInterface
nextRow()
public boolean isPageForwardRowsSupported()
isPageForwardRowsSupported
in interface RowNavigationInterface
pageForwardRows()
public boolean isLastRowSupported()
isLastRowSupported
in interface RowNavigationInterface
lastRow()
public boolean isGotoRowSupported()
isGotoRowSupported
in interface RowNavigationInterface
gotoRow(int)
public void firstRow()
firstRow
in interface RowNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isFirstRowSupported() returns falseisFirstRowSupported()
public void pageBackwardRows()
pageBackwardRows
in interface RowNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isPageBackwardRowsSupported() returns falseisPageBackwardRowsSupported()
public void previousRow()
previousRow
in interface RowNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isPreviousRowSupported() returns falseisPreviousRowSupported()
public void nextRow()
nextRow
in interface RowNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isNextRowSupported() returns falseisNextRowSupported()
public void pageForwardRows()
pageForwardRows
in interface RowNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isPageForwardRowsSupported() returns falseisPageForwardRowsSupported()
public void lastRow()
lastRow
in interface RowNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isLastRowSupported() returns falseisLastRowSupported()
public void gotoRow(int row)
gotoRow
in interface RowNavigationInterface
row
- the row index
java.lang.UnsupportedOperationException
- Thrown if
isGotoRowSupported() returns falseisGotoRowSupported()
public int getStartRow()
getStartRow
in interface RowNavigationInterface
public void setStartRow(int start)
start
- first row to be displayed in the TableViewpublic int getEndRow()
getEndRow
in interface RowNavigationInterface
public void setEndRow(int end)
end
- last row to be displayed in the TableViewpublic abstract int getRowCount()
getRowCount
in interface RowNavigationInterface
public int getRowPageSize()
getRowPageSize
in interface RowNavigationInterface
public void setRowPageSize(int rows)
setRowPageSize
in interface RowNavigationInterface
rows
- the number of rows to display per pagepublic abstract boolean isAccurateRowCountAvailable()
isAccurateRowCountAvailable
in interface AccurateRowCountInterface
public java.lang.String getFormName()
getFormName
in interface ColumnNavigationInterface
getFormName
in interface RowNavigationInterface
public int getColumnScrollSize()
public boolean isFirstColumnSupported()
isFirstColumnSupported
in interface ColumnNavigationInterface
firstColumn()
public boolean isPageBackwardColumnsSupported()
isPageBackwardColumnsSupported
in interface ColumnNavigationInterface
pageBackwardColumns()
public boolean isPreviousColumnSupported()
isPreviousColumnSupported
in interface ColumnNavigationInterface
previousColumn()
public boolean isNextColumnSupported()
isNextColumnSupported
in interface ColumnNavigationInterface
nextColumn()
public boolean isPageForwardColumnsSupported()
isPageForwardColumnsSupported
in interface ColumnNavigationInterface
pageForwardColumns()
public boolean isLastColumnSupported()
isLastColumnSupported
in interface ColumnNavigationInterface
ColumnNavigationInterface.lastColumn()
public boolean isGotoColumnSupported()
isGotoColumnSupported
in interface ColumnNavigationInterface
gotoColumn(int)
public void firstColumn()
firstColumn
in interface ColumnNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isFirstColumnSupported() returns falseisFirstColumnSupported()
public void pageBackwardColumns()
pageBackwardColumns
in interface ColumnNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isPageBackwardColumnsSupported() returns falseisPageBackwardColumnsSupported()
public void previousColumn()
previousColumn
in interface ColumnNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isPreviousColumnSupported() returns falseisPreviousColumnSupported()
public void nextColumn()
nextColumn
in interface ColumnNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isNextColumnSupported() returns falseisNextColumnSupported()
public void pageForwardColumns()
pageForwardColumns
in interface ColumnNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isPageForwardColumnsSupported() returns falseisPageForwardColumnsSupported()
public void lastColumn()
lastColumn
in interface ColumnNavigationInterface
java.lang.UnsupportedOperationException
- Thrown if
isLastColumnSupported() returns falseisLastColumnSupported()
public void gotoColumn(int column)
gotoColumn
in interface ColumnNavigationInterface
column
- the column index
java.lang.UnsupportedOperationException
- Thrown if
isGotoColumnSupported() returns falseisGotoColumnSupported()
public int getStartColumn()
getStartColumn
in interface ColumnNavigationInterface
public void setStartColumn(int start)
start
- first column to be displayed in the TableViewpublic int getEndColumn()
getEndColumn
in interface ColumnNavigationInterface
public void setEndColumn(int end)
end
- last column to be displayed in the TableViewpublic abstract int getColumnCount()
getColumnCount
in interface ColumnNavigationInterface
public int getColumnPageSize()
getColumnPageSize
in interface ColumnNavigationInterface
public void setColumnPageSize(int columns)
setColumnPageSize
in interface ColumnNavigationInterface
columns
- the number of columns to display per pagepublic void setPageSize(int rows, int columns)
rows
- the number of rows to display per pagecolumns
- the number of columns to display per pagepublic int getBorderWidth()
public void setBorderWidth(int border)
width
- the border width in pixels
java.lang.IllegalArgumentException
- if border < 0public int getCellSpacing()
public void setCellSpacing(int spacing)
spacing
- the number of pixels between each cell
java.lang.IllegalArgumentException
- if spacing < 0public int getCellPadding()
public void setCellPadding(int padding)
padding
- the number of pixels between the cell border and the cell
content
java.lang.IllegalArgumentException
- if padding < 0public int getWidth()
public void setWidth(int width)
width
- the width in pixels
java.lang.IllegalArgumentException
- if width < 0public int getWidthPercentage()
public void setWidthPercentage(int percentage)
percentage
- the width as a percentage
java.lang.IllegalArgumentException
- if percentage < 0public int getHorizontalAlignment()
public void setHorizontalAlignment(int alignment)
alignment
- the position of the table on the page
java.lang.IllegalArgumentException
- if alignment is invalidpublic java.lang.String getSummary()
public void setSummary(java.lang.String summary)
summary
- a brief description of the structure and purpose of the
tablepublic java.lang.String getCaption()
public void setCaption(java.lang.String caption)
caption
- a brief description to describe the nature of the tablepublic boolean isColumnHeaderVisible()
setColumnHeaderVisible(boolean)
public void setColumnHeaderVisible(boolean visible)
visible
- true if column header should be visibleisColumnHeaderVisible()
public boolean isRowHeaderVisible()
setRowHeaderVisible(boolean)
public void setRowHeaderVisible(boolean visible)
visible
- true if header should be visibleisRowHeaderVisible()
public void setAllActionsVisible(boolean visible)
visible
- true if actions on the table are to be visiblepublic boolean isAllActionsVisible()
public com.sas.rpf.Context getRulesContext()
public void setRulesContext(com.sas.rpf.Context rulesContext)
rulesContext
- The rulesContext to set.public boolean isColumnsResizable()
public void setColumnsResizable(boolean columnsResizable)
columnsResizable
- true if column resizing is supportedpublic int getTextWrapping()
public void setTextWrapping(int textWrapping)
textWrapping
- An int specifying locations where text wrapping is on,
possible values are WRAP_NONE and WRAP_ALLprotected void writeContent(java.io.PrintWriter out) throws java.io.IOException
BaseActionTransformation2
writeContent
in class com.sas.servlet.tbeans.BaseActionTransformation2
java.io.IOException
BaseActionTransformation2.write(PrintWriter)
protected void writeTableTFoot(java.io.PrintWriter out) throws java.io.IOException
java.io.IOException
public void addFeature(com.sas.servlet.tbeans.features.Feature feature)
feature
- a Feature to addprotected void writeFeatures(javax.servlet.http.HttpServletRequest request, java.io.PrintWriter out) throws java.io.IOException
request
- out
-
java.io.IOException
protected void addMoveMenu(TableCellRenderer renderer, ActionList actions)
protected StyleInfo removeLastBorder(TableCellRenderer renderer, int col, int row, StyleInfo savedStyle)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |