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) { if (centerCardPane.editingComponet.elementCasePane == null) {
((PolyDesigner)centerCardPane.editingComponet).polyArea.addMouseWheelListener(showValSpinnerMouseWheelListener); centerCardPane.getPolyDezi().polyArea.addMouseWheelListener(showValSpinnerMouseWheelListener);
return; return;
} }
Grid grid = centerCardPane.editingComponet.elementCasePane.getGrid(); 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 @Override
public void mouseWheelMoved(MouseWheelEvent evt) { public void mouseWheelMoved(MouseWheelEvent evt) {
int id = evt.getID(); int id = evt.getID();
switch (id) { if (id == MouseEvent.MOUSE_WHEEL){
case MouseEvent.MOUSE_WHEEL: { if (!InputEventBaseOnOS.isControlDown(evt)) {
if (!InputEventBaseOnOS.isControlDown(evt)) { int rotations = evt.getWheelRotation();
int rotations = evt.getWheelRotation(); verScrollBar.setValue(verScrollBar.getValue() + rotations * ROTATIONS);
verScrollBar.setValue(verScrollBar.getValue() + rotations * ROTATIONS);
}
break;
} }
} }
} }

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

@ -340,6 +340,7 @@ public class DoubleDeckValueEditorPane extends BasicPane implements UIObserver,
* 清除组件数据 * 清除组件数据
*/ */
public void clearComponentsData() { public void clearComponentsData() {
setCurrentEditor(0);
for (Editor card : cards) { for (Editor card : cards) {
card.clearData(); 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() { public void reset() {
keyColumnPane.clearComponentsData(); keyColumnPane.clearComponentsData();
keyColumnPane.setCurrentEditor(0);
valueDictPane.clearComponentsData(); valueDictPane.clearComponentsData();
valueDictPane.setCurrentEditor(0);
chooseTable.resetComponets(); chooseTable.resetComponets();
} }

Loading…
Cancel
Save