|
|
@ -9,6 +9,7 @@ import com.fr.design.data.tabledata.wrapper.TemplateTableDataWrapper; |
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
|
import com.fr.design.gui.icombobox.UIComboBoxRenderer; |
|
|
|
import com.fr.design.gui.icombobox.UIComboBoxRenderer; |
|
|
|
import com.fr.file.TableDataConfig; |
|
|
|
import com.fr.file.TableDataConfig; |
|
|
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.*; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.*; |
|
|
@ -80,12 +81,13 @@ public class TreeTableDataComboBox extends UIComboBox { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSelectedTableDataByName(String name) { |
|
|
|
public void setSelectedTableDataByName(String name) { |
|
|
|
|
|
|
|
refresh(); |
|
|
|
TableDataWrapper tableDataWrapper; |
|
|
|
TableDataWrapper tableDataWrapper; |
|
|
|
if (res_map.get(name) != null) { |
|
|
|
String changeName = DesignTableDataManager.getFinalChangedDsNameByOldDsName(name); |
|
|
|
tableDataWrapper = res_map.get(name); |
|
|
|
if (StringUtils.isNotEmpty(changeName)) { |
|
|
|
} else { |
|
|
|
|
|
|
|
String changeName = DesignTableDataManager.getChangedDsNameByOldDsName(name); |
|
|
|
|
|
|
|
tableDataWrapper = res_map.get(changeName); |
|
|
|
tableDataWrapper = res_map.get(changeName); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
tableDataWrapper = res_map.get(name); |
|
|
|
} |
|
|
|
} |
|
|
|
this.getModel().setSelectedItem(tableDataWrapper); |
|
|
|
this.getModel().setSelectedItem(tableDataWrapper); |
|
|
|
} |
|
|
|
} |
|
|
|