From 7bf844a5421b34f9b8558b6e1125cecca74e5d00 Mon Sep 17 00:00:00 2001 From: groche97 Date: Fri, 29 Nov 2019 11:29:15 +0100 Subject: [PATCH] Final, todo aprobado --- .contrasenias.txt | 1 + bin/Logica/Gestion.class | Bin 3759 -> 3813 bytes bin/Logica/Transaccion.class | Bin 2147 -> 2467 bytes doc/Ficheros/Configuracion.html | 4 +- doc/Ficheros/class-use/Configuracion.html | 4 +- doc/Ficheros/package-frame.html | 4 +- doc/Ficheros/package-summary.html | 4 +- doc/Ficheros/package-tree.html | 4 +- doc/Ficheros/package-use.html | 4 +- doc/Logica/Gestion.html | 100 ++++- doc/Logica/Meses.html | 4 +- doc/Logica/Transaccion.html | 95 ++++- doc/Logica/class-use/Gestion.html | 4 +- doc/Logica/class-use/Meses.html | 4 +- doc/Logica/class-use/Transaccion.html | 4 +- doc/Logica/package-frame.html | 4 +- doc/Logica/package-summary.html | 4 +- doc/Logica/package-tree.html | 4 +- doc/Logica/package-use.html | 4 +- doc/Main.html | 4 +- doc/VistaControlador/BarraOpciones.html | 4 +- .../ControladorAniadirVisualizar.html | 4 +- doc/VistaControlador/ControladorBarra.html | 8 +- .../ControladorPanelGestion.html | 290 +++++++++++++++ .../ControladorPanelInterfaz.html | 282 ++++++++++++++ .../ControladorPanelModificar.html | 246 +++++++++++++ doc/VistaControlador/Menu.html | 8 +- doc/VistaControlador/MostrarTodo.html | 4 +- .../VistaAniadirVisualizar.html | 34 +- doc/VistaControlador/VistaPanel.html | 348 ++++++++++++++++++ doc/VistaControlador/VistaPanelGestion.html | 309 ++++++++++++++++ doc/VistaControlador/VistaPanelInterfaz.html | 309 ++++++++++++++++ doc/VistaControlador/VistaPanelModificar.html | 309 ++++++++++++++++ .../class-use/BarraOpciones.html | 4 +- .../ControladorAniadirVisualizar.html | 4 +- .../class-use/ControladorBarra.html | 4 +- .../class-use/ControladorPanelGestion.html | 124 +++++++ .../class-use/ControladorPanelInterfaz.html | 124 +++++++ .../class-use/ControladorPanelModificar.html | 124 +++++++ doc/VistaControlador/class-use/Menu.html | 10 +- .../class-use/MostrarTodo.html | 4 +- .../class-use/VistaAniadirVisualizar.html | 4 +- .../class-use/VistaPanel.html | 172 +++++++++ .../class-use/VistaPanelGestion.html | 165 +++++++++ .../class-use/VistaPanelInterfaz.html | 163 ++++++++ .../class-use/VistaPanelModificar.html | 124 +++++++ doc/VistaControlador/package-frame.html | 13 +- doc/VistaControlador/package-summary.html | 28 +- doc/VistaControlador/package-tree.html | 16 +- doc/VistaControlador/package-use.html | 12 +- doc/allclasses-frame.html | 13 +- doc/allclasses-noframe.html | 13 +- doc/class-use/Main.html | 4 +- doc/constant-values.html | 4 +- doc/deprecated-list.html | 4 +- doc/help-doc.html | 4 +- doc/index-files/index-1.html | 14 +- doc/index-files/index-10.html | 52 +-- doc/index-files/index-11.html | 34 +- doc/index-files/index-12.html | 40 +- doc/index-files/index-2.html | 8 +- doc/index-files/index-3.html | 18 +- doc/index-files/index-4.html | 44 ++- doc/index-files/index-5.html | 32 +- doc/index-files/index-6.html | 86 ++++- doc/index-files/index-7.html | 86 +---- doc/index-files/index-8.html | 24 +- doc/index-files/index-9.html | 38 +- doc/index.html | 2 +- doc/overview-frame.html | 4 +- doc/overview-summary.html | 4 +- doc/overview-tree.html | 16 +- doc/package-frame.html | 4 +- doc/package-summary.html | 4 +- doc/package-tree.html | 4 +- doc/package-use.html | 4 +- doc/serialized-form.html | 165 ++++++++- src/Logica/Gestion.java | 25 +- src/Logica/Transaccion.java | 37 +- src/VistaControlador/Menu.java | 2 +- .../VistaAniadirVisualizar.java | 43 ++- 81 files changed, 3945 insertions(+), 393 deletions(-) create mode 100644 doc/VistaControlador/ControladorPanelGestion.html create mode 100644 doc/VistaControlador/ControladorPanelInterfaz.html create mode 100644 doc/VistaControlador/ControladorPanelModificar.html create mode 100644 doc/VistaControlador/VistaPanel.html create mode 100644 doc/VistaControlador/VistaPanelGestion.html create mode 100644 doc/VistaControlador/VistaPanelInterfaz.html create mode 100644 doc/VistaControlador/VistaPanelModificar.html create mode 100644 doc/VistaControlador/class-use/ControladorPanelGestion.html create mode 100644 doc/VistaControlador/class-use/ControladorPanelInterfaz.html create mode 100644 doc/VistaControlador/class-use/ControladorPanelModificar.html create mode 100644 doc/VistaControlador/class-use/VistaPanel.html create mode 100644 doc/VistaControlador/class-use/VistaPanelGestion.html create mode 100644 doc/VistaControlador/class-use/VistaPanelInterfaz.html create mode 100644 doc/VistaControlador/class-use/VistaPanelModificar.html diff --git a/.contrasenias.txt b/.contrasenias.txt index 24e6cf7..08e7214 100644 --- a/.contrasenias.txt +++ b/.contrasenias.txt @@ -1 +1,2 @@ admin:8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 +usuario:9250e222c4c71f0c58d4c54b50a880a312e9f9fed55d5c3aa0b0e860ded99165 diff --git a/bin/Logica/Gestion.class b/bin/Logica/Gestion.class index 02f9e533c9f2d4ac76e1ac276de108c6c92ee55f..c058f838a6ba6fb69164d37b15a971fa204eb628 100644 GIT binary patch literal 3813 zcmbVPX>$}+6g@qeFj*P`2}xK&hyh_T5Jw3HWe^oHI2r;H2m&s2W?sSzGt;rBCjz3V zpyGz&%A(>{#;q(7GPqP(e)ca|{t~Oy^IrFaPBKDirPBTSE%%;#?z#6Rzy0;oF96o! zLIfcLb9(JznX=+rMBbHlE`qRuxg*w?70+0?;rO<}5s`8um}OwTo|SgIUpUgr$RpNZ zMi{6b_D+htf%;y(r{Ky=e1PX{C&3N%9c#$_t|N29w7~6K?X(<{BF(KE zWKOyp4K(=}f_wLN4A9{{c3RY+0?j5Gu)sh?v|}KGMI}B0QPp4}nyX=8iHQiR)M%-R zT9|5dgNfPRXqkz*n5X7$G%*KtYP8ZsJ?ae9^~#*+D`W?Sv(qE8zSmA!nE{LBl30H- z>>iLLc5aC!KTV3(Vd3`q;m?nDc*F*S;+Fi?EsbTuR#BT)PFiW{Y_ak#S#6G%JO%U7 zF`y#uGO3zd$%~aHp;HWcGD&pot-(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+}9=T#Swp<>q zeJgW#WJ7c`yRH0>12{*qo+sHC*zzu-7njh7%Q%KBl=W3!H`j0m*KrFsa0fT>6J|_m ztj>HtTLkwh_zy{rXo7`s|Bb%7ZPond-=Q|&3A;~smY)ec!r76wpYh2YtujjsZ2^G&OiPJplZ{Dz(RTL+X(J?61%-!kh_B2>|CZ~qH|8UzRc diff --git a/bin/Logica/Transaccion.class b/bin/Logica/Transaccion.class index a8e1d0418f3f0b7035c57018ef7bb094383f9801..fa996f69518ba0edf6d8012ec37c2350bf0b0509 100644 GIT binary patch literal 2467 zcmZ`(TUQ%Z7~LlqCW!-WQz*T0Yd}IOgeqDKwb~M()c~!~Xi=(%WC%k;hBX;b`{w0Q zeelg+;ET(pE=gUwmTURyfAEj^pzbp>z~sWp%AD_vGWn&)3ULVZ>(J4u ztU(=JIHjyBI!@z^vW9geaaLK+>*z+0veG)v;f%nkJd9~d0*(kZYYgE~> z@pc|9N%`z&6vS->aYx{CdcKuS@M2EK93})}hgC~p0XYqK11lzkvf-%RzF9F#l4){)IOa)NaSU794X-*^99ev_ zD0lr4h|@RcD}`>r$75#b-&~M2 zHA21VcB7_5kYH3_W@OIDjc_U`Z!GzW*J`xo4z(YnHE$HR$oIV8+$OpTJ-X>#iSzb- z+u-+!vSUZptLmPy&uwDG+Ovzsyy6RVjFTT z#WU<$ifM$*#xddZyX)o+^#6|Rqs%Yp`xV!o;d*kqj+@*L)bU0gvp>>11jVd_e!!?3 zU3cw%Ke|u~@likWQRhxZJ&cg5W1g{+_q>3kb-a~a^6Vkn4Z*wIG$#3RxrW=A43L;R zB5@xNd=go%ifoj541M2}!F0emdgT1}k@Gt9Rn9#b<^3(R@OOx~P4mIRZaLI=0JHpR z=K_E|KHv)9bt9D5ApWB%xFW=d;3T>U= z{Sd#Q2d*1W$Jn!><<;A~$`~_eEPYgr^(&cv3 zuFJxvE1iz4*X_1rASN)fD-UF$C7otrqqb|+Jp&1WQGIH+3l+;-Hcl5Su zxgFxS?yU%j`vSwuZKvZ&$E(U#*NX4_n*Qh8=YKyGNI31inoD51eB!3!xwg|R^0r|+ zmfI#rNx(R;JGOQr9t%VpwiFoiQJ%eL70T_pY^_MoBG71B9ghMis2qf~>YpgqMcc8x zC4pkL-)U(eV=qarDiB+4H>?z*m@+Yr^OTg$Rg)07V8X<(vM!o9gR{!IWMTxbDeJO{ zG+tNM8zx3ECUCaQDA&7tHOt-fv&d2~ma1fC8E|kI^LFeG6aP|6s7?%O$ZPv)+gy;(@P+wFOON!znflRj4uO|HP6BBt{ z6*$whyed2Dz;4+MNuMkq`zkG4p5;pS)YWjsll7--az7|VlGv4?H3?&LCiDqAa^hw3 z`+71d9a}bRx5K6>W8J_SMVxL<6B~FSU)8)=7nf&}AX7iIY=YG)ySNNT#TM!;2Jc&up;}q%7bC==W z1-!}I1)maG!JC{+pKfEn#w1*mlT-UV)BIbbbtRd;bx%=}0r497RHI*0~s>J<)j=_XdDxdoy%rAoxD(=X<^t1es)vbNM5DdQx~lurhmYEku$$&eTJE zHbB8#uY#=*_(Xo?xborHGri!i2ZA?oGw{4b`6~Sh-O0V$Yi!H9W*GNh1=>~nsM%3P w*g|y>*K9A>Ho2Ow;QE}6t+>9xqdu<79IjrjU2;8r1=nMai{koHcfnWx1EjHklK=n! diff --git a/doc/Ficheros/Configuracion.html b/doc/Ficheros/Configuracion.html index 01c749c..b6bb621 100644 --- a/doc/Ficheros/Configuracion.html +++ b/doc/Ficheros/Configuracion.html @@ -2,9 +2,9 @@ - + Configuracion - + diff --git a/doc/Ficheros/class-use/Configuracion.html b/doc/Ficheros/class-use/Configuracion.html index d86ec9f..6fc3485 100644 --- a/doc/Ficheros/class-use/Configuracion.html +++ b/doc/Ficheros/class-use/Configuracion.html @@ -2,9 +2,9 @@ - + Uses of Class Ficheros.Configuracion - + diff --git a/doc/Ficheros/package-frame.html b/doc/Ficheros/package-frame.html index 10cb7c3..0e6b061 100644 --- a/doc/Ficheros/package-frame.html +++ b/doc/Ficheros/package-frame.html @@ -2,9 +2,9 @@ - + Ficheros - + diff --git a/doc/Ficheros/package-summary.html b/doc/Ficheros/package-summary.html index 782ee92..e8d15e1 100644 --- a/doc/Ficheros/package-summary.html +++ b/doc/Ficheros/package-summary.html @@ -2,9 +2,9 @@ - + Ficheros - + diff --git a/doc/Ficheros/package-tree.html b/doc/Ficheros/package-tree.html index 38f5b19..42ef444 100644 --- a/doc/Ficheros/package-tree.html +++ b/doc/Ficheros/package-tree.html @@ -2,9 +2,9 @@ - + Ficheros Class Hierarchy - + diff --git a/doc/Ficheros/package-use.html b/doc/Ficheros/package-use.html index d33fbc9..5f23ea1 100644 --- a/doc/Ficheros/package-use.html +++ b/doc/Ficheros/package-use.html @@ -2,9 +2,9 @@ - + Uses of Package Ficheros - + diff --git a/doc/Logica/Gestion.html b/doc/Logica/Gestion.html index d2d5a27..cc660e2 100644 --- a/doc/Logica/Gestion.html +++ b/doc/Logica/Gestion.html @@ -2,9 +2,9 @@ - + Gestion - + @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -172,41 +172,66 @@ implements java.io.Serializable void +editarTransaccion(java.lang.String nombreViejo, + java.lang.String nombreNuevo) +
Permite editar una transaccion por nombre para cambiarselo
+ + + +void +editarTransaccionDiero(java.lang.String nombreViejo, + float dinero) +
Edita la transaccion con el nombre indicado alterando el dinero que cuesta
+ + + +void +editarTransaccionFecha(java.lang.String nombreViejo, + java.time.LocalDate fecha) +
Edita la fecha de una transaccion dada su fecha
+ + + +void eliminarTransaccion(java.lang.String transaccion)
Elimina una transaccion
- + boolean esIngreso()
Devuelve verdadero si es un ingerso y falso si es un gasto
- + java.util.Vector<Transaccion> getElementos()
Devuelve todas las transacciones que tiene
- + java.lang.String getNombre()
Devuelve el nombre de la gestion
- + float getSuma()
Devuelve la suma (sin tener e cuenta si es gasto o ingreso) de la gestion
- + float getTotal()
Devuelve la suma de todos sus datos, esta vez teniendo en cuenta si debe sumar o restar
- + +void +setNombre(java.lang.String nombre)  + + java.lang.String toString()  @@ -270,6 +295,15 @@ implements java.io.Serializable + + + +
    +
  • +

    setNombre

    +
    public void setNombre(java.lang.String nombre)
    +
  • +
@@ -340,6 +374,54 @@ implements java.io.Serializable + + + +
    +
  • +

    editarTransaccion

    +
    public void editarTransaccion(java.lang.String nombreViejo,
    +                              java.lang.String nombreNuevo)
    +
    Permite editar una transaccion por nombre para cambiarselo
    +
    +
    Parameters:
    +
    nombreViejo - nombre de la transaccion a cambiar
    +
    nombreNuevo - nuevo nombre
    +
    +
  • +
+ + + +
    +
  • +

    editarTransaccionFecha

    +
    public void editarTransaccionFecha(java.lang.String nombreViejo,
    +                                   java.time.LocalDate fecha)
    +
    Edita la fecha de una transaccion dada su fecha
    +
    +
    Parameters:
    +
    nombreViejo - nombre de la trasnaccion a editar
    +
    fecha - nueva fecha
    +
    +
  • +
+ + + +
    +
  • +

    editarTransaccionDiero

    +
    public void editarTransaccionDiero(java.lang.String nombreViejo,
    +                                   float dinero)
    +
    Edita la transaccion con el nombre indicado alterando el dinero que cuesta
    +
    +
    Parameters:
    +
    nombreViejo - nombre de la transaccion a editar
    +
    dinero - nueva cantidad de dinero;
    +
    +
  • +
diff --git a/doc/Logica/Meses.html b/doc/Logica/Meses.html index dc0169b..aab7717 100644 --- a/doc/Logica/Meses.html +++ b/doc/Logica/Meses.html @@ -2,9 +2,9 @@ - + Meses - + diff --git a/doc/Logica/Transaccion.html b/doc/Logica/Transaccion.html index a58f9bb..d25ae6d 100644 --- a/doc/Logica/Transaccion.html +++ b/doc/Logica/Transaccion.html @@ -2,9 +2,9 @@ - + Transaccion - + @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -203,8 +203,34 @@ implements java.io.Serializable +void +setFecha(java.time.LocalDate fecha) +
edita la fecha de la transaccion
+ + + +void +setName(java.lang.String nombre) +
Edita el nombre de la transaccion
+ + + +void +setPrecio(float nuevo) +
Edita el precio de la nueva transaccion
+ + + java.lang.String -toString()  +toString() +
Devuelve todos los datos de la transaccion
+ + + +java.lang.String +toStringCorto() +
Devuelve los datos importantes de la transaccion
+
    @@ -256,6 +282,20 @@ implements java.io.Serializable

    Method Detail

    + + + +
      +
    • +

      toStringCorto

      +
      public java.lang.String toStringCorto()
      +
      Devuelve los datos importantes de la transaccion
      +
      +
      Returns:
      +
      cadena los datos principales a mostrar
      +
      +
    • +
    @@ -263,9 +303,12 @@ implements java.io.Serializable
  • toString

    public java.lang.String toString()
    +
    Devuelve todos los datos de la transaccion
    Overrides:
    toString in class java.lang.Object
    +
    Returns:
    +
    cadena con todos los datos
@@ -352,7 +395,7 @@ implements java.io.Serializable -
    +
    • getNombre

      public java.lang.String getNombre()
      @@ -363,6 +406,48 @@ implements java.io.Serializable
    + + + +
      +
    • +

      setName

      +
      public void setName(java.lang.String nombre)
      +
      Edita el nombre de la transaccion
      +
      +
      Parameters:
      +
      nombre - nuevo nombre
      +
      +
    • +
    + + + +
      +
    • +

      setFecha

      +
      public void setFecha(java.time.LocalDate fecha)
      +
      edita la fecha de la transaccion
      +
      +
      Parameters:
      +
      fecha - nueva fecha
      +
      +
    • +
    + + + +
      +
    • +

      setPrecio

      +
      public void setPrecio(float nuevo)
      +
      Edita el precio de la nueva transaccion
      +
      +
      Parameters:
      +
      nuevo - nuevo precio
      +
      +
    • +
diff --git a/doc/Logica/class-use/Gestion.html b/doc/Logica/class-use/Gestion.html index c92f720..80ea2ff 100644 --- a/doc/Logica/class-use/Gestion.html +++ b/doc/Logica/class-use/Gestion.html @@ -2,9 +2,9 @@ - + Uses of Class Logica.Gestion - + diff --git a/doc/Logica/class-use/Meses.html b/doc/Logica/class-use/Meses.html index d1057af..bfd42ac 100644 --- a/doc/Logica/class-use/Meses.html +++ b/doc/Logica/class-use/Meses.html @@ -2,9 +2,9 @@ - + Uses of Class Logica.Meses - + diff --git a/doc/Logica/class-use/Transaccion.html b/doc/Logica/class-use/Transaccion.html index b5227c8..0edb75b 100644 --- a/doc/Logica/class-use/Transaccion.html +++ b/doc/Logica/class-use/Transaccion.html @@ -2,9 +2,9 @@ - + Uses of Class Logica.Transaccion - + diff --git a/doc/Logica/package-frame.html b/doc/Logica/package-frame.html index 86375d3..3383473 100644 --- a/doc/Logica/package-frame.html +++ b/doc/Logica/package-frame.html @@ -2,9 +2,9 @@ - + Logica - + diff --git a/doc/Logica/package-summary.html b/doc/Logica/package-summary.html index 898e9aa..5fed01c 100644 --- a/doc/Logica/package-summary.html +++ b/doc/Logica/package-summary.html @@ -2,9 +2,9 @@ - + Logica - + diff --git a/doc/Logica/package-tree.html b/doc/Logica/package-tree.html index d37ebe0..dd2c919 100644 --- a/doc/Logica/package-tree.html +++ b/doc/Logica/package-tree.html @@ -2,9 +2,9 @@ - + Logica Class Hierarchy - + diff --git a/doc/Logica/package-use.html b/doc/Logica/package-use.html index 452c2fc..e9c0038 100644 --- a/doc/Logica/package-use.html +++ b/doc/Logica/package-use.html @@ -2,9 +2,9 @@ - + Uses of Package Logica - + diff --git a/doc/Main.html b/doc/Main.html index 7ea4679..5a6e384 100644 --- a/doc/Main.html +++ b/doc/Main.html @@ -2,9 +2,9 @@ - + Main - + diff --git a/doc/VistaControlador/BarraOpciones.html b/doc/VistaControlador/BarraOpciones.html index 7f42bf5..76fde0f 100644 --- a/doc/VistaControlador/BarraOpciones.html +++ b/doc/VistaControlador/BarraOpciones.html @@ -2,9 +2,9 @@ - + BarraOpciones - + diff --git a/doc/VistaControlador/ControladorAniadirVisualizar.html b/doc/VistaControlador/ControladorAniadirVisualizar.html index 6cda564..7d9239d 100644 --- a/doc/VistaControlador/ControladorAniadirVisualizar.html +++ b/doc/VistaControlador/ControladorAniadirVisualizar.html @@ -2,9 +2,9 @@ - + ControladorAniadirVisualizar - + diff --git a/doc/VistaControlador/ControladorBarra.html b/doc/VistaControlador/ControladorBarra.html index b034f9c..3e13b9f 100644 --- a/doc/VistaControlador/ControladorBarra.html +++ b/doc/VistaControlador/ControladorBarra.html @@ -2,9 +2,9 @@ - + ControladorBarra - + @@ -50,7 +50,7 @@ var activeTableTab = "activeTableTab"; diff --git a/doc/allclasses-noframe.html b/doc/allclasses-noframe.html index f4c338a..1951e7f 100644 --- a/doc/allclasses-noframe.html +++ b/doc/allclasses-noframe.html @@ -2,9 +2,9 @@ - + All Classes - + @@ -16,7 +16,9 @@
  • Configuracion
  • ControladorAniadirVisualizar
  • ControladorBarra
  • -
  • ControladorPanelLateral
  • +
  • ControladorPanelGestion
  • +
  • ControladorPanelInterfaz
  • +
  • ControladorPanelModificar
  • Gestion
  • Main
  • Menu
  • @@ -24,7 +26,10 @@
  • MostrarTodo
  • Transaccion
  • VistaAniadirVisualizar
  • -
  • VistaPanelLateral
  • +
  • VistaPanel
  • +
  • VistaPanelGestion
  • +
  • VistaPanelInterfaz
  • +
  • VistaPanelModificar
  • diff --git a/doc/class-use/Main.html b/doc/class-use/Main.html index 2d14978..df5623a 100644 --- a/doc/class-use/Main.html +++ b/doc/class-use/Main.html @@ -2,9 +2,9 @@ - + Uses of Class Main - + diff --git a/doc/constant-values.html b/doc/constant-values.html index b1bb8dd..3988fa9 100644 --- a/doc/constant-values.html +++ b/doc/constant-values.html @@ -2,9 +2,9 @@ - + Constant Field Values - + diff --git a/doc/deprecated-list.html b/doc/deprecated-list.html index 8b36669..1ccbbb5 100644 --- a/doc/deprecated-list.html +++ b/doc/deprecated-list.html @@ -2,9 +2,9 @@ - + Deprecated List - + diff --git a/doc/help-doc.html b/doc/help-doc.html index 7d3e568..c47fbcf 100644 --- a/doc/help-doc.html +++ b/doc/help-doc.html @@ -2,9 +2,9 @@ - + API Help - + diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html index 04ac077..b12e077 100644 --- a/doc/index-files/index-1.html +++ b/doc/index-files/index-1.html @@ -2,9 +2,9 @@ - + A-Index - + @@ -69,7 +69,7 @@ -
    A B C D E F G I L M S T V  +
    A B C E F G I L M S T V 

    A

    @@ -78,7 +78,11 @@
     
    actionPerformed(ActionEvent) - Method in class VistaControlador.ControladorBarra
     
    -
    actionPerformed(ActionEvent) - Method in class VistaControlador.ControladorPanelLateral
    +
    actionPerformed(ActionEvent) - Method in class VistaControlador.ControladorPanelGestion
    +
     
    +
    actionPerformed(ActionEvent) - Method in class VistaControlador.ControladorPanelInterfaz
    +
     
    +
    actionPerformed(ActionEvent) - Method in class VistaControlador.ControladorPanelModificar
     
    alterarVisibilidad(int) - Method in class Logica.Gestion
    @@ -109,7 +113,7 @@
    Aniade una transaccion y la coloca en el mes y gestion que le corresponde, creandolos si no existen todavia
    -A B C D E F G I L M S T V 
    +A B C E F G I L M S T V 
    diff --git a/doc/index-files/index-10.html b/doc/index-files/index-10.html index dc610a0..33daf23 100644 --- a/doc/index-files/index-10.html +++ b/doc/index-files/index-10.html @@ -2,9 +2,9 @@ - -M-Index - + +S-Index + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -69,7 +69,7 @@
    -
    A B C D E F G I L M S T V  +
    A B C E F G I L M S T V 

    B

    @@ -81,7 +81,7 @@
    Inicializa labarra con los datos por defecto
    -A B C D E F G I L M S T V 
    +A B C E F G I L M S T V 
    -
    A B C D E F G I L M S T V  +
    A B C E F G I L M S T V 

    C

    @@ -96,14 +96,20 @@
    Constructor del controlador
    -
    ControladorPanelLateral - Class in VistaControlador
    +
    ControladorPanelGestion - Class in VistaControlador
     
    -
    ControladorPanelLateral(VistaPanelLateral, Menu) - Constructor for class VistaControlador.ControladorPanelLateral
    +
    ControladorPanelGestion(VistaPanelGestion, Menu) - Constructor for class VistaControlador.ControladorPanelGestion
    Controlador del panel lateral que gestionara los datos
    +
    ControladorPanelInterfaz - Class in VistaControlador
    +
     
    +
    ControladorPanelInterfaz(VistaPanelInterfaz, Menu) - Constructor for class VistaControlador.ControladorPanelInterfaz
    +
     
    +
    ControladorPanelModificar - Class in VistaControlador
    +
     
    -A B C D E F G I L M S T V 
    +A B C E F G I L M S T V 
    diff --git a/doc/index-files/index-4.html b/doc/index-files/index-4.html index ab7c134..406e468 100644 --- a/doc/index-files/index-4.html +++ b/doc/index-files/index-4.html @@ -2,9 +2,9 @@ - -D-Index - + +E-Index + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ diff --git a/doc/overview-summary.html b/doc/overview-summary.html index 1db33a1..69495bd 100644 --- a/doc/overview-summary.html +++ b/doc/overview-summary.html @@ -2,9 +2,9 @@ - + Overview - + diff --git a/doc/overview-tree.html b/doc/overview-tree.html index 927642a..0e7f570 100644 --- a/doc/overview-tree.html +++ b/doc/overview-tree.html @@ -2,9 +2,9 @@ - + Class Hierarchy - + @@ -97,7 +97,13 @@
  • javax.swing.JPanel (implements javax.accessibility.Accessible)
  • @@ -123,7 +129,9 @@
  • Ficheros.Configuracion
  • VistaControlador.ControladorAniadirVisualizar (implements java.awt.event.ActionListener)
  • VistaControlador.ControladorBarra (implements java.awt.event.ActionListener)
  • -
  • VistaControlador.ControladorPanelLateral (implements java.awt.event.ActionListener, com.github.lgooddatepicker.optionalusertools.DateChangeListener)
  • +
  • VistaControlador.ControladorPanelGestion (implements java.awt.event.ActionListener)
  • +
  • VistaControlador.ControladorPanelInterfaz (implements java.awt.event.ActionListener)
  • +
  • VistaControlador.ControladorPanelModificar (implements java.awt.event.ActionListener)
  • Logica.Gestion (implements java.io.Serializable)
  • Main
  • Logica.Meses
  • diff --git a/doc/package-frame.html b/doc/package-frame.html index 16af77e..6272613 100644 --- a/doc/package-frame.html +++ b/doc/package-frame.html @@ -2,9 +2,9 @@ - + <Unnamed> - + diff --git a/doc/package-summary.html b/doc/package-summary.html index c90a2fb..b43d6b9 100644 --- a/doc/package-summary.html +++ b/doc/package-summary.html @@ -2,8 +2,8 @@ - - + + diff --git a/doc/package-tree.html b/doc/package-tree.html index cd44cec..767a82e 100644 --- a/doc/package-tree.html +++ b/doc/package-tree.html @@ -2,9 +2,9 @@ - + Class Hierarchy - + diff --git a/doc/package-use.html b/doc/package-use.html index 9ce2ca0..a5411b2 100644 --- a/doc/package-use.html +++ b/doc/package-use.html @@ -2,9 +2,9 @@ - + Uses of Package - + diff --git a/doc/serialized-form.html b/doc/serialized-form.html index 3323f45..d356a91 100644 --- a/doc/serialized-form.html +++ b/doc/serialized-form.html @@ -2,9 +2,9 @@ - + Serialized Form - + @@ -101,10 +101,14 @@

    isPositivo

    boolean isPositivo
    -
  • +
  • nombre

    java.lang.String nombre
  • +
  • +

    isModified

    +
    boolean isModified
    +
  • @@ -137,10 +141,14 @@

    dia

    java.time.LocalDate dia
    -
  • +
  • gestion

    Gestion gestion
  • +
  • +

    isModified

    +
    boolean isModified
    +
  • @@ -198,10 +206,34 @@

    mostrar

    javax.swing.JMenu mostrar
    -
  • +
  • mostrarTodo

    javax.swing.JMenuItem mostrarTodo
  • +
  • +

    vistas

    +
    javax.swing.JMenu vistas
    +
  • +
  • +

    gestion

    +
    javax.swing.JMenuItem gestion
    +
  • +
  • +

    modificacion

    +
    javax.swing.JMenuItem modificacion
    +
  • +
  • +

    menuInterfaz

    +
    javax.swing.JMenuItem menuInterfaz
    +
  • +
  • +

    administracion

    +
    javax.swing.JMenu administracion
    +
  • +
  • +

    aniadirUsuario

    +
    javax.swing.JMenuItem aniadirUsuario
    +
  • @@ -231,8 +263,16 @@
    VistaAniadirVisualizar gastos
  • +

    panelGestion

    +
    VistaPanelGestion panelGestion
    +
  • +
  • +

    panelModificar

    +
    VistaPanelModificar panelModificar
    +
  • +
  • panel

    -
    VistaPanelLateral panel
    +
    VistaPanel panel
  • rutaGuardado

    @@ -262,10 +302,26 @@

    datosGastos

    Gestion datosGastos
  • -
  • +
  • datosIngresos

    Gestion datosIngresos
  • +
  • +

    elegirMes

    +
    com.github.lgooddatepicker.components.DatePicker elegirMes
    +
  • +
  • +

    anio

    +
    int anio
    +
  • +
  • +

    mes

    +
    java.time.Month mes
    +
  • +
  • +

    panelInterfaz

    +
    VistaPanelInterfaz panelInterfaz
    +
  • @@ -322,22 +378,23 @@

    panel

    javax.swing.JScrollPane panel
    -
  • +
  • menu

    Menu menu
  • -
  • -

    controlador

    -
    ControladorAniadirVisualizar controlador
    -
  • -
  • +
  • -

    Class VistaControlador.VistaPanelLateral extends javax.swing.JPanel implements Serializable

    +

    Class VistaControlador.VistaPanel extends javax.swing.JPanel implements Serializable

    +
  • +
  • + + +

    Class VistaControlador.VistaPanelGestion extends VistaPanel implements Serializable

    • Serialized Fields

      @@ -370,6 +427,86 @@
  • +
  • + + +

    Class VistaControlador.VistaPanelInterfaz extends VistaPanel implements Serializable

    +
      +
    • +

      Serialized Fields

      +
        +
      • +

        menu

        +
        javax.swing.ButtonGroup menu
        +
      • +
      • +

        temaClaro

        +
        javax.swing.JRadioButton temaClaro
        +
      • +
      • +

        temaRosa

        +
        javax.swing.JRadioButton temaRosa
        +
      • +
      • +

        temaOscuro

        +
        javax.swing.JRadioButton temaOscuro
        +
      • +
      • +

        aplicarBarra

        +
        javax.swing.JCheckBox aplicarBarra
        +
      • +
      • +

        aplicarCambios

        +
        javax.swing.JButton aplicarCambios
        +
      • +
      +
    • +
    +
  • +
  • + + +

    Class VistaControlador.VistaPanelModificar extends VistaPanel implements Serializable

    +
      +
    • +

      Serialized Fields

      +
        +
      • +

        viejoNombre

        +
        javax.swing.JTextField viejoNombre
        +
      • +
      • +

        nuevoNombre

        +
        javax.swing.JTextField nuevoNombre
        +
      • +
      • +

        viejoEditar

        +
        javax.swing.JTextField viejoEditar
        +
      • +
      • +

        nuevoEditar

        +
        javax.swing.JTextField nuevoEditar
        +
      • +
      • +

        dineroPanel

        +
        javax.swing.JTextField dineroPanel
        +
      • +
      • +

        dineroEditar

        +
        javax.swing.JTextField dineroEditar
        +
      • +
      • +

        editarTransaccion

        +
        javax.swing.JButton editarTransaccion
        +
      • +
      • +

        editarGestion

        +
        javax.swing.JButton editarGestion
        +
      • +
      +
    • +
    +
  • diff --git a/src/Logica/Gestion.java b/src/Logica/Gestion.java index 0b34f2a..b79d157 100644 --- a/src/Logica/Gestion.java +++ b/src/Logica/Gestion.java @@ -9,6 +9,7 @@ public class Gestion implements Serializable{ private float total; private boolean isPositivo; private String nombre; + private boolean isModified; /** * Constructor principal de gestion @@ -22,6 +23,7 @@ public class Gestion implements Serializable{ this.total = 0; this.nombre = nombre; this.isPositivo = isPositivo; + this.isModified = false; } /** @@ -35,6 +37,7 @@ public class Gestion implements Serializable{ public void setNombre(String nombre) { this.nombre = nombre; + this.isModified = true; } /** @@ -93,6 +96,12 @@ public class Gestion implements Serializable{ } } + /** + * Permite editar una transaccion por nombre para cambiarselo + * + * @param nombreViejo nombre de la transaccion a cambiar + * @param nombreNuevo nuevo nombre + */ public void editarTransaccion(String nombreViejo, String nombreNuevo) { for(Transaccion elemento:this.gestiones) { if(elemento.getNombre().equals(nombreViejo)) { @@ -102,6 +111,12 @@ public class Gestion implements Serializable{ } } + /** + * Edita la fecha de una transaccion dada su fecha + * + * @param nombreViejo nombre de la trasnaccion a editar + * @param fecha nueva fecha + */ public void editarTransaccionFecha(String nombreViejo, LocalDate fecha) { for(Transaccion elemento:this.gestiones) { if(elemento.getNombre().equals(nombreViejo)) { @@ -111,6 +126,12 @@ public class Gestion implements Serializable{ } } + /** + * Edita la transaccion con el nombre indicado alterando el dinero que cuesta + * + * @param nombreViejo nombre de la transaccion a editar + * @param dinero nueva cantidad de dinero; + */ public void editarTransaccionDiero(String nombreViejo, float dinero) { for(Transaccion elemento:this.gestiones) { if(elemento.getNombre().equals(nombreViejo)) { @@ -153,9 +174,7 @@ public class Gestion implements Serializable{ } public String toString() { - String ret = ""; - ret += this.nombre + " " + this.suma + " " + this.isPositivo; - return ret; + return this.nombre + " " + this.suma + " Gastos:" + this.isPositivo + " Modificado:"+ this.isModified; } } diff --git a/src/Logica/Transaccion.java b/src/Logica/Transaccion.java index 20bf61b..4182b97 100644 --- a/src/Logica/Transaccion.java +++ b/src/Logica/Transaccion.java @@ -11,6 +11,7 @@ public class Transaccion implements Serializable{ private boolean visible; private LocalDate dia; private Gestion gestion; + private boolean isModified; /** * Constructor de transaccion @@ -26,12 +27,28 @@ public class Transaccion implements Serializable{ this.visible = true; this.dia = dia; this.gestion=gestion; + this.isModified = false; } - public String toString() { + /** + * Devuelve los datos importantes de la transaccion + * + * @return cadena los datos principales a mostrar + */ + public String toStringCorto() { return this.nombre + " " + this.dinero; } + /** + * Devuelve todos los datos de la transaccion + * + * @return cadena con todos los datos + */ + public String toString() { + return this.nombre + " " + this.dinero + " " + this.dia.toString() + " Modificado:" + this.isModified + + " Visible:" + this.visible; + } + /** * devuelve si la transaccion se contara en la gestion o no * @@ -94,15 +111,33 @@ public class Transaccion implements Serializable{ return this.nombre; } + /** + * Edita el nombre de la transaccion + * + * @param nombre nuevo nombre + */ public void setName(String nombre) { this.nombre = nombre; + this.isModified = true; } + /** + * edita la fecha de la transaccion + * + * @param fecha nueva fecha + */ public void setFecha(LocalDate fecha) { this.dia = fecha; + this.isModified = true; } + /** + * Edita el precio de la nueva transaccion + * + * @param nuevo nuevo precio + */ public void setPrecio(float nuevo) { this.dinero = nuevo; + this.isModified = true; } } diff --git a/src/VistaControlador/Menu.java b/src/VistaControlador/Menu.java index 47077ce..12bb7fd 100644 --- a/src/VistaControlador/Menu.java +++ b/src/VistaControlador/Menu.java @@ -252,7 +252,7 @@ public class Menu extends JFrame{ this.pestanias.add(vista); this.controladores.add(new ControladorAniadirVisualizar(vista)); this.pestania.addTab(vista.getName(),vista); - this.meses.getGestionesActuales().add(gestion); + //this.meses.getGestionesActuales().add(gestion); } /** diff --git a/src/VistaControlador/VistaAniadirVisualizar.java b/src/VistaControlador/VistaAniadirVisualizar.java index bb4618b..6c4150b 100644 --- a/src/VistaControlador/VistaAniadirVisualizar.java +++ b/src/VistaControlador/VistaAniadirVisualizar.java @@ -47,14 +47,6 @@ public class VistaAniadirVisualizar extends JPanel{ this.add(panel); } - /** - * Establece cual es el panel lateral - * - * @param panel panel lateral que gestionara este panel - */ - /*public static void setPanelLateral(VistaPanelGestion panel) { - VistaAniadirVisualizar.panelLateral = panel; - }*/ public String getName() { return this.gestiones.getNombre(); @@ -79,7 +71,7 @@ public class VistaAniadirVisualizar extends JPanel{ public void aniadirElemento(String nombre, float dinero, ControladorAniadirVisualizar controlador) { Transaccion transaccion = new Transaccion(nombre, dinero,this.menu.elegirMes.getDate(),this.gestiones); this.gestiones.aniadirGasto(transaccion); - JCheckBox check = new JCheckBox(transaccion.toString()); + JCheckBox check = new JCheckBox(transaccion.toStringCorto()); check.setSelected(true); check.setSize(new Dimension(x,VistaAniadirVisualizar.altoCheck)); check.addActionListener(controlador); @@ -107,16 +99,21 @@ public class VistaAniadirVisualizar extends JPanel{ } } + /** + * Edita el nombre de una transacccion dado el nombre de esta + * + * @param nombreViejo nombre de la transaccion + * @param nombreNuevo nuevo nombre + */ void editarTransaccion(String nombreViejo, String nombreNuevo){ for(Transaccion transaccion:this.gestiones.getElementos()) { if(transaccion.getNombre().equals(nombreViejo)) { for(JCheckBox check:this.transacciones) { - if(check.getText().equals(transaccion.toString())) { + if(check.getText().equals(transaccion.toStringCorto())) { transaccion.setName(nombreNuevo); - check.setText(transaccion.toString()); + check.setText(transaccion.toStringCorto()); check.revalidate(); check.repaint(); - //this.gestiones.editarTransaccion(nombreViejo, nombreNuevo); this.menu.panelGestion.actualizarDatos(this.gestiones); this.cuadro.revalidate(); this.cuadro.repaint(); @@ -126,13 +123,19 @@ public class VistaAniadirVisualizar extends JPanel{ } } + /** + * Edita el coste de una transaccion dado su nombre + * + * @param nombreViejo nombre de la transaccion + * @param dinero costo de la transaccion + */ void editarTransaccionDinero(String nombreViejo, float dinero){ for(Transaccion transaccion:this.gestiones.getElementos()) { if(transaccion.getNombre().equals(nombreViejo)) { for(JCheckBox check:this.transacciones) { - if(check.getText().equals(transaccion.toString())) { + if(check.getText().equals(transaccion.toStringCorto())) { transaccion.setPrecio(dinero); - check.setText(transaccion.toString()); + check.setText(transaccion.toStringCorto()); check.revalidate(); check.repaint(); //this.gestiones.editarTransaccion(nombreViejo, nombreNuevo); @@ -145,13 +148,19 @@ public class VistaAniadirVisualizar extends JPanel{ } } + /** + * Edita la fecha de una transaccion dado su nombre + * + * @param nombreViejo nombre de la transaccion + * @param fecha nueva fecha + */ void editarTransaccionFecha(String nombreViejo, LocalDate fecha){ for(Transaccion transaccion:this.gestiones.getElementos()) { if(transaccion.getNombre().equals(nombreViejo)) { for(JCheckBox check:this.transacciones) { - if(check.getText().equals(transaccion.toString())) { + if(check.getText().equals(transaccion.toStringCorto())) { transaccion.setFecha(fecha); - check.setText(transaccion.toString()); + check.setText(transaccion.toStringCorto()); check.revalidate(); check.repaint(); //this.gestiones.editarTransaccion(nombreViejo, nombreNuevo); @@ -168,7 +177,7 @@ public class VistaAniadirVisualizar extends JPanel{ * aniade una nueva transaccion */ private void aniadirElemento(Transaccion transaccion, ControladorAniadirVisualizar controlador) { - JCheckBox check = new JCheckBox(transaccion.toString()); + JCheckBox check = new JCheckBox(transaccion.toStringCorto()); check.setSelected(true); check.setSize(new Dimension(x,VistaAniadirVisualizar.altoCheck)); check.addActionListener(controlador);