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