public class InitStateTableModel extends AbstractTableModel
listenerList
Constructor and Description |
---|
InitStateTableModel(InitialStatePanel panel,
NamedStateList imanager,
boolean several)
simple constructor
|
Modifier and Type | Method and Description |
---|---|
void |
copyLine(int line) |
void |
deleteRow(int row)
delete a row
|
void |
disabledEdition(List<NamedState> states) |
void |
doSetValueAt(Object aValue,
int rowIndex,
int columnIndex) |
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
boolean[] |
getEdition() |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
moveLine(int[] sel,
int direction)
Move the selection.
|
void |
reset()
empty the table of init states.
|
void |
setDisabling(boolean disabling) |
void |
setEdition(boolean[] s) |
void |
setParam(Map param)
reverse job of the "getContent" method
|
void |
setTable(EnhancedJTable tableInitStates) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
static Object |
showValue(List element,
int maxvalue) |
void |
toggleSelectAll() |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public InitStateTableModel(InitialStatePanel panel, NamedStateList imanager, boolean several)
panel
- imanager
- several
- public int getRowCount()
public void setDisabling(boolean disabling)
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public Object getValueAt(int rowIndex, int columnIndex)
public static Object showValue(List element, int maxvalue)
element
- maxvalue
- public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
here, each cell contains a vector of integer to represent a list of ranges/values
here we have to parse strings like "1-4 ; 6-7" to construct vector like [1 ; 2 ; 3 ; 4 ; 6 ; 7]
public void doSetValueAt(Object aValue, int rowIndex, int columnIndex)
public void copyLine(int line)
public void moveLine(int[] sel, int direction)
sel
- direction
- public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int getColumnCount()
public void reset()
public void deleteRow(int row)
row
- the index of the row to deletepublic void setParam(Map param)
param
- public void disabledEdition(List<NamedState> states)
public void setEdition(boolean[] s)
public boolean[] getEdition()
public void setTable(EnhancedJTable tableInitStates)
public void toggleSelectAll()
Copyright © 2005–2020. All rights reserved.