001package jmri.jmrix.acela.nodeconfig; 002 003import javax.swing.table.AbstractTableModel; 004 005/** 006 * 007 * @author Bob 008 */ 009public abstract class NodeConfigModel extends AbstractTableModel { 010 011 protected int numrows = 16; // Trying to make a property here 012 protected boolean editmode = true; // Trying to make a property here 013 014 @Override 015 public int getRowCount() { 016 return numrows; 017 } 018 019 public void setNumRows(int r) { 020 numrows = r; 021 } 022 023 public void setEditMode(boolean b) { 024 editmode = b; 025 } 026 027 public boolean getEditMode() { 028 return editmode; 029 } 030 031}