com.adventnet.beans.table
Class ExportTable
java.lang.Object
|
+--com.adventnet.beans.table.ExportTable
- public class ExportTable
- extends java.lang.Object
ExportTable bean dumps the contents of a table to a given file. ExportTable * bean is used only when the 'Build Type' of the Screen is of 'Application Type *'.
Drop an ExportTable bean from the AdventNetUtils.jar and set the Build type * as Application .Drop a table and then set the table to the ExportTable bean, * using the given code
ExportTable1.exportTable(JTable1);
On Compiling and running the screen a JFileChooser pops up. Specify the path * and give a file name and save it . The Table gets saved in the given name on * the given path.
- Version:
- 1.0
- Author:
- ""
|
Constructor Summary |
ExportTable()
Constructs an ExportTable Object |
|
Method Summary |
void |
export(java.lang.String fName,
javax.swing.JTable table)
|
void |
exportTable(javax.swing.JTable table)
This method brings up a JFileChooser which is used to specify the file name,
in which the table contents are dumped . |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ExportTable
public ExportTable()
- Constructs an ExportTable Object
exportTable
public void exportTable(javax.swing.JTable table)
- This method brings up a JFileChooser which is used to specify the file name,
in which the table contents are dumped .
- Parameters:
table -
export
public void export(java.lang.String fName,
javax.swing.JTable table)
throws java.io.IOException
- Parameters:
fName - :table - :- Throws:
- java.io.IOException - :
© 2001 - 2002 AdventNet Inc. Visit us at: http://www.adventnet.com