|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
jmri.jmrix.can.cbus.swing.eventtable.CbusEventTableDataModel
public class CbusEventTableDataModel
Table data model for display of Cbus events
| Field Summary | |
|---|---|
static int |
COMMENTCOLUMN
|
static int |
EVENTCOLUMN
|
static int |
IDCOLUMN
|
static int |
NAMECOLUMN
|
static int |
NODECOLUMN
|
static int |
NUMCOLUMN
|
static int |
TYPECOLUMN
|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Method Summary | |
|---|---|
void |
addEvent()
Register new event |
void |
configureTable(JTable eventTable)
Configure a table to have our standard rows and columns. |
void |
dispose()
|
Class<?> |
getColumnClass(int col)
|
int |
getColumnCount()
|
String |
getColumnName(int col)
|
int |
getColumnWidth(int col)
|
int |
getPreferredWidth(int col)
|
int |
getRowCount()
Returns the number of rows to be displayed. |
Object |
getValueAt(int row,
int col)
|
boolean |
isCellEditable(int row,
int col)
|
void |
message(CanMessage m)
*** Capture node and event and add to table |
protected void |
printColumns(HardcopyWriter w,
String[] columnStrings,
int[] columnWidth)
|
void |
printTable(HardcopyWriter w)
Method to self print or print preview the table. |
void |
reply(CanReply m)
*** Capture node and event and add to table |
void |
saveAsTable()
Method to self save as a .csv file, first prompting for a filename |
void |
saveTable()
Method to self save as a .csv file |
void |
setValueAt(Object value,
int row,
int col)
|
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int IDCOLUMN
public static final int NODECOLUMN
public static final int NAMECOLUMN
public static final int EVENTCOLUMN
public static final int TYPECOLUMN
public static final int COMMENTCOLUMN
public static final int NUMCOLUMN
| Method Detail |
|---|
public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic int getColumnWidth(int col)
public Class<?> getColumnClass(int col)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModel
public boolean isCellEditable(int row,
int col)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModel
public Object getValueAt(int row,
int col)
getValueAt in interface TableModelpublic int getPreferredWidth(int col)
public void setValueAt(Object value,
int row,
int col)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic void configureTable(JTable eventTable)
eventTable - public void message(CanMessage m)
message in interface CanListenerpublic void reply(CanReply m)
reply in interface CanListenerpublic void addEvent()
public void dispose()
public void saveTable()
public void saveAsTable()
public void printTable(HardcopyWriter w)
protected void printColumns(HardcopyWriter w,
String[] columnStrings,
int[] columnWidth)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||