Package ball.text
Class TextTable
-
- All Implemented Interfaces:
DataSourceDefaultMethods
,DataSource
public class TextTable extends ReaderWriterDataSource
Text-basedJTable
implementation.- Author:
- Allen D. Ball
-
-
Field Summary
-
Fields inherited from class ball.activation.ReaderWriterDataSource
CHARSET
-
Fields inherited from interface ball.activation.DataSourceDefaultMethods
APPLICATION_OCTET_STREAM, APPLICATION_XML, CONTENT_TYPE, TEXT_HTML, TEXT_PLAIN
-
-
Constructor Summary
Constructors Constructor Description TextTable(TableModel model, int... tabs)
Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream()
TableModel
getModel()
protected void
render()
Method to render theTextTable
.-
Methods inherited from class ball.activation.ReaderWriterDataSource
getBufferedReader, getCharset, getPrintStream, getPrintWriter, getReader, getWriter, nameOf, toString, writeTo
-
Methods inherited from class ball.activation.FilterDataSource
getContentType, getDataSource, getName, getOutputStream, setContentType, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ball.activation.DataSourceDefaultMethods
clear, getInputStream, getOutputStream, length, wrap, wrap
-
-
-
-
Constructor Detail
-
TextTable
public TextTable(TableModel model, int... tabs)
Sole constructor.- Parameters:
model
- TheTextTable
'sTableModel
.tabs
- The preferred tab stops.
-
-
Method Detail
-
getModel
public TableModel getModel()
- Returns:
- The
TableModel
.
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStream
in interfaceDataSource
- Specified by:
getInputStream
in interfaceDataSourceDefaultMethods
- Overrides:
getInputStream
in classFilterDataSource
- Throws:
IOException
-
-