diff --git a/src/de/jost_net/JVerein/gui/control/BuchungsklasseSaldoControl.java b/src/de/jost_net/JVerein/gui/control/BuchungsklasseSaldoControl.java index 7d5057b4e..c85c62d42 100644 --- a/src/de/jost_net/JVerein/gui/control/BuchungsklasseSaldoControl.java +++ b/src/de/jost_net/JVerein/gui/control/BuchungsklasseSaldoControl.java @@ -18,9 +18,7 @@ import java.io.File; import java.rmi.RemoteException; -import java.text.ParseException; import java.util.ArrayList; -import java.util.Calendar; import java.util.Date; import org.eclipse.swt.SWT; @@ -33,12 +31,10 @@ import de.jost_net.JVerein.io.BuchungsklassesaldoPDF; import de.jost_net.JVerein.util.Dateiname; import de.jost_net.JVerein.util.JVDateFormatTTMMJJJJ; -import de.willuhn.jameica.gui.AbstractControl; import de.willuhn.jameica.gui.AbstractView; import de.willuhn.jameica.gui.Action; import de.willuhn.jameica.gui.GUI; import de.willuhn.jameica.gui.Part; -import de.willuhn.jameica.gui.input.DateInput; import de.willuhn.jameica.gui.parts.Button; import de.willuhn.jameica.system.Application; import de.willuhn.jameica.system.BackgroundTask; @@ -46,17 +42,11 @@ import de.willuhn.util.ApplicationException; import de.willuhn.util.ProgressMonitor; -public class BuchungsklasseSaldoControl extends AbstractControl +public class BuchungsklasseSaldoControl extends SaldoControl { private BuchungsklasseSaldoList saldoList; - private DateInput datumvon; - - private DateInput datumbis; - - private Settings settings = null; - final static String AuswertungPDF = "PDF"; final static String AuswertungCSV = "CSV"; @@ -64,50 +54,6 @@ public class BuchungsklasseSaldoControl extends AbstractControl public BuchungsklasseSaldoControl(AbstractView view) { super(view); - settings = new Settings(this.getClass()); - settings.setStoreWhenRead(true); - } - - public DateInput getDatumvon() - { - if (datumvon != null) - { - return datumvon; - } - Calendar cal = Calendar.getInstance(); - Date d = new Date(); - try - { - d = new JVDateFormatTTMMJJJJ() - .parse(settings.getString("von", "01.01" + cal.get(Calendar.YEAR))); - } - catch (ParseException e) - { - // - } - datumvon = new DateInput(d, new JVDateFormatTTMMJJJJ()); - return datumvon; - } - - public DateInput getDatumbis() - { - if (datumbis != null) - { - return datumbis; - } - Calendar cal = Calendar.getInstance(); - Date d = new Date(); - try - { - d = new JVDateFormatTTMMJJJJ() - .parse(settings.getString("bis", "31.12." + cal.get(Calendar.YEAR))); - } - catch (ParseException e) - { - // - } - datumbis = new DateInput(d, new JVDateFormatTTMMJJJJ()); - return datumbis; } public Button getStartAuswertungButton() @@ -147,29 +93,26 @@ public Part getSaldoList() throws ApplicationException { try { - if (getDatumvon().getValue() != null) + if (getDatumvon().getDate() != null) { settings.setAttribute("von", - new JVDateFormatTTMMJJJJ().format((Date) getDatumvon().getValue())); - } - if (getDatumvon().getValue() != null) - { + new JVDateFormatTTMMJJJJ().format(getDatumvon().getDate())); settings.setAttribute("bis", - new JVDateFormatTTMMJJJJ().format((Date) getDatumbis().getValue())); + new JVDateFormatTTMMJJJJ().format(getDatumbis().getDate())); } if (saldoList == null) { saldoList = new BuchungsklasseSaldoList(null, - (Date) datumvon.getValue(), (Date) datumbis.getValue()); + datumvon.getDate(), datumbis.getDate()); } else { settings.setAttribute("von", - new JVDateFormatTTMMJJJJ().format((Date) getDatumvon().getValue())); + new JVDateFormatTTMMJJJJ().format(getDatumvon().getDate())); - saldoList.setDatumvon((Date) datumvon.getValue()); - saldoList.setDatumbis((Date) datumbis.getValue()); + saldoList.setDatumvon(datumvon.getDate()); + saldoList.setDatumbis(datumbis.getDate()); ArrayList zeile = saldoList.getInfo(); saldoList.removeAll(); for (BuchungsklasseSaldoZeile sz : zeile) @@ -217,8 +160,8 @@ private void starteAuswertung(String type) throws ApplicationException final File file = new File(s); settings.setAttribute("lastdir", file.getParent()); - auswertungSaldo(zeile, file, (Date) getDatumvon().getValue(), - (Date) getDatumbis().getValue(), type); + auswertungSaldo(zeile, file, getDatumvon().getDate(), + getDatumbis().getDate(), type); } catch (RemoteException e) { diff --git a/src/de/jost_net/JVerein/gui/control/JahressaldoControl.java b/src/de/jost_net/JVerein/gui/control/JahressaldoControl.java index 66503a885..4c21c9bff 100644 --- a/src/de/jost_net/JVerein/gui/control/JahressaldoControl.java +++ b/src/de/jost_net/JVerein/gui/control/JahressaldoControl.java @@ -29,16 +29,13 @@ import de.jost_net.JVerein.gui.parts.JahressaldoList; import de.jost_net.JVerein.io.JahressaldoPDF; import de.jost_net.JVerein.io.SaldoZeile; -import de.jost_net.JVerein.rmi.Buchung; import de.jost_net.JVerein.util.Dateiname; import de.jost_net.JVerein.util.Geschaeftsjahr; -import de.willuhn.datasource.rmi.DBIterator; -import de.willuhn.jameica.gui.AbstractControl; +import de.jost_net.JVerein.util.JVDateFormatTTMMJJJJ; import de.willuhn.jameica.gui.AbstractView; import de.willuhn.jameica.gui.Action; import de.willuhn.jameica.gui.GUI; import de.willuhn.jameica.gui.Part; -import de.willuhn.jameica.gui.input.SelectInput; import de.willuhn.jameica.gui.parts.Button; import de.willuhn.jameica.system.Application; import de.willuhn.jameica.system.BackgroundTask; @@ -47,56 +44,14 @@ import de.willuhn.util.ApplicationException; import de.willuhn.util.ProgressMonitor; -public class JahressaldoControl extends AbstractControl +public class JahressaldoControl extends SaldoControl { private JahressaldoList saldoList; - private SelectInput suchjahr; - - private Settings settings = null; - public JahressaldoControl(AbstractView view) { super(view); - settings = new Settings(this.getClass()); - settings.setStoreWhenRead(true); - } - - public SelectInput getSuchJahr() - throws RemoteException, ApplicationException, ParseException - { - if (suchjahr != null) - { - return suchjahr; - } - DBIterator list = Einstellungen.getDBService() - .createList(Buchung.class); - list.setOrder("ORDER BY datum"); - Buchung b = null; - Calendar von = Calendar.getInstance(); - if (list.hasNext()) - { - b = list.next(); - von.setTime(new Geschaeftsjahr(b.getDatum()).getBeginnGeschaeftsjahr()); - } - else - { - throw new ApplicationException( - "Abbruch! Es existiert noch keine Buchung"); - } - Calendar bis = Calendar.getInstance(); - ArrayList jahre = new ArrayList<>(); - - for (int i = von.get(Calendar.YEAR); i <= bis.get(Calendar.YEAR); i++) - { - jahre.add(i); - } - - suchjahr = new SelectInput(jahre, settings.getInt("jahr", jahre.get(0))); - // suchjahr.setPleaseChoose("Bitte auswählen"); - suchjahr.setPreselected(settings.getInt("jahr", bis.get(Calendar.YEAR))); - return suchjahr; } public Button getStartAuswertungButton() @@ -123,17 +78,25 @@ public Part getSaldoList() throws ApplicationException { try { - settings.setAttribute("jahr", (Integer) getSuchJahr().getValue()); + if (getDatumvon().getDate() != null) + { + settings.setAttribute("von", + new JVDateFormatTTMMJJJJ().format(getDatumvon().getDate())); + settings.setAttribute("bis", + new JVDateFormatTTMMJJJJ().format(getDatumbis().getDate())); + } + + Calendar cal = Calendar.getInstance(); + cal.setTime(getDatumvon().getDate()); + int jahr = cal.get(Calendar.YEAR); if (saldoList == null) { - saldoList = new JahressaldoList(null, - new Geschaeftsjahr((Integer) getSuchJahr().getValue())); + saldoList = new JahressaldoList(null, new Geschaeftsjahr(jahr)); } else { - saldoList.setGeschaeftsjahr( - new Geschaeftsjahr((Integer) getSuchJahr().getValue())); + saldoList.setGeschaeftsjahr(new Geschaeftsjahr(jahr)); ArrayList zeile = saldoList.getInfo(); saldoList.removeAll(); for (SaldoZeile sz : zeile) @@ -182,9 +145,10 @@ private void starteAuswertung() throws ApplicationException final File file = new File(s); settings.setAttribute("lastdir", file.getParent()); - Integer jahr = (Integer) suchjahr.getValue(); - - Geschaeftsjahr gj = new Geschaeftsjahr(jahr.intValue()); + Calendar cal = Calendar.getInstance(); + cal.setTime(getDatumvon().getDate()); + int jahr = cal.get(Calendar.YEAR); + Geschaeftsjahr gj = new Geschaeftsjahr(jahr); auswertungSaldoPDF(zeile, file, gj); } diff --git a/src/de/jost_net/JVerein/gui/control/ProjektSaldoControl.java b/src/de/jost_net/JVerein/gui/control/ProjektSaldoControl.java index 0879b8a5c..f0517d3fe 100644 --- a/src/de/jost_net/JVerein/gui/control/ProjektSaldoControl.java +++ b/src/de/jost_net/JVerein/gui/control/ProjektSaldoControl.java @@ -18,9 +18,7 @@ import java.io.File; import java.rmi.RemoteException; -import java.text.ParseException; import java.util.ArrayList; -import java.util.Calendar; import java.util.Date; import org.eclipse.swt.SWT; @@ -32,12 +30,10 @@ import de.jost_net.JVerein.io.ProjektSaldoZeile; import de.jost_net.JVerein.util.Dateiname; import de.jost_net.JVerein.util.JVDateFormatTTMMJJJJ; -import de.willuhn.jameica.gui.AbstractControl; import de.willuhn.jameica.gui.AbstractView; import de.willuhn.jameica.gui.Action; import de.willuhn.jameica.gui.GUI; import de.willuhn.jameica.gui.Part; -import de.willuhn.jameica.gui.input.DateInput; import de.willuhn.jameica.gui.parts.Button; import de.willuhn.jameica.system.Application; import de.willuhn.jameica.system.BackgroundTask; @@ -45,64 +41,14 @@ import de.willuhn.util.ApplicationException; import de.willuhn.util.ProgressMonitor; -public class ProjektSaldoControl extends AbstractControl +public class ProjektSaldoControl extends SaldoControl { private ProjektSaldoList saldoList; - private DateInput datumvon; - - private DateInput datumbis; - - private Settings settings = null; - public ProjektSaldoControl(AbstractView view) { super(view); - settings = new Settings(this.getClass()); - settings.setStoreWhenRead(true); - } - - public DateInput getDatumvon() - { - if (datumvon != null) - { - return datumvon; - } - Calendar cal = Calendar.getInstance(); - Date d = new Date(); - try - { - d = new JVDateFormatTTMMJJJJ() - .parse(settings.getString("von", "01.01" + cal.get(Calendar.YEAR))); - } - catch (ParseException e) - { - // - } - datumvon = new DateInput(d, new JVDateFormatTTMMJJJJ()); - return datumvon; - } - - public DateInput getDatumbis() - { - if (datumbis != null) - { - return datumbis; - } - Calendar cal = Calendar.getInstance(); - Date d = new Date(); - try - { - d = new JVDateFormatTTMMJJJJ() - .parse(settings.getString("bis", "31.12." + cal.get(Calendar.YEAR))); - } - catch (ParseException e) - { - // - } - datumbis = new DateInput(d, new JVDateFormatTTMMJJJJ()); - return datumbis; } public Button getStartAuswertungButton() @@ -128,29 +74,26 @@ public Part getSaldoList() throws ApplicationException { try { - if (getDatumvon().getValue() != null) + if (getDatumvon().getDate() != null) { settings.setAttribute("von", - new JVDateFormatTTMMJJJJ().format((Date) getDatumvon().getValue())); - } - if (getDatumvon().getValue() != null) - { + new JVDateFormatTTMMJJJJ().format(getDatumvon().getDate())); settings.setAttribute("bis", - new JVDateFormatTTMMJJJJ().format((Date) getDatumbis().getValue())); + new JVDateFormatTTMMJJJJ().format(getDatumbis().getDate())); } if (saldoList == null) { - saldoList = new ProjektSaldoList(null, (Date) datumvon.getValue(), - (Date) datumbis.getValue()); + saldoList = new ProjektSaldoList(null, datumvon.getDate(), + datumbis.getDate()); } else { settings.setAttribute("von", - new JVDateFormatTTMMJJJJ().format((Date) getDatumvon().getValue())); + new JVDateFormatTTMMJJJJ().format(getDatumvon().getDate())); - saldoList.setDatumvon((Date) datumvon.getValue()); - saldoList.setDatumbis((Date) datumbis.getValue()); + saldoList.setDatumvon(datumvon.getDate()); + saldoList.setDatumbis(datumbis.getDate()); ArrayList zeile = saldoList.getInfo(); saldoList.removeAll(); for (ProjektSaldoZeile sz : zeile) @@ -196,8 +139,8 @@ private void starteAuswertung() throws ApplicationException final File file = new File(s); settings.setAttribute("lastdir", file.getParent()); - auswertungSaldoPDF(zeile, file, (Date) getDatumvon().getValue(), - (Date) getDatumbis().getValue()); + auswertungSaldoPDF(zeile, file, getDatumvon().getDate(), + getDatumbis().getDate()); } catch (RemoteException e) { diff --git a/src/de/jost_net/JVerein/gui/control/SaldoControl.java b/src/de/jost_net/JVerein/gui/control/SaldoControl.java new file mode 100644 index 000000000..b89e9304c --- /dev/null +++ b/src/de/jost_net/JVerein/gui/control/SaldoControl.java @@ -0,0 +1,218 @@ +/********************************************************************** + * Copyright (c) by Heiner Jostkleigrewe + * This program is free software: you can redistribute it and/or modify it under the terms of the + * GNU General Public License as published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See + * the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with this program. If not, + * see . + * + * heiner@jverein.de + * www.jverein.de + **********************************************************************/ +package de.jost_net.JVerein.gui.control; + +import java.text.ParseException; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Date; + +import de.jost_net.JVerein.Einstellungen; +import de.jost_net.JVerein.util.Datum; +import de.jost_net.JVerein.util.JVDateFormatTTMMJJJJ; +import de.willuhn.jameica.gui.AbstractControl; +import de.willuhn.jameica.gui.AbstractView; +import de.willuhn.jameica.gui.Part; +import de.willuhn.jameica.gui.input.DateInput; +import de.willuhn.jameica.gui.input.Input; +import de.willuhn.jameica.gui.input.TextInput; +import de.willuhn.jameica.gui.parts.TablePart; +import de.willuhn.jameica.system.Settings; +import de.willuhn.util.ApplicationException; + +public class SaldoControl extends AbstractControl +{ + protected DateLabel datumvon; + + protected DateLabel datumbis; + + protected DateInput suchdatumvon; + + protected DateInput suchdatumbis; + + protected TextInput geschaeftsjahr; + + protected Settings settings = null; + + + public SaldoControl(AbstractView view) + { + super(view); + settings = new Settings(this.getClass()); + settings.setStoreWhenRead(true); + } + + public DateLabel getDatumvon() + { + if (datumvon != null) + { + return datumvon; + } + Calendar cal = Calendar.getInstance(); + Date d = new Date(); + try + { + d = new JVDateFormatTTMMJJJJ() + .parse(settings.getString("von", "01.01" + cal.get(Calendar.YEAR))); + } + catch (ParseException e) + { + // + } + datumvon = new DateLabel(d); + datumvon.disable(); + return datumvon; + } + + public DateLabel getDatumbis() + { + if (datumbis != null) + { + return datumbis; + } + Calendar cal = Calendar.getInstance(); + Date d = new Date(); + try + { + d = new JVDateFormatTTMMJJJJ() + .parse(settings.getString("bis", "31.12." + cal.get(Calendar.YEAR))); + } + catch (ParseException e) + { + // + } + datumbis = new DateLabel(d); + datumbis.disable(); + return datumbis; + } + + public Input getGeschaeftsjahr() + { + if (geschaeftsjahr != null) + { + return geschaeftsjahr; + } + Calendar cal = Calendar.getInstance(); + cal.setTime(getDatumvon().getDate()); + geschaeftsjahr = new TextInput(Integer.valueOf(((int) + cal.get(Calendar.YEAR))).toString()); + geschaeftsjahr.disable(); + return geschaeftsjahr; + } + + public DateInput getSuchDatumvon() + { + if (suchdatumvon != null) + { + return suchdatumvon; + } + Calendar cal = Calendar.getInstance(); + Date d = new Date(); + try + { + d = new JVDateFormatTTMMJJJJ() + .parse(settings.getString("von", "01.01" + cal.get(Calendar.YEAR))); + } + catch (ParseException e) + { + // + } + suchdatumvon = new DateInput(d, new JVDateFormatTTMMJJJJ()); + return suchdatumvon; + } + + public DateInput getSuchDatumbis() + { + if (suchdatumbis != null) + { + return suchdatumbis; + } + Calendar cal = Calendar.getInstance(); + Date d = new Date(); + try + { + d = new JVDateFormatTTMMJJJJ() + .parse(settings.getString("bis", "31.12." + cal.get(Calendar.YEAR))); + } + catch (ParseException e) + { + // + } + suchdatumbis = new DateInput(d, new JVDateFormatTTMMJJJJ()); + return suchdatumbis; + } + + public Part getSaldoList() throws ApplicationException + { + //to be implemented in derived class + return new TablePart(new ArrayList<>(), null); + } + + public Integer isGeschaeftsjahr() + { + try + { + Integer year; + Calendar cal = Calendar.getInstance(); + Date von = getDatumvon().getDate(); + Date bis = getDatumbis().getDate(); + cal.setTime(von); + year = cal.get(Calendar.YEAR); + Date gjvon = Datum.toDate(Einstellungen.getEinstellung() + .getBeginnGeschaeftsjahr() + year); + if (!von.equals(gjvon)) + { + return 0; + } + cal.add(Calendar.YEAR, 1); + cal.add(Calendar.DAY_OF_MONTH, -1); + if (bis.equals(cal.getTime())) + { + return year; + } + } + catch (Exception e) + { + // + } + return 0; + } + + public class DateLabel extends TextInput + { + private Date d; + + DateLabel(Date date) + { + super(""); + setDate(date); + } + + public void setDate(Date date) + { + d = date; + JVDateFormatTTMMJJJJ df = new JVDateFormatTTMMJJJJ(); + String dstring = d == null ? "" : df.format(d); + super.setValue(dstring); + } + + public Date getDate() + { + return d; + } + } +} diff --git a/src/de/jost_net/JVerein/gui/parts/BuchungsklasseSaldoList.java b/src/de/jost_net/JVerein/gui/parts/BuchungsklasseSaldoList.java index a8095f8b8..5dac46cda 100644 --- a/src/de/jost_net/JVerein/gui/parts/BuchungsklasseSaldoList.java +++ b/src/de/jost_net/JVerein/gui/parts/BuchungsklasseSaldoList.java @@ -22,7 +22,6 @@ import java.util.ArrayList; import java.util.Date; import java.util.HashMap; -import java.util.HashSet; import org.eclipse.swt.widgets.Composite; import de.jost_net.JVerein.Einstellungen; @@ -30,9 +29,6 @@ import de.jost_net.JVerein.keys.ArtBuchungsart; import de.jost_net.JVerein.rmi.Buchungsart; import de.jost_net.JVerein.rmi.Buchungsklasse; -import de.willuhn.datasource.GenericIterator; -import de.willuhn.datasource.GenericObject; -import de.willuhn.datasource.pseudo.PseudoIterator; import de.willuhn.datasource.rmi.DBIterator; import de.willuhn.datasource.rmi.DBService; import de.willuhn.datasource.rmi.ResultSetExtractor; @@ -402,6 +398,9 @@ else if (suBukSteuersatz.containsKey(buchungsart.getID())) BuchungsklasseSaldoZeile.NICHTZUGEORDNETEBUCHUNGEN, "Anzahl Buchungen ohne Buchungsart", anzahl)); } + + // Leerzeile am Ende wegen Scrollbar + zeile.add(new BuchungsklasseSaldoZeile(BuchungsklasseSaldoZeile.UNDEFINED, "")); return zeile; } diff --git a/src/de/jost_net/JVerein/gui/parts/JahressaldoList.java b/src/de/jost_net/JVerein/gui/parts/JahressaldoList.java index 8fc1a7139..e5fb1d9d7 100644 --- a/src/de/jost_net/JVerein/gui/parts/JahressaldoList.java +++ b/src/de/jost_net/JVerein/gui/parts/JahressaldoList.java @@ -26,9 +26,6 @@ import de.jost_net.JVerein.io.SaldoZeile; import de.jost_net.JVerein.rmi.Konto; import de.jost_net.JVerein.util.Geschaeftsjahr; -import de.willuhn.datasource.GenericIterator; -import de.willuhn.datasource.GenericObject; -import de.willuhn.datasource.pseudo.PseudoIterator; import de.willuhn.datasource.rmi.DBIterator; import de.willuhn.jameica.gui.Action; import de.willuhn.jameica.gui.Part; @@ -149,7 +146,10 @@ public ArrayList getInfo() throws RemoteException k.setNummer(""); k.setBezeichnung("Überschuss/Verlust(-)"); zeile.add(new SaldoZeile(k, null, null, null, null, jahressaldo)); - + + // Leerzeile am Ende wegen Scrollbar + k.setBezeichnung(""); + zeile.add(new SaldoZeile(k, null, null, null, null, null)); return zeile; } diff --git a/src/de/jost_net/JVerein/gui/parts/ProjektSaldoList.java b/src/de/jost_net/JVerein/gui/parts/ProjektSaldoList.java index abb0f6dc0..c2b80c76d 100644 --- a/src/de/jost_net/JVerein/gui/parts/ProjektSaldoList.java +++ b/src/de/jost_net/JVerein/gui/parts/ProjektSaldoList.java @@ -28,9 +28,6 @@ import de.jost_net.JVerein.io.ProjektSaldoZeile; import de.jost_net.JVerein.rmi.Buchungsart; import de.jost_net.JVerein.rmi.Projekt; -import de.willuhn.datasource.GenericIterator; -import de.willuhn.datasource.GenericObject; -import de.willuhn.datasource.pseudo.PseudoIterator; import de.willuhn.datasource.rmi.DBIterator; import de.willuhn.datasource.rmi.DBService; import de.willuhn.datasource.rmi.ResultSetExtractor; @@ -222,6 +219,9 @@ public Object extract(ResultSet rs) throws SQLException new ProjektSaldoZeile(ProjektSaldoZeile.NICHTZUGEORDNETEBUCHUNGEN, "Anzahl Buchungen ohne Buchungsart: " + anzahl.toString())); } + + // Leerzeile am Ende wegen Scrollbar + zeile.add(new ProjektSaldoZeile(ProjektSaldoZeile.UNDEFINED, "")); return zeile; } diff --git a/src/de/jost_net/JVerein/gui/parts/QuickAccessPart.java b/src/de/jost_net/JVerein/gui/parts/QuickAccessPart.java new file mode 100644 index 000000000..3b6c922da --- /dev/null +++ b/src/de/jost_net/JVerein/gui/parts/QuickAccessPart.java @@ -0,0 +1,258 @@ +/********************************************************************** + * Copyright (c) by Heiner Jostkleigrewe + * This program is free software: you can redistribute it and/or modify it under the terms of the + * GNU General Public License as published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without + * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See + * the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with this program. If not, + * see . + * + * heiner@jverein.de + * www.jverein.de + **********************************************************************/ +package de.jost_net.JVerein.gui.parts; + +import java.rmi.RemoteException; +import java.text.ParseException; +import java.util.Calendar; +import java.util.Date; +import java.util.ArrayList; +import org.eclipse.swt.widgets.Composite; + +import de.jost_net.JVerein.Einstellungen; +import de.jost_net.JVerein.gui.control.SaldoControl; +import de.jost_net.JVerein.util.Datum; +import de.willuhn.jameica.gui.Action; +import de.willuhn.jameica.gui.Part; +import de.willuhn.jameica.gui.parts.Button; +import de.willuhn.jameica.gui.parts.ButtonArea; +import de.willuhn.jameica.gui.util.LabelGroup; +import de.willuhn.util.ApplicationException; + +public class QuickAccessPart implements Part +{ + private SaldoControl control; + + private int anzahlButtons = 10; + + private boolean additionalButtons; + + private Integer jahr; + + private Integer startjahr; + + private Calendar calendar = Calendar.getInstance();; + + private ArrayList