Browse Source

无jira任务 代码质量

newui
vito 9 months ago
parent
commit
fed17e839b
  1. 16
      designer-base/src/main/java/com/fr/design/gui/imenutable/UIMenuTable.java

16
designer-base/src/main/java/com/fr/design/gui/imenutable/UIMenuTable.java

@ -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();

Loading…
Cancel
Save