|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ami.gui.AMITableModelImpl
|
+--ami.gui.AMITableModelRTImpl
RT implementation of the model
| Field Summary | |
static String |
CONNECTED
|
static String |
DISCONNECTED
|
(package private) HashMap |
hmStatus
Stores status for disponibility status icons pu ->status |
private int |
iConnected
Number of reachable peers |
static String |
IGNORE
|
private JLabel |
jl
Label used to display connection number |
(package private) Vector |
vData
AMI Routing Table storage For new rows, contains a Object array with {pu,al,ip,cm,connected} |
| Fields inherited from class ami.gui.AMITableModelImpl |
atm |
| Constructor Summary | |
(package private) |
AMITableModelRTImpl(AMITableModel atm)
Constructor : initialize the AMITableModel to use |
| Method Summary | |
void |
addRow()
Add a row |
void |
addRow(Object o)
Add a row with data Assumes that the row is validated |
void |
cleanRow(int[] iRows,
int[] iColumns)
Initialize all values of a set of rows |
int |
getConnectionNumber()
Return number of connected peers we can reach |
int |
getRowCount()
|
HashMap |
getStatusTable()
Accessor for status table, used by the control center when refreshing screen |
Object |
getValueAt(int row,
int col)
put your documentation comment here |
boolean |
isCellEditable(int row,
int col)
put your documentation comment here |
void |
refreshStatus()
Update status for all rows |
void |
refreshStatus(int row)
Update status for the given row |
void |
removeRow(int[] iSelection)
Remove an interval of rows |
void |
setConnectionDisplay(JLabel jl)
Set label used to display connection information |
void |
setValueAt(Object value,
int row,
int col)
put your documentation comment here |
| Methods inherited from class ami.gui.AMITableModelImpl |
setATM |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final String IGNORE
public static final String CONNECTED
public static final String DISCONNECTED
Vector vData
HashMap hmStatus
pu ->status
private int iConnected
private JLabel jl
| Constructor Detail |
AMITableModelRTImpl(AMITableModel atm)
| Method Detail |
public HashMap getStatusTable()
public int getConnectionNumber()
public void setConnectionDisplay(JLabel jl)
public void refreshStatus()
refreshStatus in class AMITableModelImplpublic void refreshStatus(int row)
public int getRowCount()
getRowCount in class AMITableModelImpl
public Object getValueAt(int row,
int col)
getValueAt in class AMITableModelImplrow - col -
public void setValueAt(Object value,
int row,
int col)
setValueAt in class AMITableModelImplvalue - row - col - public void removeRow(int[] iSelection)
removeRow in class AMITableModelImpl
public void cleanRow(int[] iRows,
int[] iColumns)
AMITableModelImplcleanRow in class AMITableModelImplpublic void addRow()
addRow in class AMITableModelImplpublic void addRow(Object o)
Assumes that the row is validated
addRow in class AMITableModelImpl
public boolean isCellEditable(int row,
int col)
isCellEditable in class AMITableModelImplrow - col -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||