org.autoplot.ascii.AsciiTableTableModel

You will need to: model.setParser(parser); this.jTable1.setModel(model); model.setFile(file); jTable1.setDefaultRenderer(Object.class, new ColSpanTableCellRenderer()); AsciiParser.DelimParser p; try { p = parser.setDelimParser(f, AsciiParser.DELIM_COMMA); model.setRecParser(p); }

AsciiTableTableModel( )


PROP_FILE


PROP_RECPARSER


PROP_PARSER


addPropertyChangeListener

addPropertyChangeListener( java.beans.PropertyChangeListener listener ) → void

Parameters

listener - a PropertyChangeListener

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


getColumnCount

getColumnCount( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc]


getFile

getFile( ) → java.io.File

Returns:

java.io.File

[search for examples] [view on GitHub] [view on old javadoc]


getLine

getLine( int skip ) → String

Parameters

skip - an int

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc]


getParser

getParser( ) → org.das2.qds.util.AsciiParser

Returns:

org.das2.qds.util.AsciiParser

[search for examples] [view on GitHub] [view on old javadoc]


getRecParser

getRecParser( ) → org.das2.qds.util.AsciiParser.RecordParser

Returns:

org.das2.qds.util.AsciiParser.RecordParser

[search for examples] [view on GitHub] [view on old javadoc]


getRowCount

getRowCount( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc]


getValueAt

getValueAt( int row, int column ) → Object

Parameters

row - an int
column - an int

Returns:

java.lang.Object

[search for examples] [view on GitHub] [view on old javadoc]


isColSpan

isColSpan( int row, int column ) → boolean

Parameters

row - an int
column - an int

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc]


isRecord

isRecord( int row ) → boolean

returns true if the row is believed to be a record. If it is not, then the entire line is returned for each column, and the ColSpanTableCellRenderer should be used.

Parameters

row - an int

Returns:

a boolean

[search for examples] [view on GitHub] [view on old javadoc]


removePropertyChangeListener

removePropertyChangeListener( java.beans.PropertyChangeListener listener ) → void

Parameters

listener - a PropertyChangeListener

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


setFile

setFile( java.io.File file ) → void

Parameters

file - a File

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


setParser

setParser( org.das2.qds.util.AsciiParser parser ) → void

Parameters

parser - an AsciiParser

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]


setRecParser

setRecParser( org.das2.qds.util.AsciiParser.RecordParser recParser ) → void

Parameters

recParser - an AsciiParser.RecordParser

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc]