You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.0 KiB
70 lines
2.0 KiB
/* |
|
* Copyright(c) 2001-2010, FineReport Inc, All Rights Reserved. |
|
*/ |
|
package com.fr.design.data.datapane; |
|
|
|
import com.fr.data.TableDataSource; |
|
import com.fr.design.ExtraDesignClassManager; |
|
import com.fr.design.fun.TableDataPaneProcessor; |
|
import com.fr.design.gui.controlpane.JControlPane; |
|
import com.fr.design.gui.controlpane.NameableCreator; |
|
import com.fr.design.gui.frpane.LoadingBasicPane; |
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
import com.fr.general.Inter; |
|
|
|
import javax.swing.*; |
|
import java.awt.*; |
|
import java.util.Map; |
|
|
|
/** |
|
* @author richer |
|
* @since 6.5.5 |
|
* 创建于2011-6-14 |
|
*/ |
|
public class ReportTableDataPane extends LoadingBasicPane { |
|
private JControlPane tdPane; |
|
|
|
@Override |
|
protected void initComponents(JPanel container) { |
|
container.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
TableDataPaneProcessor paneProcessor = ExtraDesignClassManager.getInstance().getTableDataPaneProcessor(); |
|
JControlPane pane = null; |
|
if (paneProcessor != null) { |
|
pane = paneProcessor.createServerTableDataPane(); |
|
} |
|
tdPane = pane == null ? new TableDataListPane() { |
|
@Override |
|
public NameableCreator[] createNameableCreators() { |
|
|
|
return TableDataCreatorProducer.getInstance().createReportTableDataCreator(); |
|
} |
|
} : pane; |
|
container.add(tdPane, BorderLayout.CENTER); |
|
} |
|
|
|
@Override |
|
protected String title4PopupWindow() { |
|
return Inter.getLocText("DS-Report_TableData"); |
|
} |
|
|
|
public void populate(TableDataSource tds) { |
|
tdPane.populate(tds); |
|
} |
|
|
|
public void update(TableDataSource tds) { |
|
tdPane.update(tds); |
|
} |
|
|
|
/** |
|
* 检查tdListPane有效性check Valid |
|
* |
|
* @throws Exception 异常 |
|
*/ |
|
public void checkValid() throws Exception { |
|
this.tdPane.checkValid(); |
|
} |
|
|
|
public Map<String, String> getDsNameChangedMap() { |
|
return tdPane.getDsNameChangedMap(); |
|
} |
|
} |