|
|
|
@ -3,16 +3,8 @@ package com.fr.design.mainframe.widget;
|
|
|
|
|
/** |
|
|
|
|
* Created by xiaxiang on 2016/9/30. |
|
|
|
|
*/ |
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.event.*; |
|
|
|
|
import javax.swing.*; |
|
|
|
|
import javax.swing.plaf.*; |
|
|
|
|
import javax.swing.plaf.basic.*; |
|
|
|
|
import javax.swing.plaf.metal.*; |
|
|
|
|
import javax.swing.tree.*; |
|
|
|
|
|
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.designer.beans.*; |
|
|
|
|
import com.fr.design.designer.beans.AdapterBus; |
|
|
|
|
import com.fr.design.designer.beans.events.DesignerEditListener; |
|
|
|
|
import com.fr.design.designer.beans.events.DesignerEvent; |
|
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
|
|
@ -20,8 +12,36 @@ 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.*; |
|
|
|
|
import com.sun.java.swing.plaf.windows.*; |
|
|
|
|
import com.sun.java.swing.plaf.motif.MotifComboBoxUI; |
|
|
|
|
|
|
|
|
|
import javax.swing.DefaultListCellRenderer; |
|
|
|
|
import javax.swing.JComboBox; |
|
|
|
|
import javax.swing.JComponent; |
|
|
|
|
import javax.swing.JLabel; |
|
|
|
|
import javax.swing.JList; |
|
|
|
|
import javax.swing.JPopupMenu; |
|
|
|
|
import javax.swing.JScrollPane; |
|
|
|
|
import javax.swing.JTree; |
|
|
|
|
import javax.swing.ListCellRenderer; |
|
|
|
|
import javax.swing.MenuSelectionManager; |
|
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
|
import javax.swing.UIManager; |
|
|
|
|
import javax.swing.plaf.ComboBoxUI; |
|
|
|
|
import javax.swing.plaf.basic.ComboPopup; |
|
|
|
|
import javax.swing.plaf.metal.MetalComboBoxUI; |
|
|
|
|
import javax.swing.tree.TreeCellRenderer; |
|
|
|
|
import javax.swing.tree.TreePath; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.Graphics; |
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
import java.awt.event.KeyListener; |
|
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
import java.awt.event.MouseListener; |
|
|
|
|
import java.awt.event.MouseMotionAdapter; |
|
|
|
|
import java.awt.event.MouseMotionListener; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 控件树下拉列表框 |
|
|
|
@ -111,12 +131,6 @@ public class UITreeComboBox extends UIComboBox {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class WindowsJTreeComboBoxUI extends WindowsComboBoxUI{ |
|
|
|
|
protected ComboPopup createPopup() { |
|
|
|
|
return new TreePopup(comboBox); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class UIJTreeComboBoxUI extends UIComboBoxUI { |
|
|
|
|
protected ComboPopup createPopup() { |
|
|
|
|
return new TreePopup(comboBox); |
|
|
|
|