Browse Source

代码质量

master
MoMeak 7 years ago
parent
commit
07f57f8677
  1. 2
      designer/src/com/fr/design/mainframe/ReportComponentComposite.java
  2. 11
      designer/src/com/fr/poly/PolyDesigner.java
  3. 1
      designer_base/src/com/fr/design/editor/DoubleDeckValueEditorPane.java
  4. 2
      designer_base/src/com/fr/design/present/dict/DatabaseDictPane.java

2
designer/src/com/fr/design/mainframe/ReportComponentComposite.java

@ -129,7 +129,7 @@ public class ReportComponentComposite extends JComponent {
}
if (centerCardPane.editingComponet.elementCasePane == null) {
((PolyDesigner)centerCardPane.editingComponet).polyArea.addMouseWheelListener(showValSpinnerMouseWheelListener);
centerCardPane.getPolyDezi().polyArea.addMouseWheelListener(showValSpinnerMouseWheelListener);
return;
}
Grid grid = centerCardPane.editingComponet.elementCasePane.getGrid();

11
designer/src/com/fr/poly/PolyDesigner.java

@ -140,13 +140,10 @@ public class PolyDesigner extends ReportComponent<PolyWorkSheet, PolyElementCase
@Override
public void mouseWheelMoved(MouseWheelEvent evt) {
int id = evt.getID();
switch (id) {
case MouseEvent.MOUSE_WHEEL: {
if (!InputEventBaseOnOS.isControlDown(evt)) {
int rotations = evt.getWheelRotation();
verScrollBar.setValue(verScrollBar.getValue() + rotations * ROTATIONS);
}
break;
if (id == MouseEvent.MOUSE_WHEEL){
if (!InputEventBaseOnOS.isControlDown(evt)) {
int rotations = evt.getWheelRotation();
verScrollBar.setValue(verScrollBar.getValue() + rotations * ROTATIONS);
}
}
}

1
designer_base/src/com/fr/design/editor/DoubleDeckValueEditorPane.java

@ -340,6 +340,7 @@ public class DoubleDeckValueEditorPane extends BasicPane implements UIObserver,
* 清除组件数据
*/
public void clearComponentsData() {
setCurrentEditor(0);
for (Editor card : cards) {
card.clearData();
}

2
designer_base/src/com/fr/design/present/dict/DatabaseDictPane.java

@ -270,9 +270,7 @@ public class DatabaseDictPane extends FurtherBasicBeanPane<DatabaseDictionary> i
*/
public void reset() {
keyColumnPane.clearComponentsData();
keyColumnPane.setCurrentEditor(0);
valueDictPane.clearComponentsData();
valueDictPane.setCurrentEditor(0);
chooseTable.resetComponets();
}

Loading…
Cancel
Save