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