|
|
|
@ -26,14 +26,14 @@ import com.fr.design.gui.ilable.UILabel;
|
|
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
|
import java.awt.event.ItemListener; |
|
|
|
|
import java.util.List; |
|
|
|
|
import javax.swing.*; |
|
|
|
|
import javax.swing.event.PopupMenuEvent; |
|
|
|
|
import javax.swing.event.PopupMenuListener; |
|
|
|
|
|
|
|
|
|
public class JTreeAutoBuildPane extends BasicPane implements PreviewLabel.Previewable, EditOrNewLabel.Editable { |
|
|
|
|
private TreeTableDataComboBox treeTableDataComboBox; |
|
|
|
@ -61,6 +61,23 @@ public class JTreeAutoBuildPane extends BasicPane implements PreviewLabel.Previe
|
|
|
|
|
tdChange(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// REPORT-38762 加一个展开监听事件,下拉框展开时刷新一下数据集
|
|
|
|
|
treeTableDataComboBox.addPopupMenuListener(new PopupMenuListener() { |
|
|
|
|
@Override |
|
|
|
|
public void popupMenuWillBecomeVisible(PopupMenuEvent e) { |
|
|
|
|
treeTableDataComboBox.refresh(DesignTableDataManager.getEditingTableDataSource()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void popupMenuCanceled(PopupMenuEvent e) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
selectTreeDataPanel.add(treeTableDataComboBox); |
|
|
|
|
treeTableDataComboBox.setPreferredSize(new Dimension(200, 25)); |
|
|
|
|
treeTableDataComboBox.setSelectedIndex(-1); |
|
|
|
|