com.alibaba.druid.support.jconsole.model
Class DruidTableModel
java.lang.Object
com.alibaba.druid.support.jconsole.model.DruidTableModel
- All Implemented Interfaces:
- TableModel
public class DruidTableModel
- extends Object
- implements TableModel
自定义duird监控数据表格模板类
- Author:
- yunnysunny
DruidTableModel
public DruidTableModel(ArrayList<LinkedHashMap<String,Object>> list)
DruidTableModel
public DruidTableModel(ArrayList<LinkedHashMap<String,Object>> list,
ArrayList<String> showKeys)
getColumnClass
public Class<?> getColumnClass(int columnIndex)
- Specified by:
getColumnClass in interface TableModel
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount in interface TableModel
getColumnName
public String getColumnName(int columnIndex)
- Specified by:
getColumnName in interface TableModel
getRowCount
public int getRowCount()
- Specified by:
getRowCount in interface TableModel
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
- Specified by:
getValueAt in interface TableModel
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Specified by:
isCellEditable in interface TableModel
addTableModelListener
public void addTableModelListener(TableModelListener l)
- Specified by:
addTableModelListener in interface TableModel
removeTableModelListener
public void removeTableModelListener(TableModelListener l)
- Specified by:
removeTableModelListener in interface TableModel
setValueAt
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
- Specified by:
setValueAt in interface TableModel
Copyright © 2012 Alibaba Group. All Rights Reserved.