|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.servlet.tbeans.BaseTransformation
|
+--com.sas.servlet.tbeans.BaseActionTransformation
|
+--com.sas.servlet.tbeans.tableview.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 int |
WRAP_ALL
|
static int |
WRAP_NONE
|
| Fields inherited from interface com.sas.servlet.tbeans.HttpConstants |
ALL, BASELINE, CHAR, COL, COLGROUP, JUSTIFY, MULTIPLE, NONE, ROW, ROWGROUP, SINGLE |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
AbstractBaseTableView()
Constructs a new default TableView. |
|
| Method Summary | |
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. |
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. |
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. |
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. |
Map |
getStyleMap()
Returns a Map containing all the style information for this component. |
String |
getSummary()
Returns the summary attribute of the table. |
int |
getTextWrapping()
Get locations where text wrapping is on |
SimpleTemplate |
getURLTemplate()
Returns the Viewer's URLTemplate. |
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. |
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(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(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(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 |
setURLTemplate(SimpleTemplate newURLTemplate)
Sets the Viewer's URLTemplate. |
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 |
write(PrintWriter out)
Writes the transformed representation of the object. |
void |
writeColumnHeader(OutputStream out)
Writes the row of the tableview which contains the column headers. |
abstract void |
writeColumnHeader(PrintWriter out)
Writes the row of the tableview which contains the column headers. |
void |
writeColumnHeader(Writer out)
Writes the row of the tableview which contains the column headers. |
void |
writeEmptyTable(OutputStream out)
Writes an empty table when a model is not attached or the data model contains no rows. |
abstract void |
writeEmptyTable(PrintWriter out)
Writes an empty table when a model is not attached or the data model contains no rows. |
void |
writeEmptyTable(Writer out)
Writes an empty table when a model is not attached or the data model contains no rows. |
protected void |
writeRows(OutputStream out)
Writes the rows of data for the tableview. |
protected abstract void |
writeRows(PrintWriter out)
Writes the rows of data for the tableview. |
protected void |
writeRows(Writer out)
Writes the rows of data for the tableview. |
void |
writeTableFooter(OutputStream out)
Writes the footer tag for the tableview. |
abstract void |
writeTableFooter(PrintWriter out)
Writes the footer tag for the tableview. |
void |
writeTableFooter(Writer out)
Writes the footer tag for the tableview. |
void |
writeTableHeader(OutputStream out)
Writes the header tag and all its attributes for tableview. |
abstract void |
writeTableHeader(PrintWriter out)
Writes the header tag and all its attributes for tableview. |
void |
writeTableHeader(Writer out)
Writes the header tag and all its attributes for tableview. |
| Methods inherited from class com.sas.servlet.tbeans.BaseActionTransformation |
dispose, getActionProvider, getActionSupportType, getUniqueId, isActionVisible, listActionTypes, listAreaTypes, setActionProvider, setActionSupportType, setActionVisible, setUniqueId |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sas.actionprovider.HttpActionProviderViewInterface |
getRequest, setRequest |
| Field Detail |
public static final int WRAP_NONE
public static final int WRAP_ALL
| Constructor Detail |
public AbstractBaseTableView()
| Method Detail |
public abstract void initialize()
public void write(PrintWriter out)
throws IOException
write in class BaseActionTransformationout - The output streamIOException - Thrown if some type of I/O error occurs
public void writeTableHeader(Writer out)
throws IOException
out - the output streamIOException - Thrown if some type of I/O error occurs
public void writeTableHeader(OutputStream out)
throws IOException
out - the output streamIOException - Thrown if some type of I/O error occurs
public abstract void writeTableHeader(PrintWriter out)
throws IOException
out - the output streamIOException - Thrown if some type of I/O error occurs
public void writeColumnHeader(Writer out)
throws IOException
out - the output streamIOException - Thrown if some type of I/O error occurs
public void writeColumnHeader(OutputStream out)
throws IOException
out - the output streamIOException - Thrown if some type of I/O error occurs
public abstract void writeColumnHeader(PrintWriter out)
throws IOException
out - the output streamIOException - Thrown if some type of I/O error occurs
protected void writeRows(Writer out)
throws IOException
out - The output streamIOException - Thrown if some type of I/O error occurs
protected void writeRows(OutputStream out)
throws IOException
out - The output streamIOException - Thrown if some type of I/O error occurs
protected abstract void writeRows(PrintWriter out)
throws IOException
out - The output streamIOException - Thrown if some type of I/O error occurs
public void writeTableFooter(Writer out)
throws IOException
out - the output streamIOException - Thrown if some type of I/O error occurs
public void writeTableFooter(OutputStream out)
throws IOException
out - the output streamIOException - Thrown if some type of I/O error occurs
public abstract void writeTableFooter(PrintWriter out)
throws IOException
out - the output streamIOException - Thrown if some type of I/O error occurs
public void writeEmptyTable(Writer out)
throws IOException
out - The output streamIOException - Thrown if some type of I/O error occurs
public void writeEmptyTable(OutputStream out)
throws IOException
out - The output streamIOException - Thrown if some type of I/O error occurs
public abstract void writeEmptyTable(PrintWriter out)
throws IOException
out - The output streamIOException - Thrown if some type of I/O error occurspublic Map getStyleMap()
getStyleMap in interface ComplexStyleInterfacepublic boolean isFirstRowSupported()
isFirstRowSupported in interface RowNavigationInterfacefirstRow()public boolean isPageBackwardRowsSupported()
isPageBackwardRowsSupported in interface RowNavigationInterfacepageBackwardRows()public boolean isPreviousRowSupported()
isPreviousRowSupported in interface RowNavigationInterfacepreviousRow()public boolean isNextRowSupported()
isNextRowSupported in interface RowNavigationInterfacenextRow()public boolean isPageForwardRowsSupported()
isPageForwardRowsSupported in interface RowNavigationInterfacepageForwardRows()public boolean isLastRowSupported()
isLastRowSupported in interface RowNavigationInterfacelastRow()public boolean isGotoRowSupported()
isGotoRowSupported in interface RowNavigationInterfacegotoRow(int)public void firstRow()
firstRow in interface RowNavigationInterfaceUnsupportedOperationException - Thrown if
isFirstRowSupported() returns falseisFirstRowSupported()public void pageBackwardRows()
pageBackwardRows in interface RowNavigationInterfaceUnsupportedOperationException - Thrown if
isPageBackwardRowsSupported() returns falseisPageBackwardRowsSupported()public void previousRow()
previousRow in interface RowNavigationInterfaceUnsupportedOperationException - Thrown if
isPreviousRowSupported() returns falseisPreviousRowSupported()public void nextRow()
nextRow in interface RowNavigationInterfaceUnsupportedOperationException - Thrown if
isNextRowSupported() returns falseisNextRowSupported()public void pageForwardRows()
pageForwardRows in interface RowNavigationInterfaceUnsupportedOperationException - Thrown if
isPageForwardRowsSupported() returns falseisPageForwardRowsSupported()public void lastRow()
lastRow in interface RowNavigationInterfaceUnsupportedOperationException - Thrown if
isLastRowSupported() returns falseisLastRowSupported()public void gotoRow(int row)
gotoRow in interface RowNavigationInterfacerow - the row indexUnsupportedOperationException - Thrown if
isGotoRowSupported() returns falseisGotoRowSupported()public int getStartRow()
getStartRow in interface RowNavigationInterfacepublic void setStartRow(int start)
start - first row to be displayed in the TableViewpublic int getEndRow()
getEndRow in interface RowNavigationInterfacepublic void setEndRow(int end)
end - last row to be displayed in the TableViewpublic abstract int getRowCount()
getRowCount in interface RowNavigationInterfacepublic int getRowPageSize()
getRowPageSize in interface RowNavigationInterfacepublic void setRowPageSize(int rows)
setRowPageSize in interface RowNavigationInterfacerows - the number of rows to display per pagepublic abstract boolean isAccurateRowCountAvailable()
isAccurateRowCountAvailable in interface AccurateRowCountInterfacepublic String getFormName()
getFormName in interface RowNavigationInterfacepublic int getColumnScrollSize()
public boolean isFirstColumnSupported()
isFirstColumnSupported in interface ColumnNavigationInterfacefirstColumn()public boolean isPageBackwardColumnsSupported()
isPageBackwardColumnsSupported in interface ColumnNavigationInterfacepageBackwardColumns()public boolean isPreviousColumnSupported()
isPreviousColumnSupported in interface ColumnNavigationInterfacepreviousColumn()public boolean isNextColumnSupported()
isNextColumnSupported in interface ColumnNavigationInterfacenextColumn()public boolean isPageForwardColumnsSupported()
isPageForwardColumnsSupported in interface ColumnNavigationInterfacepageForwardColumns()public boolean isLastColumnSupported()
isLastColumnSupported in interface ColumnNavigationInterfacepublic boolean isGotoColumnSupported()
isGotoColumnSupported in interface ColumnNavigationInterfacegotoColumn(int)public void firstColumn()
firstColumn in interface ColumnNavigationInterfaceUnsupportedOperationException - Thrown if
isFirstColumnSupported() returns falseisFirstColumnSupported()public void pageBackwardColumns()
pageBackwardColumns in interface ColumnNavigationInterfaceUnsupportedOperationException - Thrown if
isPageBackwardColumnsSupported() returns falseisPageBackwardColumnsSupported()public void previousColumn()
previousColumn in interface ColumnNavigationInterfaceUnsupportedOperationException - Thrown if
isPreviousColumnSupported() returns falseisPreviousColumnSupported()public void nextColumn()
nextColumn in interface ColumnNavigationInterfaceUnsupportedOperationException - Thrown if
isNextColumnSupported() returns falseisNextColumnSupported()public void pageForwardColumns()
pageForwardColumns in interface ColumnNavigationInterfaceUnsupportedOperationException - Thrown if
isPageForwardColumnsSupported() returns falseisPageForwardColumnsSupported()public void lastColumn()
lastColumn in interface ColumnNavigationInterfaceUnsupportedOperationException - Thrown if
isLastColumnSupported() returns falseisLastColumnSupported()public void gotoColumn(int column)
gotoColumn in interface ColumnNavigationInterfacecolumn - the column indexUnsupportedOperationException - Thrown if
isGotoColumnSupported() returns falseisGotoColumnSupported()public int getStartColumn()
getStartColumn in interface ColumnNavigationInterfacepublic void setStartColumn(int start)
start - first column to be displayed in the TableViewpublic int getEndColumn()
getEndColumn in interface ColumnNavigationInterfacepublic void setEndColumn(int end)
end - last column to be displayed in the TableViewpublic abstract int getColumnCount()
getColumnCount in interface ColumnNavigationInterfacepublic int getColumnPageSize()
getColumnPageSize in interface ColumnNavigationInterfacepublic void setColumnPageSize(int columns)
setColumnPageSize in interface ColumnNavigationInterfacecolumns - the number of columns to display per page
public 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 pixelsIllegalArgumentException - if border < 0public int getCellSpacing()
public void setCellSpacing(int spacing)
spacing - the number of pixels between each cellIllegalArgumentException - if spacing < 0public int getCellPadding()
public void setCellPadding(int padding)
padding - the number of pixels between the cell border and the cell
contentIllegalArgumentException - if padding < 0public int getWidth()
public void setWidth(int width)
width - the width in pixelsIllegalArgumentException - if width < 0public int getWidthPercentage()
public void setWidthPercentage(int percentage)
percentage - the width as a percentageIllegalArgumentException - if percentage < 0public int getHorizontalAlignment()
public void setHorizontalAlignment(int alignment)
alignment - the position of the table on the pageIllegalArgumentException - if alignment is invalidpublic String getSummary()
public void setSummary(String summary)
summary - a brief description of the structure and purpose of the
tablepublic String getCaption()
public void setCaption(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 setURLTemplate(SimpleTemplate newURLTemplate)
setURLTemplate in interface URLTemplateViewInterfacename - the Viewer's URLTemplategetURLTemplate()public SimpleTemplate getURLTemplate()
getURLTemplate in interface URLTemplateViewInterfacesetURLTemplate(com.sas.util.SimpleTemplate)public void setAllActionsVisible(boolean visible)
visible - true if actions on the table are to be visiblepublic boolean isAllActionsVisible()
public Context getRulesContext()
public void setRulesContext(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_ALL
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||