Class ContextTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jadex.gpmn.editor.gui.propertypanels.ContextTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class ContextTableModel extends javax.swing.table.AbstractTableModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelContainer
modelcontainer
The model container
-
Constructor Summary
Constructors Constructor Description ContextTableModel(ModelContainer modelcontainer)
Creates the table model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter()
Adds a new parameter.java.lang.Class<?>
getColumnClass(int columnIndex)
Gets the column class.int
getColumnCount()
Get the column count.java.lang.String
getColumnName(int column)
Gets the column name.int
getRowCount()
Get the row count.java.lang.Object
getValueAt(int rowIndex, int columnIndex)
Get the value.boolean
isCellEditable(int rowIndex, int columnIndex)
Test if cell is editable.void
removeParameter(int index)
Removes a parameter.void
removeParameters(int[] indexes)
Removes parameters.void
setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
Set a value.-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
modelcontainer
protected ModelContainer modelcontainer
The model container
-
-
Constructor Detail
-
ContextTableModel
public ContextTableModel(ModelContainer modelcontainer)
Creates the table model.
-
-
Method Detail
-
addParameter
public void addParameter()
Adds a new parameter.
-
removeParameter
public void removeParameter(int index)
Removes a parameter.- Parameters:
index
- The parameter index.
-
removeParameters
public void removeParameters(int[] indexes)
Removes parameters.- Parameters:
indexes
- The parameter indexes.
-
getRowCount
public int getRowCount()
Get the row count.
-
getColumnCount
public int getColumnCount()
Get the column count.
-
getValueAt
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
Get the value.
-
setValueAt
public void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
Set a value.- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
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
-
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)
Test if cell is editable.- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
-