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