|
|
@ -48,8 +48,8 @@ import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
public class DBTableDataPane extends AbstractTableDataPane<DBTableData> { |
|
|
|
public class DBTableDataPane extends AbstractTableDataPane<DBTableData> { |
|
|
|
private static final String PREVIEW_BUTTON = Inter.getLocText("Preview"); |
|
|
|
private static final String PREVIEW_BUTTON = Inter.getLocText("FR-Designer_Preview"); |
|
|
|
private static final String REFRESH_BUTTON = Inter.getLocText("Refresh"); |
|
|
|
private static final String REFRESH_BUTTON = Inter.getLocText("FR-Designer_Refresh"); |
|
|
|
private ConnectionTableProcedurePane connectionTableProcedurePane; |
|
|
|
private ConnectionTableProcedurePane connectionTableProcedurePane; |
|
|
|
private UITableEditorPane<ParameterProvider> editorPane; |
|
|
|
private UITableEditorPane<ParameterProvider> editorPane; |
|
|
|
|
|
|
|
|
|
|
@ -78,7 +78,7 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> { |
|
|
|
|
|
|
|
|
|
|
|
JPanel paraMeanPane = new JPanel(new BorderLayout()); |
|
|
|
JPanel paraMeanPane = new JPanel(new BorderLayout()); |
|
|
|
paraMeanPane.setPreferredSize(new Dimension(680, 90)); |
|
|
|
paraMeanPane.setPreferredSize(new Dimension(680, 90)); |
|
|
|
UILabel paraMean = new UILabel(Inter.getLocText("Datasource-Param_DES")); |
|
|
|
UILabel paraMean = new UILabel(Inter.getLocText("FR-Designer-Datasource-Param_DES")); |
|
|
|
paraMeanPane.add(paraMean, BorderLayout.CENTER); |
|
|
|
paraMeanPane.add(paraMean, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
|
|
ParameterTableModel model = new ParameterTableModel() { |
|
|
|
ParameterTableModel model = new ParameterTableModel() { |
|
|
@ -144,7 +144,7 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected String title4PopupWindow() { |
|
|
|
protected String title4PopupWindow() { |
|
|
|
return Inter.getLocText("DS-Database_Query"); |
|
|
|
return Inter.getLocText("FR-Designer-DS-Database_Query"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void refresh() { |
|
|
|
private void refresh() { |
|
|
@ -164,7 +164,7 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> { |
|
|
|
toolBarDef.addShortCut(new PreviewAction()); |
|
|
|
toolBarDef.addShortCut(new PreviewAction()); |
|
|
|
toolBarDef.addShortCut(SeparatorDef.DEFAULT); |
|
|
|
toolBarDef.addShortCut(SeparatorDef.DEFAULT); |
|
|
|
toolBarDef.addShortCut(new EditPageQueryAction()); |
|
|
|
toolBarDef.addShortCut(new EditPageQueryAction()); |
|
|
|
isShareCheckBox = new UICheckBox(Inter.getLocText("Is_Share_DBTableData")); |
|
|
|
isShareCheckBox = new UICheckBox(Inter.getLocText("FR-Designer_Is_Share_DBTableData")); |
|
|
|
maxPanel = new MaxMemRowCountPanel(); |
|
|
|
maxPanel = new MaxMemRowCountPanel(); |
|
|
|
maxPanel.setBorder(null); |
|
|
|
maxPanel.setBorder(null); |
|
|
|
UIToolbar editToolBar = ToolBarDef.createJToolBar(); |
|
|
|
UIToolbar editToolBar = ToolBarDef.createJToolBar(); |
|
|
@ -237,7 +237,7 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> { |
|
|
|
String dbName = this.connectionTableProcedurePane.getSelectedDatabaseConnnectonName(); |
|
|
|
String dbName = this.connectionTableProcedurePane.getSelectedDatabaseConnnectonName(); |
|
|
|
if (StringUtils.isBlank(dbName) || StringUtils.isBlank(this.sqlTextPane.getText())) { |
|
|
|
if (StringUtils.isBlank(dbName) || StringUtils.isBlank(this.sqlTextPane.getText())) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
throw new Exception(Inter.getLocText("Connect_SQL_Cannot_Null") + "."); |
|
|
|
throw new Exception(Inter.getLocText("FR-Designer_Connect_SQL_Cannot_Null") + "."); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
// JOptionPane.showMessageDialog(DBTableDataPane.this,
|
|
|
|
// JOptionPane.showMessageDialog(DBTableDataPane.this,
|
|
|
|
// Inter.getLocText("Connect_SQL_Cannot_Null") + ".");
|
|
|
|
// Inter.getLocText("Connect_SQL_Cannot_Null") + ".");
|
|
|
@ -292,7 +292,7 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> { |
|
|
|
|
|
|
|
|
|
|
|
private class EditPageQueryAction extends UpdateAction { |
|
|
|
private class EditPageQueryAction extends UpdateAction { |
|
|
|
public EditPageQueryAction() { |
|
|
|
public EditPageQueryAction() { |
|
|
|
this.setName(Inter.getLocText("LayerPageReport_PageQuery")); |
|
|
|
this.setName(Inter.getLocText("FR-Designer-LayerPageReport_PageQuery")); |
|
|
|
this.setMnemonic('L'); |
|
|
|
this.setMnemonic('L'); |
|
|
|
this.setSmallIcon(BaseUtils.readIcon("/com/fr/design/images/m_file/text.png")); |
|
|
|
this.setSmallIcon(BaseUtils.readIcon("/com/fr/design/images/m_file/text.png")); |
|
|
|
} |
|
|
|
} |
|
|
@ -342,7 +342,7 @@ public class DBTableDataPane extends AbstractTableDataPane<DBTableData> { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected String title4PopupWindow() { |
|
|
|
protected String title4PopupWindow() { |
|
|
|
return Inter.getLocText("LayerPageReport_Define_PageQuerySQL"); |
|
|
|
return Inter.getLocText("FR-Designer-LayerPageReport_Define_PageQuerySQL"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |