Browse Source

REPORT-131194 智能提交表头UI问题

fbp-1.0
Levy.Xie-解安森 4 months ago
parent
commit
bf8115189a
  1. 11
      designer-realize/src/main/java/com/fr/design/cell/smartaction/SmartJTablePane.java

11
designer-realize/src/main/java/com/fr/design/cell/smartaction/SmartJTablePane.java

@ -12,6 +12,7 @@ import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener; import javax.swing.event.ListSelectionListener;
import javax.swing.table.AbstractTableModel; import javax.swing.table.AbstractTableModel;
import com.fr.design.gui.itable.FineUITable;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.dialog.BasicDialog; import com.fr.design.dialog.BasicDialog;
import com.fr.design.dialog.BasicPane; import com.fr.design.dialog.BasicPane;
@ -24,7 +25,6 @@ import com.fr.design.selection.SelectionListener;
* SmartJTablePane用于在Grid上面选单元格时编辑JTable * SmartJTablePane用于在Grid上面选单元格时编辑JTable
*/ */
public abstract class SmartJTablePane extends BasicPane { public abstract class SmartJTablePane extends BasicPane {
private static final String UI_CLASS_ID = "TableHeaderUI";
public static final int OK = 0; public static final int OK = 0;
public static final int CANCEL = 1; public static final int CANCEL = 1;
@ -35,7 +35,7 @@ public abstract class SmartJTablePane extends BasicPane {
protected SelectionListener gridSelectionChangeL; protected SelectionListener gridSelectionChangeL;
protected SmartJTablePaneAction action; protected SmartJTablePaneAction action;
protected JTable table; protected FineUITable table;
protected JScrollPane scrollPane; protected JScrollPane scrollPane;
protected boolean old_editable = true; protected boolean old_editable = true;
@ -58,7 +58,7 @@ public abstract class SmartJTablePane extends BasicPane {
this.add(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_RWA_Click_Cell_To_Edit_Value")), BorderLayout.NORTH); this.add(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_RWA_Click_Cell_To_Edit_Value")), BorderLayout.NORTH);
// BasicPane的center放JTable // BasicPane的center放JTable
table = new JTable(model); table = new FineUITable(model);
this.add(scrollPane = new UITableScrollPane(table), BorderLayout.CENTER); this.add(scrollPane = new UITableScrollPane(table), BorderLayout.CENTER);
// 鼠标切换选中项时,editingRowIndex也要跟着变 // 鼠标切换选中项时,editingRowIndex也要跟着变
@ -117,9 +117,4 @@ public abstract class SmartJTablePane extends BasicPane {
return dlg; return dlg;
} }
@Override
public String getUIClassID() {
return UI_CLASS_ID;
}
} }

Loading…
Cancel
Save