|
|
|
@ -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); |
|
|
|
|