Browse Source

REPORT-72377 控件-下拉框联动其他控件-值联动-FR11样式下部分控件没有联动

feature/x
Yuan.Wang 2 years ago
parent
commit
2a8968ca96
  1. 23
      designer-base/src/main/java/com/fr/design/gui/itree/refreshabletree/TreeRootPane.java
  2. 23
      designer-form/src/main/java/com/fr/design/widget/ui/designer/TreeEditorDefinePane.java

23
designer-base/src/main/java/com/fr/design/gui/itree/refreshabletree/TreeRootPane.java

@ -8,6 +8,7 @@ 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.MouseEvent;
import java.awt.event.MouseListener; import java.awt.event.MouseListener;
@ -62,32 +63,12 @@ public class TreeRootPane extends BasicPane {
} }
private void loadTypeCheckBoxAddListener() { private void loadTypeCheckBoxAddListener() {
loadTypeCheckBox.addMouseListener(new MouseListener() { loadTypeCheckBox.addMouseListener(new MouseAdapter() {
@Override @Override
public void mouseClicked(MouseEvent e) { public void mouseClicked(MouseEvent e) {
UICheckBox checkBox = (UICheckBox) e.getSource(); UICheckBox checkBox = (UICheckBox) e.getSource();
doLoadTypeChange(checkBox.isSelected()); doLoadTypeChange(checkBox.isSelected());
} }
@Override
public void mousePressed(MouseEvent e) {
}
@Override
public void mouseReleased(MouseEvent e) {
}
@Override
public void mouseEntered(MouseEvent e) {
}
@Override
public void mouseExited(MouseEvent e) {
}
}); });
} }

23
designer-form/src/main/java/com/fr/design/widget/ui/designer/TreeEditorDefinePane.java

@ -14,6 +14,7 @@ import com.fr.form.ui.TreeEditor;
import javax.swing.BorderFactory; import javax.swing.BorderFactory;
import javax.swing.JPanel; import javax.swing.JPanel;
import java.awt.Component; import java.awt.Component;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent; import java.awt.event.MouseEvent;
import java.awt.event.MouseListener; import java.awt.event.MouseListener;
@ -65,32 +66,12 @@ public class TreeEditorDefinePane extends CustomWritableRepeatEditorPane<TreeEdi
private void loadAsyncAddListener() { private void loadAsyncAddListener() {
loadAsync.addMouseListener(new MouseListener() { loadAsync.addMouseListener(new MouseAdapter() {
@Override @Override
public void mouseClicked(MouseEvent e) { public void mouseClicked(MouseEvent e) {
UICheckBox checkBox = (UICheckBox) e.getSource(); UICheckBox checkBox = (UICheckBox) e.getSource();
doLoadTypeChange(checkBox.isSelected()); doLoadTypeChange(checkBox.isSelected());
} }
@Override
public void mousePressed(MouseEvent e) {
}
@Override
public void mouseReleased(MouseEvent e) {
}
@Override
public void mouseEntered(MouseEvent e) {
}
@Override
public void mouseExited(MouseEvent e) {
}
}); });
} }

Loading…
Cancel
Save