|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.tableview.html.TableViewComposite
public class TableViewComposite
TableViewComposite is a TransformationBean that is composed of other TransformationBeans that include the following sub-components: MenuBar, NavigationBar, TableView, Title and Footer.
The TableViewComposite is one of several TransformationBeans that are considered composite components. A composite component allows a developer to design custom components that are made up of a combination of other components, such as TextEntry, ListBox, and Label TransformationBeans. The visual layout of a composite component can be easily controlled through a template. For more information on composite TransformationBeans, refer to the AppDev Studio Developer Site. You'll find a useful reference document entitled Composite TransformationBeans as well as the TransformationBean Component and Style Reference.
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:TableViewComposite 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 |
---|
Fields inherited from interface com.sas.servlet.tbeans.tableview.html.TableViewCompositeKeysInterface |
---|
TABLEVIEW_APPLIEDFILTERS, TABLEVIEW_COLUMN_NAVIGATIONBAR, TABLEVIEW_FOOTER, TABLEVIEW_MENUBAR, TABLEVIEW_ROW_NAVIGATIONBAR, TABLEVIEW_TABLEDATA, TABLEVIEW_TITLE |
Fields inherited from interface com.sas.servlet.tbeans.tableview.html.TableViewCompositeStyleKeysInterface |
---|
TABLEVIEW_CONTAINER_STYLE, TABLEVIEW_CONTENT_STYLE, TABLEVIEW_FOOTER_STYLE, TABLEVIEW_TITLE_STYLE, TABLEVIEW_TOOLBAR_STYLE |
Constructor Summary | |
---|---|
TableViewComposite()
Constructs a new default TableViewComposite with a null data model. |
|
TableViewComposite(int numRows,
int numColumns)
Constructs a TableViewComposite with numRows and numColumns of empty cells using DefaultTableModel. |
|
TableViewComposite(java.lang.Object[][] rowData,
java.lang.Object[] columnNames)
Constructs a TableViewComposite whose data model will be constructed from the two dimensional array, rowData, with column names, columnNames. |
|
TableViewComposite(javax.swing.table.TableModel tableModel)
Constructs a TableViewComposite that is initialized with a tableModel as the data model. |
|
TableViewComposite(javax.swing.table.TableModel tableModel,
TableColumnModel columnModel)
Constructs a TableViewComposite that is initialized with tableModel as the data model. |
|
TableViewComposite(javax.swing.table.TableModel tm,
TableColumnModel cm,
TableRowModel rm)
Constructs a TableViewComposite that is initialized with tableModel as the data model. |
|
TableViewComposite(java.util.Vector rowData,
java.util.Vector columnNames)
Constructs a TableViewComposite whose data model will be constructed from the values in the Vector of Vectors, rowData, with column names, columnNames. |
Method Summary | |
---|---|
protected AppliedFilters |
getDefaultAppliedFilters()
Returns the default AppliedFilters object for the TableViewComposite. |
javax.swing.table.TableModel |
getModel()
Return the data model for the TableViewComposite. |
void |
setModel(javax.swing.table.TableModel tableModel)
Sets the data model for the TableViewComposite. |
protected void |
writeContent(java.io.PrintWriter out)
Writes the transformation's main content which is everything except for the following: Opening container html element. |
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.HttpActionProviderInterface |
---|
getRequest |
Constructor Detail |
---|
public TableViewComposite()
public TableViewComposite(javax.swing.table.TableModel tableModel)
tableModel
- the data modelpublic TableViewComposite(javax.swing.table.TableModel tableModel, TableColumnModel columnModel)
tableModel
- the data modelcolumnModel
- the column model for the tablepublic TableViewComposite(javax.swing.table.TableModel tm, TableColumnModel cm, TableRowModel rm)
tableModel
- the data modelcolumnModel
- the column model for the tablerowModel
- the row model for the tablepublic TableViewComposite(int numRows, int numColumns)
numRows
- the number of rows in the data modelnumColumns
- the number of columns in the data modelDefaultTableModel
public TableViewComposite(java.lang.Object[][] rowData, java.lang.Object[] columnNames)
rowData[1][5];
All rows must be of the same length as columnNames
.
rowData
- the data for the new data modelcolumnNames
- names of each columnpublic TableViewComposite(java.util.Vector rowData, java.util.Vector columnNames)
((Vector)rowData.elementAt(1)).elementAt(5);
Each row must contain a value for each column or an exception will be raised.
rowData
- the data for the data modelcolumnNames
- names of each columnMethod Detail |
---|
protected AppliedFilters getDefaultAppliedFilters()
public javax.swing.table.TableModel getModel()
public void setModel(javax.swing.table.TableModel tableModel)
tableModel
- the data model for the TableViewCompositeprotected void writeContent(java.io.PrintWriter out) throws java.io.IOException
BaseCompositeTransformation2
writeContent
in class com.sas.servlet.tbeans.BaseCompositeTransformation2
java.io.IOException
BaseCompositeTransformation2.write(PrintWriter)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |