public MetaInfoReader getMetaInfoReader() { // If metaInfoWriter isn't null, then currently we edit the table, so we must return metaInfoWriter to include // user changes when display the table to a user. return metaInfoWriter != null ? metaInfoWriter : table.getMetaInfoReader(); }
private MetaInfoWriter getMetaInfoWriter() { if (metaInfoWriter == null) { // Initialize meta info writer and use it later instead of reader this.metaInfoWriter = new MetaInfoWriterImpl(table.getMetaInfoReader(), gridTable); } return metaInfoWriter; }
public synchronized void cancel() { while (actions.hasUndo()) { undo(); } gridTable.stopEditing(); if (metaInfoWriter != null) { metaInfoWriter = null; } table.getMetaInfoReader().release(); }
int numRows = getMaxNumRowsToDisplay(table); TableModel tableModel = TableModel.initializeTableModel(table, filters, numRows, editor.getLinkBuilder(), mode, editor.getView(), openLTable.getMetaInfoReader());