|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--ami.gui.AMITableModel
Description: Pluggable Table model
| Field Summary | |
static String |
ARRAY
|
(package private) AMITableModelImpl |
atmi
|
(package private) boolean[] |
bColumnEditable
column editable mode |
(package private) String[] |
columnNames
column name |
(package private) Object |
data
Data to display |
static String |
HASHTABLE
|
static String |
RT
|
static String |
VECTOR
|
| Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
| Constructor Summary | |
AMITableModel()
Convenient default constructor |
|
AMITableModel(String[] columnNames,
Object[][] data,
boolean[] bColumnEditable)
default constructor : array storage |
|
AMITableModel(String sPrototype,
String[] columnNames,
Object data,
boolean[] bColumnEditable)
given storage |
|
| Method Summary | |
void |
addRow()
Add a void row |
void |
addRow(Object o)
Add a row with data |
void |
cleanRow(int[] iRows,
int[] iColumns)
Clean selected rows/columns |
Class |
getColumnClass(int c)
put your documentation comment here |
int |
getColumnCount()
put your documentation comment here |
String |
getColumnName(int col)
put your documentation comment here |
AMITableModelImpl |
getImpl()
getter for the implimentation of this model |
int |
getRowCount()
|
Object |
getValueAt(int row,
int col)
put your documentation comment here |
boolean |
isCellEditable(int row,
int col)
put your documentation comment here |
void |
refreshStatus()
refresh status |
void |
removeRow(int[] iSelection)
Remove an interval of rows |
static void |
setComboColumn(TableColumn tc,
Vector values)
Set combo value for the given column |
void |
setValueAt(Object value,
int row,
int col)
put your documentation comment here |
void |
tableChanged(TableModelEvent tme)
notify all listeners |
| Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
Object data
String[] columnNames
boolean[] bColumnEditable
public static final String ARRAY
public static final String VECTOR
public static final String RT
public static final String HASHTABLE
AMITableModelImpl atmi
| Constructor Detail |
public AMITableModel(String[] columnNames,
Object[][] data,
boolean[] bColumnEditable)
String[] - columnNames column namesObject[][] - data data as arrayboolean[] - bColumnEditable flag for editable columns
public AMITableModel(String sPrototype,
String[] columnNames,
Object data,
boolean[] bColumnEditable)
String - sPrototype storage typeString[] - columnNames column namesObject - data can be array or vectorboolean[] - bColumnEditable flag for editable columnspublic AMITableModel()
| Method Detail |
public AMITableModelImpl getImpl()
public void cleanRow(int[] iRows,
int[] iColumns)
public int getColumnCount()
getColumnCount in class AbstractTableModelpublic String getColumnName(int col)
getColumnName in class AbstractTableModelcol - public Class getColumnClass(int c)
getColumnClass in class AbstractTableModelc -
public boolean isCellEditable(int row,
int col)
isCellEditable in class AbstractTableModelrow - col - public void tableChanged(TableModelEvent tme)
public static void setComboColumn(TableColumn tc,
Vector values)
public int getRowCount()
getRowCount in class AbstractTableModel
public Object getValueAt(int row,
int col)
getValueAt in class AbstractTableModelrow - col -
public void setValueAt(Object value,
int row,
int col)
setValueAt in class AbstractTableModelvalue - row - col - public void removeRow(int[] iSelection)
public void addRow()
public void addRow(Object o)
public void refreshStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||