|
|
@ -13,7 +13,6 @@ import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.iprogressbar.AutoProgressBar; |
|
|
|
import com.fr.design.gui.iprogressbar.AutoProgressBar; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.chart.info.ChartInfoCollector; |
|
|
|
import com.fr.design.mainframe.chart.info.ChartInfoCollector; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
import com.fr.general.GeneralUtils; |
|
|
@ -31,6 +30,7 @@ import javax.swing.JSplitPane; |
|
|
|
import javax.swing.ListCellRenderer; |
|
|
|
import javax.swing.ListCellRenderer; |
|
|
|
import javax.swing.SwingWorker; |
|
|
|
import javax.swing.SwingWorker; |
|
|
|
import javax.swing.UIManager; |
|
|
|
import javax.swing.UIManager; |
|
|
|
|
|
|
|
import javax.swing.event.ListSelectionListener; |
|
|
|
import javax.swing.plaf.SplitPaneUI; |
|
|
|
import javax.swing.plaf.SplitPaneUI; |
|
|
|
import javax.swing.plaf.basic.BasicSplitPaneUI; |
|
|
|
import javax.swing.plaf.basic.BasicSplitPaneUI; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
@ -159,6 +159,10 @@ public class AutoChartTypePane extends ChartWizardPane implements CallbackEvent |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void registsListAction(ListSelectionListener listSelectionListener) { |
|
|
|
|
|
|
|
chartViewList.addListSelectionListener(listSelectionListener); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void refreshBox() { |
|
|
|
private void refreshBox() { |
|
|
|
TableDataWrapper dataWrap = tableNameComboBox.getSelectedItem(); |
|
|
|
TableDataWrapper dataWrap = tableNameComboBox.getSelectedItem(); |
|
|
|
|
|
|
|
|
|
|
@ -225,12 +229,12 @@ public class AutoChartTypePane extends ChartWizardPane implements CallbackEvent |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
if (!(e instanceof CancellationException)) { |
|
|
|
if (!(e instanceof CancellationException)) { |
|
|
|
connectionBar.close(); |
|
|
|
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
FineJOptionPane.showMessageDialog(AutoChartTypePane.this, e.getMessage(), |
|
|
|
FineJOptionPane.showMessageDialog(AutoChartTypePane.this, e.getMessage(), |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), JOptionPane.ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Error"), JOptionPane.ERROR_MESSAGE, UIManager.getIcon("OptionPane.errorIcon")); |
|
|
|
} |
|
|
|
} |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
|
|
|
|
connectionBar.close(); |
|
|
|
refreshButton.setEnabled(true); |
|
|
|
refreshButton.setEnabled(true); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -254,6 +258,10 @@ public class AutoChartTypePane extends ChartWizardPane implements CallbackEvent |
|
|
|
map.put(dataField, true); |
|
|
|
map.put(dataField, true); |
|
|
|
} |
|
|
|
} |
|
|
|
dataFieldBox.setSelectedValues(map); |
|
|
|
dataFieldBox.setSelectedValues(map); |
|
|
|
|
|
|
|
if (refreshButton.isEnabled()) { |
|
|
|
|
|
|
|
refreshButton.setEnabled(false); |
|
|
|
|
|
|
|
calculateAutoChart(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void update(ChartCollection cc, String createTime) { |
|
|
|
public void update(ChartCollection cc, String createTime) { |
|
|
|