Browse Source

REPORT-4868 设计器视觉bug修改(二)部分=>19 下拉框样式统一

master
plough 7 years ago
parent
commit
a06510c08b
  1. 12
      designer_form/src/com/fr/design/mainframe/widget/UITreeComboBox.java

12
designer_form/src/com/fr/design/mainframe/widget/UITreeComboBox.java

@ -16,6 +16,8 @@ import com.fr.design.designer.beans.*;
import com.fr.design.designer.beans.events.DesignerEditListener;
import com.fr.design.designer.beans.events.DesignerEvent;
import com.fr.design.designer.creator.XCreator;
import com.fr.design.gui.icombobox.UIComboBox;
import com.fr.design.gui.icombobox.UIComboBoxUI;
import com.fr.design.gui.icontainer.UIScrollPane;
import com.fr.design.mainframe.ComponentTree;
import com.sun.java.swing.plaf.motif.*;
@ -24,7 +26,7 @@ import com.sun.java.swing.plaf.windows.*;
/**
* 控件树下拉列表框
*/
public class UITreeComboBox extends JComboBox{
public class UITreeComboBox extends UIComboBox {
/**
* 显示用的树
*/
@ -76,7 +78,7 @@ public class UITreeComboBox extends JComboBox{
} else if(cui instanceof MotifComboBoxUI){
cui = new MotifJTreeComboBoxUI();
} else {
cui = new WindowsJTreeComboBoxUI();
cui = new UIJTreeComboBoxUI();
}
setUI(cui);
}
@ -107,6 +109,12 @@ public class UITreeComboBox extends JComboBox{
}
}
class UIJTreeComboBoxUI extends UIComboBoxUI {
protected ComboPopup createPopup() {
return new TreePopup(comboBox);
}
}
class MotifJTreeComboBoxUI extends MotifComboBoxUI{
protected ComboPopup createPopup() {
return new TreePopup(comboBox);

Loading…
Cancel
Save