From d5c13e315627eabcd924bd76a7d1583c200e9cfb Mon Sep 17 00:00:00 2001 From: Juergen Steinhilber Date: Tue, 5 Nov 2013 20:38:23 +0000 Subject: [PATCH] *** empty log message *** --- Reha/src/abrechnung/AbrechnungRezept.java | 26 ++++++++++++++++++++++++-- RehaCommon/src/CommonTools/JRtaTextField.java | 24 +++++++++++++++++++----- 2 files changed, 43 insertions(+), 7 deletions(-) diff --git a/Reha/src/abrechnung/AbrechnungRezept.java b/Reha/src/abrechnung/AbrechnungRezept.java index ef3ab19b..943d0e14 100644 --- a/Reha/src/abrechnung/AbrechnungRezept.java +++ b/Reha/src/abrechnung/AbrechnungRezept.java @@ -51,6 +51,8 @@ import javax.swing.JViewport; import javax.swing.ListSelectionModel; import javax.swing.SortOrder; import javax.swing.SwingUtilities; +import javax.swing.event.CellEditorListener; +import javax.swing.event.ChangeEvent; import javax.swing.event.HyperlinkEvent; import javax.swing.event.HyperlinkListener; import javax.swing.event.ListSelectionEvent; @@ -538,7 +540,27 @@ public class AbrechnungRezept extends JXPanel implements HyperlinkListener,Actio jXTreeTable.getColumnModel().getColumn(5).setCellEditor(mycheck); //jXTreeTable.getColumnModel().getColumn(5).setCellRenderer(new CheckRenderer(false)); - //Zuzahlungsbetrag + //Preis + jXTreeTable.getColumnModel().getColumn(4).setCellEditor(new DblCellEditor()); + jXTreeTable.getColumnModel().getColumn(4).setCellRenderer(new DoubleTableCellRenderer() ); + jXTreeTable.getColumnModel().getColumn(4).getCellEditor().addCellEditorListener(new CellEditorListener(){ + @Override + public void editingStopped(ChangeEvent e) { + // TODO Auto-generated method stub + getVectorFromNodes(); + doTreeRezeptWertermitteln(); +// doPositionenErmitteln(); + parseHTML(vec_rez.get(0).get(1).trim()); + + } + @Override + public void editingCanceled(ChangeEvent e) { + // TODO Auto-generated method stub + } + + }); + + //Zuzahlungsbetrag jXTreeTable.getColumnModel().getColumn(6).setCellEditor(new DblCellEditor()); jXTreeTable.getColumnModel().getColumn(6).setCellRenderer(new DoubleTableCellRenderer() ); @@ -2846,7 +2868,7 @@ public class AbrechnungRezept extends JXPanel implements HyperlinkListener,Actio case 3: return true; case 4: - return false; + return true; case 5: return true; case 6: diff --git a/RehaCommon/src/CommonTools/JRtaTextField.java b/RehaCommon/src/CommonTools/JRtaTextField.java index 7f648d82..9607d0a4 100644 --- a/RehaCommon/src/CommonTools/JRtaTextField.java +++ b/RehaCommon/src/CommonTools/JRtaTextField.java @@ -243,11 +243,25 @@ public class JRtaTextField extends JFormattedTextField implements PropertyChange } private void veroeffentlicheEvent(KeyEvent event){ try{ - this.getParent().dispatchEvent(event); - this.getParent().getParent().dispatchEvent(event); - this.getParent().getParent().getParent().dispatchEvent(event); - this.getParent().getParent().getParent().getParent().dispatchEvent(event); - + this.getParent().dispatchEvent(event); + }catch(Exception ex){ + ex.printStackTrace(); + } + try{ + if(this.getParent().getParent() != null) + this.getParent().getParent().dispatchEvent(event); + }catch(Exception ex){ + ex.printStackTrace(); + } + try{ + if(this.getParent().getParent().getParent() != null) + this.getParent().getParent().getParent().dispatchEvent(event); + }catch(Exception ex){ + ex.printStackTrace(); + } + try{ + if(this.getParent().getParent().getParent().getParent()!= null) + this.getParent().getParent().getParent().getParent().dispatchEvent(event); }catch(Exception ex){ ex.printStackTrace(); } -- 2.11.4.GIT