Package jmri.jmrit.logixng.actions.swing
Class WebRequestTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.logixng.actions.swing.WebRequestTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class WebRequestTableModel extends javax.swing.table.AbstractTableModel
Table model for WebRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebRequestTableModel.CellRenderer
static class
WebRequestTableModel.DataTypeCellEditor
-
Field Summary
Fields Modifier and Type Field Description static int
COLUMN_DATA
static int
COLUMN_DELETE
static int
COLUMN_DUMMY
static int
COLUMN_NAME
static int
COLUMN_TYPE
-
Constructor Summary
Constructors Constructor Description WebRequestTableModel(java.util.Collection<WebRequest.Parameter> namedBeanReference)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add()
java.lang.Class<?>
getColumnClass(int col)
int
getColumnCount()
java.lang.String
getColumnName(int col)
java.util.List<WebRequest.Parameter>
getDataList()
int
getRowCount()
java.lang.Object
getValueAt(int rowIndex, int columnIndex)
boolean
isCellEditable(int row, int col)
void
setColumnsForComboBoxes(javax.swing.JTable table)
void
setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
COLUMN_NAME
public static final int COLUMN_NAME
- See Also:
- Constant Field Values
-
COLUMN_TYPE
public static final int COLUMN_TYPE
- See Also:
- Constant Field Values
-
COLUMN_DATA
public static final int COLUMN_DATA
- See Also:
- Constant Field Values
-
COLUMN_DELETE
public static final int COLUMN_DELETE
- See Also:
- Constant Field Values
-
COLUMN_DUMMY
public static final int COLUMN_DUMMY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebRequestTableModel
public WebRequestTableModel(java.util.Collection<WebRequest.Parameter> namedBeanReference)
-
-
Method Detail
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getColumnClass
public java.lang.Class<?> getColumnClass(int col)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int col)
- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
setValueAt
public void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
getValueAt
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
-
setColumnsForComboBoxes
public void setColumnsForComboBoxes(javax.swing.JTable table)
-
add
public void add()
-
getDataList
public java.util.List<WebRequest.Parameter> getDataList()
-
-