|
|
@ -183,30 +183,7 @@ public class SmartInsertDBManipulationPane extends DBManipulationPane { |
|
|
|
* @param evt 事件s |
|
|
|
* @param evt 事件s |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void actionPerformed(ActionEvent evt) { |
|
|
|
public void actionPerformed(ActionEvent evt) { |
|
|
|
|
|
|
|
showCellWindow(false); |
|
|
|
// Grid.GridSelectionListener
|
|
|
|
|
|
|
|
if (ePane == null) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
* 布局 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
BasicPane bPane = new SmartJTablePane4DB(keyColumnValuesTable.getTableModel4SmartAddCell(), ePane); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ReportWriteAttrDialog.this.setVisible(false);
|
|
|
|
|
|
|
|
hideDialog4AddCellAction(); |
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
* 当前的ReportPane不可编辑,不可切换Sheet,加GridSelectionChangeListener |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
ePane.setEditable(false); |
|
|
|
|
|
|
|
ePane.setSelection(NO_SELECTION); |
|
|
|
|
|
|
|
ePane.getGrid().setNotShowingTableSelectPane(false); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BasicDialog dlg = bPane.showWindow(DesignerContext.getDesignerFrame()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dlg.setModal(false); |
|
|
|
|
|
|
|
dlg.setVisible(true); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -220,26 +197,36 @@ public class SmartInsertDBManipulationPane extends DBManipulationPane { |
|
|
|
* @param e 事件s |
|
|
|
* @param e 事件s |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
if (ePane == null) { |
|
|
|
showCellWindow(true); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 切换到单元格窗口,设置属性面板不可编辑 |
|
|
|
|
|
|
|
* @param isCellGroup 判断是否单元格组 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
BasicPane bPane = new SmartJTablePane4DB(keyColumnValuesTable.getTableModel4SmartAddCell(), ePane, true); |
|
|
|
private void showCellWindow(boolean isCellGroup){ |
|
|
|
|
|
|
|
if (ePane == null) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ReportWriteAttrDialog.this.setVisible(false);
|
|
|
|
BasicPane bPane = new SmartJTablePane4DB(keyColumnValuesTable.getTableModel4SmartAddCell(), ePane, isCellGroup); |
|
|
|
hideDialog4AddCellAction(); |
|
|
|
|
|
|
|
|
|
|
|
// ReportWriteAttrDialog.this.setVisible(false);
|
|
|
|
|
|
|
|
hideDialog4AddCellAction(); |
|
|
|
/* |
|
|
|
/* |
|
|
|
* 当前的ReportPane不可编辑,不可切换Sheet,加GridSelectionChangeListener |
|
|
|
* 当前的ReportPane不可编辑,不可切换Sheet,加GridSelectionChangeListener |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
ePane.setSelection(NO_SELECTION); |
|
|
|
//必须先设置面板不可编辑才能释放单元格选中
|
|
|
|
ePane.setEditable(false); |
|
|
|
ePane.setEditable(false); |
|
|
|
ePane.getGrid().setNotShowingTableSelectPane(false); |
|
|
|
ePane.setSelection(NO_SELECTION); |
|
|
|
|
|
|
|
ePane.getGrid().setNotShowingTableSelectPane(false); |
|
|
|
|
|
|
|
|
|
|
|
BasicDialog dlg = bPane.showWindow(SwingUtilities.getWindowAncestor(SmartInsertDBManipulationPane.this)); |
|
|
|
BasicDialog dlg = bPane.showWindow(SwingUtilities.getWindowAncestor(SmartInsertDBManipulationPane.this)); |
|
|
|
|
|
|
|
|
|
|
|
dlg.setModal(false); |
|
|
|
dlg.setModal(false); |
|
|
|
dlg.setVisible(true); |
|
|
|
dlg.setVisible(true); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void showDialogAfterAddCellAction() { |
|
|
|
private void showDialogAfterAddCellAction() { |
|
|
|