Package jadex.base.gui.config
Class ArgumentTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jadex.base.gui.config.ArgumentTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class ArgumentTableModel extends javax.swing.table.AbstractTableModel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.String>
arguments
The edited arguments.static java.lang.String[]
COLUMN_NAMES
The column names.protected java.lang.String
config
The currently selected configuration.protected IModelInfo
mi
The model info.
-
Constructor Summary
Constructors Constructor Description ArgumentTableModel(IModelInfo mi)
Create an argument table model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getArguments()
Get the edited arguments.int
getColumnCount()
Get the number of columns.java.lang.String
getColumnName(int column)
Get the name of a column.int
getRowCount()
Get the number of rows.java.lang.Object
getValueAt(int row, int column)
Get a table cell value.boolean
isCellEditable(int row, int column)
Ask if cell may be edited.void
setConfiguration(java.lang.String config)
Set the selected configuration.void
setValueAt(java.lang.Object val, int row, int column)
Set a cell value.-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Field Detail
-
COLUMN_NAMES
public static final java.lang.String[] COLUMN_NAMES
The column names.
-
mi
protected IModelInfo mi
The model info.
-
arguments
protected java.util.Map<java.lang.String,java.lang.String> arguments
The edited arguments.
-
config
protected java.lang.String config
The currently selected configuration.
-
-
Constructor Detail
-
ArgumentTableModel
public ArgumentTableModel(IModelInfo mi)
Create an argument table model.
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
Get the number of columns.
-
getColumnName
public java.lang.String getColumnName(int column)
Get the name of a column.- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
-
getRowCount
public int getRowCount()
Get the number of rows.
-
getValueAt
public java.lang.Object getValueAt(int row, int column)
Get a table cell value.
-
isCellEditable
public boolean isCellEditable(int row, int column)
Ask if cell may be edited.- Specified by:
isCellEditable
in interfacejavax.swing.table.TableModel
- Overrides:
isCellEditable
in classjavax.swing.table.AbstractTableModel
-
setValueAt
public void setValueAt(java.lang.Object val, int row, int column)
Set a cell value.- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
setConfiguration
public void setConfiguration(java.lang.String config)
Set the selected configuration.
-
getArguments
public java.util.Map<java.lang.String,java.lang.String> getArguments()
Get the edited arguments.
-
-