JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table.data
Class JCEditableFileDataSource

java.lang.Object
  |
  +--com.klg.jclass.table.data.AbstractDataSource
        |
        +--com.klg.jclass.table.data.AbstractVectorDataSource
              |
              +--com.klg.jclass.table.data.JCVectorDataSource
                    |
                    +--com.klg.jclass.table.data.JCInputStreamDataSource
                          |
                          +--com.klg.jclass.table.data.JCFileDataSource
                                |
                                +--com.klg.jclass.table.data.JCEditableFileDataSource
All Implemented Interfaces:
EditableTableDataModel, JCTableDataModel, Serializable, TableDataModel

public class JCEditableFileDataSource
extends JCFileDataSource
implements EditableTableDataModel

Editable version of FileDataSource.

See Also:
JCInputStreamDataSource, JCFileDataSource, Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.table.data.JCInputStreamDataSource
customParser, dataFormat
 
Fields inherited from class com.klg.jclass.table.data.JCVectorDataSource
cells, column_labels, columns, is_moving, row_labels, rows
 
Fields inherited from class com.klg.jclass.table.data.AbstractDataSource
listeners
 
Constructor Summary
JCEditableFileDataSource(File f)
           
JCEditableFileDataSource(String fname)
           
 
Method Summary
 boolean setTableDataItem(Object value, int row, int column)
          Sets the cell value.
 
Methods inherited from class com.klg.jclass.table.data.JCInputStreamDataSource
detectFileFormat, getCustomParser, getDataFormat, read, readFromStream, setCustomParser, setDataFormat
 
Methods inherited from class com.klg.jclass.table.data.JCVectorDataSource
addColumn, addColumn, addRow, addRow, clearCells, deleteColumns, deleteColumns, deleteRows, deleteRows, getCells, getColumnLabels, getLabelValue, getNumColumns, getNumRows, getRowLabels, getTableColumnLabel, getTableDataItem, getTableRowLabel, isCell, isColumnLabel, isLabel, isRowLabel, isValidCell, isValidLabel, moveColumns, moveColumns, moveRows, moveRows, setCell, setCells, setCells, setColumnLabel, setColumnLabels, setColumnLabels, setDataChanged, setLabelValue, setNumColumns, setNumRows, setRowLabel, setRowLabels, setRowLabels
 
Methods inherited from class com.klg.jclass.table.data.AbstractVectorDataSource
createVector, createVector, createVector, createVector, createVector, removeElementsAt, setElementAt, strip
 
Methods inherited from class com.klg.jclass.table.data.AbstractDataSource
addTableDataListener, dispose, fireColumnChanged, fireColumnLabelChanged, fireColumnsAdded, fireColumnsDeleted, fireColumnsMoved, fireDataReset, fireNumColumnsChanged, fireNumRowsChanged, fireRowChanged, fireRowDeleted, fireRowLabelChanged, fireRowsAdded, fireRowsMoved, fireTableDataEvent, fireValueChanged, hasListeners, removeTableDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.klg.jclass.table.TableDataModel
addTableDataListener, removeTableDataListener
 
Methods inherited from interface com.klg.jclass.util.JCTableDataModel
getNumColumns, getNumRows, getTableColumnLabel, getTableDataItem, getTableRowLabel
 

Constructor Detail

JCEditableFileDataSource

public JCEditableFileDataSource(String fname)
                         throws FileNotFoundException,
                                IOException
Parameters:
fname - the name of the file to be used
Throws:
FileNotFoundException - Thrown if the file isn't there
IOException - Thrown if some other sort of i/o problem is encountered.

JCEditableFileDataSource

public JCEditableFileDataSource(File f)
                         throws FileNotFoundException,
                                IOException
Parameters:
f - a File object representing the file to be opened
Throws:
FileNotFoundException - Thrown if the file isn't there
IOException - Thrown if some other sort of i/o problem is encountered.
See Also:
File
Method Detail

setTableDataItem

public boolean setTableDataItem(Object value,
                                int row,
                                int column)
Sets the cell value.

Specified by:
setTableDataItem in interface EditableTableDataModel
Parameters:
column -
row -
value -
Returns:

Copyright © 2004 Quest Software Inc..
All rights reserved.