|
|
@ -8,6 +8,9 @@ import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BoxLayout; |
|
|
|
import javax.swing.BoxLayout; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
|
|
|
import java.awt.event.MouseListener; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class TreeRootPane extends BasicPane { |
|
|
|
public class TreeRootPane extends BasicPane { |
|
|
@ -21,7 +24,7 @@ public class TreeRootPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
private UICheckBox layerTypeCheckBox; |
|
|
|
private UICheckBox layerTypeCheckBox; |
|
|
|
|
|
|
|
|
|
|
|
private UICheckBox returnFullPathCheckBox ; |
|
|
|
private UICheckBox returnFullPathCheckBox; |
|
|
|
|
|
|
|
|
|
|
|
public TreeRootPane() { |
|
|
|
public TreeRootPane() { |
|
|
|
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); |
|
|
|
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); |
|
|
@ -38,9 +41,12 @@ public class TreeRootPane extends BasicPane { |
|
|
|
checkTypePane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); |
|
|
|
checkTypePane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); |
|
|
|
loadTypeCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Widget_Load_By_Async")); |
|
|
|
loadTypeCheckBox = new UICheckBox(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Widget_Load_By_Async")); |
|
|
|
loadTypeCheckBox.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); |
|
|
|
loadTypeCheckBox.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0)); |
|
|
|
loadTypeCheckBox.addItemListener(e -> { |
|
|
|
loadTypeCheckBox.addMouseListener(new MouseAdapter() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
UICheckBox checkBox = (UICheckBox) e.getSource(); |
|
|
|
UICheckBox checkBox = (UICheckBox) e.getSource(); |
|
|
|
doLoadTypeChange(checkBox.isSelected()); |
|
|
|
doLoadTypeChange(checkBox.isSelected()); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
loadTypePane.add(loadTypeCheckBox); |
|
|
|
loadTypePane.add(loadTypeCheckBox); |
|
|
@ -62,7 +68,7 @@ public class TreeRootPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void doLoadTypeChange(boolean selected) { |
|
|
|
private void doLoadTypeChange(Boolean selected) { |
|
|
|
//给埋点插件提供一个方法,埋埋点用
|
|
|
|
//给埋点插件提供一个方法,埋埋点用
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|