Example usage for javax.swing.table AbstractTableModel subclass-usage

List of usage examples for javax.swing.table AbstractTableModel subclass-usage

Introduction

In this page you can find the example usage for javax.swing.table AbstractTableModel subclass-usage.

Usage

From source file components.TableSorter.java

/**
 * TableSorter is a decorator for TableModels; adding sorting
 * functionality to a supplied TableModel. TableSorter does
 * not store or copy the data in its TableModel; instead it maintains
 * a map from the row indexes of the view to the row indexes of the
 * model. As requests are made of the sorter (like getValueAt(row, col))

From source file org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.DenormalizedMDXTableModel.java

/**
 * Axis indexes are predefined: 0 = Columns, 1 = rows, 2 = pages, 3 = sections, 4 = Chapters, 5 and greater: unnamed) Up
 * to 128 axises can be specified. There can be queries with no axis at all, which returns a single cell.
 *
 * @author : Thomas Morgner
 */

From source file ColorTableColumnRenderer.java

class MyTableModel extends AbstractTableModel {
    protected Vector vector;

    protected int columnsCount = 1;

    public MyTableModel() {

From source file org.pentaho.reporting.engine.classic.extensions.datasources.olap4j.BandedMDXTableModel.java

/**
 * This tablemodel performs some preprocessing to get multi-dimensional resultset (with row and column headers) into a
 * classical table-structure. The banded tablemodel wraps the column axis into columns of the tablemodel and maps all
 * other axes into rows.
 * <p/>
 * Technically this is a hybrid between the legacy-banded-mdx model and the denormalized model. The column axis is

From source file org.pentaho.reporting.engine.classic.extensions.datasources.xpath.XPathTableModel.java

public class XPathTableModel extends AbstractTableModel {
    private static final Log logger = LogFactory.getLog(XPathTableModel.class);

    private static class InternalXPathVariableResolver implements XPathVariableResolver {
        private final DataRow parameters;

From source file Main.java

class StringTableModel extends AbstractTableModel {
    public static final int IMG_COL = 0;

    public String[] m_colNames = { "Variable Dimension" };

    public Class[] m_colTypes = { String.class };

From source file pl.otros.logview.gui.LogDataTableModel.java

public class LogDataTableModel extends AbstractTableModel
        implements LogDataCollector, MarkableTableModel, NotableTableModel {

    private static final String EMPTY_STRING = "";

    private static final Logger LOGGER = Logger.getLogger(LogDataTableModel.class.getName());

From source file org.pentaho.reporting.engine.classic.extensions.datasources.xpath.LegacyXPathTableModel.java

public class LegacyXPathTableModel extends AbstractTableModel {
    private static final Log logger = LogFactory.getLog(LegacyXPathTableModel.class);
    public static final String DISALLOW_DOCTYPE_DECL = "http://apache.org/xml/features/disallow-doctype-decl";
    public static final String XPATH_ENABLE_DTDS = "org.pentaho.reporting.engine.classic.extensions.datasources.xpath.EnableDTDs";

    private static class InternalXPathVariableResolver implements XPathVariableResolver {

From source file TableSortDemo.java

class MyTableModel extends AbstractTableModel {
    protected int sortCol = 0;

    protected boolean isSortAsc = true;

    protected int m_result = 0;

From source file org.pentaho.reporting.designer.core.util.table.expressions.ReportPreProcessorPropertiesTableModel.java

public class ReportPreProcessorPropertiesTableModel extends AbstractTableModel
        implements ElementMetaDataTableModel, GroupingModel {
    private static final Log logger = LogFactory.getLog(ReportPreProcessorPropertiesTableModel.class);

    private static final GroupingHeader[] EMPTY_GROUPINGS = new GroupingHeader[0];
    private static final ReportPreProcessorPropertyMetaData[] EMPTY_METADATA = new ReportPreProcessorPropertyMetaData[0];