Class ServicePoolTask.ServicePoolTaskGui.MappingsTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jadex.platform.service.servicepool.ServicePoolTask.ServicePoolTaskGui.MappingsTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
- Enclosing class:
- ServicePoolTask.ServicePoolTaskGui
protected class ServicePoolTask.ServicePoolTaskGui.MappingsTableModel extends javax.swing.table.AbstractTableModel
Table model for imports.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]
colnames
protected java.util.List<ServicePoolTask.MappingEntry>
entries
-
Constructor Summary
Constructors Constructor Description MappingsTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addEntry(ServicePoolTask.MappingEntry entry)
java.lang.Class<?>
getColumnClass(int columnIndex)
Gets the column class.int
getColumnCount()
Returns the column count.java.lang.String
getColumnName(int column)
Gets the column name.int
getRowCount()
Returns the row count.java.lang.Object
getValueAt(int rowIndex, int columnIndex)
Gets the value.boolean
isCellEditable(int rowIndex, int columnIndex)
Returns whether a cell is editable.protected void
removeRow(int row)
protected void
removeRows(int[] rows)
void
setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
Sets the value.-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
colnames
protected java.lang.String[] colnames
-
entries
protected java.util.List<ServicePoolTask.MappingEntry> entries
-
-
Method Detail
-
getColumnName
public java.lang.String getColumnName(int column)
Gets the column name.- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
- Returns:
- The column name.
-
getColumnClass
public java.lang.Class<?> getColumnClass(int columnIndex)
Gets the column class.- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classjavax.swing.table.AbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex)
Returns whether a cell is editable.- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
- Parameters:
rowIndex
- The row being queried.columnIndex
- The column being queried.- Returns:
- If a cell is editable.
-
getRowCount
public int getRowCount()
Returns the row count.- Returns:
- The row count.
-
getColumnCount
public int getColumnCount()
Returns the column count.- Returns:
- The column count.
-
getValueAt
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
Gets the value.- Parameters:
rowIndex
- The row.columnIndex
- The column.- Returns:
- The value.
-
setValueAt
public void setValueAt(java.lang.Object value, int rowIndex, int columnIndex)
Sets the value.- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
- Parameters:
value
- The value.rowIndex
- The row.columnIndex
- The column.
-
addEntry
protected void addEntry(ServicePoolTask.MappingEntry entry)
-
removeRow
protected void removeRow(int row)
-
removeRows
protected void removeRows(int[] rows)
-
-