|
|
|
@ -33,14 +33,30 @@ public class UIMenuTable extends JTable {
|
|
|
|
|
initComponents(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 传入列表数据 |
|
|
|
|
* |
|
|
|
|
* @param values 数据 |
|
|
|
|
*/ |
|
|
|
|
public void populateBean(List<UIMenuNameableCreator> values) { |
|
|
|
|
((UIMenuTableDataModel) dataModel).populateBean(values); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 获取模型中数据 |
|
|
|
|
* |
|
|
|
|
* @return 数据 |
|
|
|
|
*/ |
|
|
|
|
public List<UIMenuNameableCreator> updateBean() { |
|
|
|
|
return ((UIMenuTableDataModel) dataModel).updateBean(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 编辑事件 |
|
|
|
|
* |
|
|
|
|
* @param rowIndex 行索引 |
|
|
|
|
* @param mouseY mouseY |
|
|
|
|
*/ |
|
|
|
|
public void editingEvent(int rowIndex, int mouseY) { |
|
|
|
|
selectedRowIndex = rowIndex; |
|
|
|
|
repaint(); |
|
|
|
|