diff --git a/bin/control/ControlAdmin.class b/bin/control/ControlAdmin.class index 910e91f..2c91ad0 100644 Binary files a/bin/control/ControlAdmin.class and b/bin/control/ControlAdmin.class differ diff --git a/bin/control/ControlLogin.class b/bin/control/ControlLogin.class index 549da67..365d297 100644 Binary files a/bin/control/ControlLogin.class and b/bin/control/ControlLogin.class differ diff --git a/bin/control/ControlPrincipal.class b/bin/control/ControlPrincipal.class index c0b86bd..3b1361f 100644 Binary files a/bin/control/ControlPrincipal.class and b/bin/control/ControlPrincipal.class differ diff --git a/bin/main/Main.class b/bin/main/Main.class index 1f192a4..1154df9 100644 Binary files a/bin/main/Main.class and b/bin/main/Main.class differ diff --git a/bin/utiles/Archivo.class b/bin/utiles/Archivo.class index fb8c621..0e49aaf 100644 Binary files a/bin/utiles/Archivo.class and b/bin/utiles/Archivo.class differ diff --git a/bin/utiles/Cifrador.class b/bin/utiles/Cifrador.class index c01c5c1..39b1027 100644 Binary files a/bin/utiles/Cifrador.class and b/bin/utiles/Cifrador.class differ diff --git a/bin/utiles/Validador.class b/bin/utiles/Validador.class index 85405fe..c1b0402 100644 Binary files a/bin/utiles/Validador.class and b/bin/utiles/Validador.class differ diff --git a/bin/visual/frame/FrameAdministrador$1.class b/bin/visual/frame/FrameAdministrador$1.class new file mode 100644 index 0000000..2ba6fbd Binary files /dev/null and b/bin/visual/frame/FrameAdministrador$1.class differ diff --git a/bin/visual/frame/FrameAdministrador$2.class b/bin/visual/frame/FrameAdministrador$2.class new file mode 100644 index 0000000..56eda65 Binary files /dev/null and b/bin/visual/frame/FrameAdministrador$2.class differ diff --git a/bin/visual/frame/FrameAdministrador$3.class b/bin/visual/frame/FrameAdministrador$3.class new file mode 100644 index 0000000..3e3269e Binary files /dev/null and b/bin/visual/frame/FrameAdministrador$3.class differ diff --git a/bin/visual/frame/FrameAdministrador$4.class b/bin/visual/frame/FrameAdministrador$4.class new file mode 100644 index 0000000..7df8252 Binary files /dev/null and b/bin/visual/frame/FrameAdministrador$4.class differ diff --git a/bin/visualV2/FrameAdministrador.class b/bin/visual/frame/FrameAdministrador.class similarity index 76% rename from bin/visualV2/FrameAdministrador.class rename to bin/visual/frame/FrameAdministrador.class index 93af99f..ae205b6 100644 Binary files a/bin/visualV2/FrameAdministrador.class and b/bin/visual/frame/FrameAdministrador.class differ diff --git a/bin/visual/frame/FrameCrear$1.class b/bin/visual/frame/FrameCrear$1.class new file mode 100644 index 0000000..94b1ea4 Binary files /dev/null and b/bin/visual/frame/FrameCrear$1.class differ diff --git a/bin/visual/frame/FrameCrear$2.class b/bin/visual/frame/FrameCrear$2.class new file mode 100644 index 0000000..b950187 Binary files /dev/null and b/bin/visual/frame/FrameCrear$2.class differ diff --git a/bin/visual/frame/FrameCrear.class b/bin/visual/frame/FrameCrear.class new file mode 100644 index 0000000..1646a71 Binary files /dev/null and b/bin/visual/frame/FrameCrear.class differ diff --git a/bin/visual/frame/FrameLogin$1.class b/bin/visual/frame/FrameLogin$1.class new file mode 100644 index 0000000..ccd1c26 Binary files /dev/null and b/bin/visual/frame/FrameLogin$1.class differ diff --git a/bin/visual/frame/FrameLogin$2.class b/bin/visual/frame/FrameLogin$2.class new file mode 100644 index 0000000..fd92e45 Binary files /dev/null and b/bin/visual/frame/FrameLogin$2.class differ diff --git a/bin/visual/frame/FrameLogin$3.class b/bin/visual/frame/FrameLogin$3.class new file mode 100644 index 0000000..71b6d15 Binary files /dev/null and b/bin/visual/frame/FrameLogin$3.class differ diff --git a/bin/visual/frame/FrameLogin$4.class b/bin/visual/frame/FrameLogin$4.class new file mode 100644 index 0000000..d81f78e Binary files /dev/null and b/bin/visual/frame/FrameLogin$4.class differ diff --git a/bin/visualV2/FrameLogin.class b/bin/visual/frame/FrameLogin.class similarity index 74% rename from bin/visualV2/FrameLogin.class rename to bin/visual/frame/FrameLogin.class index 2eb41aa..4fa0b91 100644 Binary files a/bin/visualV2/FrameLogin.class and b/bin/visual/frame/FrameLogin.class differ diff --git a/bin/visual/frame/FrameModificar$1.class b/bin/visual/frame/FrameModificar$1.class new file mode 100644 index 0000000..874ed09 Binary files /dev/null and b/bin/visual/frame/FrameModificar$1.class differ diff --git a/bin/visual/frame/FrameModificar$2.class b/bin/visual/frame/FrameModificar$2.class new file mode 100644 index 0000000..b248375 Binary files /dev/null and b/bin/visual/frame/FrameModificar$2.class differ diff --git a/bin/visual/frame/FrameModificar$3.class b/bin/visual/frame/FrameModificar$3.class new file mode 100644 index 0000000..40a9202 Binary files /dev/null and b/bin/visual/frame/FrameModificar$3.class differ diff --git a/bin/visualV2/FrameModificar.class b/bin/visual/frame/FrameModificar.class similarity index 79% rename from bin/visualV2/FrameModificar.class rename to bin/visual/frame/FrameModificar.class index 66b7301..e7e7211 100644 Binary files a/bin/visualV2/FrameModificar.class and b/bin/visual/frame/FrameModificar.class differ diff --git a/bin/visual/frame/FramePrincipal$1.class b/bin/visual/frame/FramePrincipal$1.class new file mode 100644 index 0000000..bc6bc8a Binary files /dev/null and b/bin/visual/frame/FramePrincipal$1.class differ diff --git a/bin/visual/frame/FramePrincipal.class b/bin/visual/frame/FramePrincipal.class new file mode 100644 index 0000000..c1c8bc1 Binary files /dev/null and b/bin/visual/frame/FramePrincipal.class differ diff --git a/bin/visual/frame/FrameRegistro$1.class b/bin/visual/frame/FrameRegistro$1.class new file mode 100644 index 0000000..fb8407a Binary files /dev/null and b/bin/visual/frame/FrameRegistro$1.class differ diff --git a/bin/visual/frame/FrameRegistro$2.class b/bin/visual/frame/FrameRegistro$2.class new file mode 100644 index 0000000..8b3f32b Binary files /dev/null and b/bin/visual/frame/FrameRegistro$2.class differ diff --git a/bin/visualV2/FrameRegistro.class b/bin/visual/frame/FrameRegistro.class similarity index 76% rename from bin/visualV2/FrameRegistro.class rename to bin/visual/frame/FrameRegistro.class index 8bfa452..2a56009 100644 Binary files a/bin/visualV2/FrameRegistro.class and b/bin/visual/frame/FrameRegistro.class differ diff --git a/bin/visual/otros/JTableTable$1.class b/bin/visual/otros/JTableTable$1.class new file mode 100644 index 0000000..ae0444e Binary files /dev/null and b/bin/visual/otros/JTableTable$1.class differ diff --git a/bin/visualV2/JTableTable.class b/bin/visual/otros/JTableTable.class similarity index 64% rename from bin/visualV2/JTableTable.class rename to bin/visual/otros/JTableTable.class index 985132f..726f851 100644 Binary files a/bin/visualV2/JTableTable.class and b/bin/visual/otros/JTableTable.class differ diff --git a/bin/visualV2/P.A.M.v2/catola.png b/bin/visual/panel/P.A.M.v2/catola.png similarity index 100% rename from bin/visualV2/P.A.M.v2/catola.png rename to bin/visual/panel/P.A.M.v2/catola.png diff --git a/bin/visualV2/P.A.M.v2/logo.png b/bin/visual/panel/P.A.M.v2/logo.png similarity index 100% rename from bin/visualV2/P.A.M.v2/logo.png rename to bin/visual/panel/P.A.M.v2/logo.png diff --git a/bin/visualV2/P.A.M.v2/resumen.png b/bin/visual/panel/P.A.M.v2/resumen.png similarity index 100% rename from bin/visualV2/P.A.M.v2/resumen.png rename to bin/visual/panel/P.A.M.v2/resumen.png diff --git a/bin/visual/panel/PanelCartola$1.class b/bin/visual/panel/PanelCartola$1.class new file mode 100644 index 0000000..f8424c3 Binary files /dev/null and b/bin/visual/panel/PanelCartola$1.class differ diff --git a/bin/visual/panel/PanelCartola$2.class b/bin/visual/panel/PanelCartola$2.class new file mode 100644 index 0000000..2f48c52 Binary files /dev/null and b/bin/visual/panel/PanelCartola$2.class differ diff --git a/bin/visual/panel/PanelCartola$3.class b/bin/visual/panel/PanelCartola$3.class new file mode 100644 index 0000000..b5f5c97 Binary files /dev/null and b/bin/visual/panel/PanelCartola$3.class differ diff --git a/bin/visualV2/PanelCartola.class b/bin/visual/panel/PanelCartola.class similarity index 78% rename from bin/visualV2/PanelCartola.class rename to bin/visual/panel/PanelCartola.class index dbbc4ef..8308e47 100644 Binary files a/bin/visualV2/PanelCartola.class and b/bin/visual/panel/PanelCartola.class differ diff --git a/bin/visual/panel/PanelResumen$1.class b/bin/visual/panel/PanelResumen$1.class new file mode 100644 index 0000000..8e795f1 Binary files /dev/null and b/bin/visual/panel/PanelResumen$1.class differ diff --git a/bin/visualV2/PanelResumen.class b/bin/visual/panel/PanelResumen.class similarity index 62% rename from bin/visualV2/PanelResumen.class rename to bin/visual/panel/PanelResumen.class index f9d6b27..0cfe3c7 100644 Binary files a/bin/visualV2/PanelResumen.class and b/bin/visual/panel/PanelResumen.class differ diff --git a/bin/visual/panel/PanelSuperior$1.class b/bin/visual/panel/PanelSuperior$1.class new file mode 100644 index 0000000..ad82046 Binary files /dev/null and b/bin/visual/panel/PanelSuperior$1.class differ diff --git a/bin/visual/panel/PanelSuperior$2.class b/bin/visual/panel/PanelSuperior$2.class new file mode 100644 index 0000000..e6d7c0c Binary files /dev/null and b/bin/visual/panel/PanelSuperior$2.class differ diff --git a/bin/visualV2/PanelSuperior.class b/bin/visual/panel/PanelSuperior.class similarity index 76% rename from bin/visualV2/PanelSuperior.class rename to bin/visual/panel/PanelSuperior.class index d85c186..c46af49 100644 Binary files a/bin/visualV2/PanelSuperior.class and b/bin/visual/panel/PanelSuperior.class differ diff --git a/bin/visualV2/FrameAdministrador$1.class b/bin/visualV2/FrameAdministrador$1.class deleted file mode 100644 index 267ed44..0000000 Binary files a/bin/visualV2/FrameAdministrador$1.class and /dev/null differ diff --git a/bin/visualV2/FrameAdministrador$2.class b/bin/visualV2/FrameAdministrador$2.class deleted file mode 100644 index 99ccbe5..0000000 Binary files a/bin/visualV2/FrameAdministrador$2.class and /dev/null differ diff --git a/bin/visualV2/FrameAdministrador$3.class b/bin/visualV2/FrameAdministrador$3.class deleted file mode 100644 index c438b63..0000000 Binary files a/bin/visualV2/FrameAdministrador$3.class and /dev/null differ diff --git a/bin/visualV2/FrameAdministrador$4.class b/bin/visualV2/FrameAdministrador$4.class deleted file mode 100644 index 6d4b788..0000000 Binary files a/bin/visualV2/FrameAdministrador$4.class and /dev/null differ diff --git a/bin/visualV2/FrameCrear$1.class b/bin/visualV2/FrameCrear$1.class deleted file mode 100644 index 2d50e57..0000000 Binary files a/bin/visualV2/FrameCrear$1.class and /dev/null differ diff --git a/bin/visualV2/FrameCrear.class b/bin/visualV2/FrameCrear.class deleted file mode 100644 index 3a70818..0000000 Binary files a/bin/visualV2/FrameCrear.class and /dev/null differ diff --git a/bin/visualV2/FrameLogin$1.class b/bin/visualV2/FrameLogin$1.class deleted file mode 100644 index d9b7924..0000000 Binary files a/bin/visualV2/FrameLogin$1.class and /dev/null differ diff --git a/bin/visualV2/FrameLogin$2.class b/bin/visualV2/FrameLogin$2.class deleted file mode 100644 index b0fa6b5..0000000 Binary files a/bin/visualV2/FrameLogin$2.class and /dev/null differ diff --git a/bin/visualV2/FrameLogin$3.class b/bin/visualV2/FrameLogin$3.class deleted file mode 100644 index 08d7bac..0000000 Binary files a/bin/visualV2/FrameLogin$3.class and /dev/null differ diff --git a/bin/visualV2/FrameLogin$4.class b/bin/visualV2/FrameLogin$4.class deleted file mode 100644 index eee8eca..0000000 Binary files a/bin/visualV2/FrameLogin$4.class and /dev/null differ diff --git a/bin/visualV2/FrameModificar$1.class b/bin/visualV2/FrameModificar$1.class deleted file mode 100644 index 3854792..0000000 Binary files a/bin/visualV2/FrameModificar$1.class and /dev/null differ diff --git a/bin/visualV2/FrameModificar$2.class b/bin/visualV2/FrameModificar$2.class deleted file mode 100644 index 7f50689..0000000 Binary files a/bin/visualV2/FrameModificar$2.class and /dev/null differ diff --git a/bin/visualV2/FrameModificar$3.class b/bin/visualV2/FrameModificar$3.class deleted file mode 100644 index 25e0b71..0000000 Binary files a/bin/visualV2/FrameModificar$3.class and /dev/null differ diff --git a/bin/visualV2/FramePrincipal.class b/bin/visualV2/FramePrincipal.class deleted file mode 100644 index 1fcdcc2..0000000 Binary files a/bin/visualV2/FramePrincipal.class and /dev/null differ diff --git a/bin/visualV2/FrameRegistro$1.class b/bin/visualV2/FrameRegistro$1.class deleted file mode 100644 index 27ac858..0000000 Binary files a/bin/visualV2/FrameRegistro$1.class and /dev/null differ diff --git a/bin/visualV2/FrameRegistro$2.class b/bin/visualV2/FrameRegistro$2.class deleted file mode 100644 index b2b0ce7..0000000 Binary files a/bin/visualV2/FrameRegistro$2.class and /dev/null differ diff --git a/bin/visualV2/JTableTable$1.class b/bin/visualV2/JTableTable$1.class deleted file mode 100644 index 8f982ae..0000000 Binary files a/bin/visualV2/JTableTable$1.class and /dev/null differ diff --git a/bin/visualV2/PanelCartola$1.class b/bin/visualV2/PanelCartola$1.class deleted file mode 100644 index c7617b5..0000000 Binary files a/bin/visualV2/PanelCartola$1.class and /dev/null differ diff --git a/bin/visualV2/PanelCartola$2.class b/bin/visualV2/PanelCartola$2.class deleted file mode 100644 index 8a15e1e..0000000 Binary files a/bin/visualV2/PanelCartola$2.class and /dev/null differ diff --git a/bin/visualV2/PanelCartola$3.class b/bin/visualV2/PanelCartola$3.class deleted file mode 100644 index bd2f2c0..0000000 Binary files a/bin/visualV2/PanelCartola$3.class and /dev/null differ diff --git a/bin/visualV2/PanelResumen$1.class b/bin/visualV2/PanelResumen$1.class deleted file mode 100644 index e9c4fb4..0000000 Binary files a/bin/visualV2/PanelResumen$1.class and /dev/null differ diff --git a/bin/visualV2/PanelSuperior$1.class b/bin/visualV2/PanelSuperior$1.class deleted file mode 100644 index 41e005b..0000000 Binary files a/bin/visualV2/PanelSuperior$1.class and /dev/null differ diff --git a/bin/visualV2/PanelSuperior$2.class b/bin/visualV2/PanelSuperior$2.class deleted file mode 100644 index 55076a1..0000000 Binary files a/bin/visualV2/PanelSuperior$2.class and /dev/null differ diff --git a/doc/allclasses-frame.html b/doc/allclasses-frame.html new file mode 100644 index 0000000..6798a6a --- /dev/null +++ b/doc/allclasses-frame.html @@ -0,0 +1,33 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/allclasses-noframe.html b/doc/allclasses-noframe.html new file mode 100644 index 0000000..6d0689f --- /dev/null +++ b/doc/allclasses-noframe.html @@ -0,0 +1,33 @@ + + + + + +All Classes + + + + + +

All Classes

+
+ +
+ + diff --git a/doc/constant-values.html b/doc/constant-values.html new file mode 100644 index 0000000..9ca1a66 --- /dev/null +++ b/doc/constant-values.html @@ -0,0 +1,124 @@ + + + + + +Constant Field Values + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Constant Field Values

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/control/ControlAdmin.html b/doc/control/ControlAdmin.html new file mode 100644 index 0000000..9362664 --- /dev/null +++ b/doc/control/ControlAdmin.html @@ -0,0 +1,385 @@ + + + + + +ControlAdmin + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
control
+

Class ControlAdmin

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/control/ControlLogin.html b/doc/control/ControlLogin.html new file mode 100644 index 0000000..46eb1c0 --- /dev/null +++ b/doc/control/ControlLogin.html @@ -0,0 +1,346 @@ + + + + + +ControlLogin + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
control
+

Class ControlLogin

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/control/ControlPrincipal.html b/doc/control/ControlPrincipal.html new file mode 100644 index 0000000..b1f7eff --- /dev/null +++ b/doc/control/ControlPrincipal.html @@ -0,0 +1,539 @@ + + + + + +ControlPrincipal + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
control
+

Class ControlPrincipal

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/control/class-use/ControlAdmin.html b/doc/control/class-use/ControlAdmin.html new file mode 100644 index 0000000..f12b35c --- /dev/null +++ b/doc/control/class-use/ControlAdmin.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class control.ControlAdmin + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
control.ControlAdmin

+
+
No usage of control.ControlAdmin
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/control/class-use/ControlLogin.html b/doc/control/class-use/ControlLogin.html new file mode 100644 index 0000000..b7cca0b --- /dev/null +++ b/doc/control/class-use/ControlLogin.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class control.ControlLogin + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
control.ControlLogin

+
+
No usage of control.ControlLogin
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/control/class-use/ControlPrincipal.html b/doc/control/class-use/ControlPrincipal.html new file mode 100644 index 0000000..dedd9c9 --- /dev/null +++ b/doc/control/class-use/ControlPrincipal.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class control.ControlPrincipal + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
control.ControlPrincipal

+
+
No usage of control.ControlPrincipal
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/control/package-frame.html b/doc/control/package-frame.html new file mode 100644 index 0000000..b827642 --- /dev/null +++ b/doc/control/package-frame.html @@ -0,0 +1,22 @@ + + + + + +control + + + + + +

control

+
+

Classes

+ +
+ + diff --git a/doc/control/package-summary.html b/doc/control/package-summary.html new file mode 100644 index 0000000..9556075 --- /dev/null +++ b/doc/control/package-summary.html @@ -0,0 +1,160 @@ + + + + + +control + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package control

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/control/package-tree.html b/doc/control/package-tree.html new file mode 100644 index 0000000..3b253db --- /dev/null +++ b/doc/control/package-tree.html @@ -0,0 +1,139 @@ + + + + + +control Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package control

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/control/package-use.html b/doc/control/package-use.html new file mode 100644 index 0000000..1938659 --- /dev/null +++ b/doc/control/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package control + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
control

+
+
No usage of control
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/deprecated-list.html b/doc/deprecated-list.html new file mode 100644 index 0000000..f17896a --- /dev/null +++ b/doc/deprecated-list.html @@ -0,0 +1,124 @@ + + + + + +Deprecated List + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/help-doc.html b/doc/help-doc.html new file mode 100644 index 0000000..68d2346 --- /dev/null +++ b/doc/help-doc.html @@ -0,0 +1,229 @@ + + + + + +API Help + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-1.html b/doc/index-files/index-1.html new file mode 100644 index 0000000..d4a2edb --- /dev/null +++ b/doc/index-files/index-1.html @@ -0,0 +1,174 @@ + + + + + +A-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

A

+
+
actArchivo(String[]) - Method in class utiles.Archivo
+
+
Remplaza el contenido del archivo por el String[] entregado
+
+
actId() - Method in class control.ControlPrincipal
+
+
Actualiza los id de las filas del archivo esto para que despues de + cualquier reordenamiento se mantenga el orden en los ids
+
+
actSaldos() - Method in class control.ControlPrincipal
+
+
Actualiza todos los saldos dentro del archivo para que sean + correspondientes.
+
+
actTabla() - Method in class visual.frame.FrameAdministrador
+
+
Llena la tabla de usuarios
+
+
actTabla() - Method in class visual.otros.JTableTable
+
+
Llena con datos la tabla, los cuales son otorgados por la clase ControlPrincipal
+
+
Archivo - Class in utiles
+
+
Esta clase se dedica en especifico al tratamiento de archivos.
+
+
Archivo(String) - Constructor for class utiles.Archivo
+
+
Constructor para la clase archivo, recibiendo el nombre del archivo que + debera manejar, y creandolo si es que no existia previamente
+
+
añadir(String, String, String, String, String, String) - Method in class control.ControlPrincipal
+
+
Genera el id para la nueva linea, calcula el saldo y añade la linea + generada al archivo
+
+
añadirUsuario(String, String) - Method in class control.ControlAdmin
+
+
Añade un usuario al archivo comprobando antes si cumple con las + condiciones esperadas
+
+
añadirUsuario(String, String, String) - Method in class control.ControlLogin
+
+
Realiza las comprobaciones necesarias para que los parametros entregados + correspondan con el formato de usuario y contraseña esperado y los añade + al archivo
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-10.html b/doc/index-files/index-10.html new file mode 100644 index 0000000..458121a --- /dev/null +++ b/doc/index-files/index-10.html @@ -0,0 +1,139 @@ + + + + + +M-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

M

+
+
modificarFila(String, String, String, String, String, String, String) - Method in class control.ControlPrincipal
+
+
Modifica una fila que contenga el id entregado
+
+
modificarLinea(String, String) - Method in class utiles.Archivo
+
+
Cambia una linea del archivo
+
+
modificarUser(String, String, String) - Method in class control.ControlAdmin
+
+
Modifica los datos de un usuario
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-11.html b/doc/index-files/index-11.html new file mode 100644 index 0000000..9ee0756 --- /dev/null +++ b/doc/index-files/index-11.html @@ -0,0 +1,131 @@ + + + + + +O-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

O

+
+
ordenar() - Method in class control.ControlPrincipal
+
+
Ordena las filas del archivo respecto a sus fechas
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-12.html b/doc/index-files/index-12.html new file mode 100644 index 0000000..cfb7b3a --- /dev/null +++ b/doc/index-files/index-12.html @@ -0,0 +1,155 @@ + + + + + +P-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

P

+
+
PanelCartola - Class in visual.panel
+
+
Panel que contiene la tabla con los datos de la cartola del usuario, aparte + de componentes utilizados para añadir datos a la tabla
+
+
PanelCartola(String) - Constructor for class visual.panel.PanelCartola
+
+
Inicia el panel, asignandose un usuario al panel para ser utilizado mas + tarde para obtener los datos del archivo correspondiente
+
+
PanelResumen - Class in visual.panel
+
+
Panel que contiene los resumenes de los datos del usuario.
+
+
PanelResumen(String) - Constructor for class visual.panel.PanelResumen
+
+
Inicia el panelResumen y le asigna el usuario de quien sacara los datos.
+
+
PanelSuperior - Class in visual.panel
+
+
Panel que contiene los componentes en el cual principalmente, estan los + botones para intercambiar entre el panelCartola y el panelResumen
+
+
PanelSuperior(String) - Constructor for class visual.panel.PanelSuperior
+
+
Inicia el panelSuperior asignandole el String usuario para ser utilizado + por un componente mas tarde.
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-13.html b/doc/index-files/index-13.html new file mode 100644 index 0000000..ecdc62f --- /dev/null +++ b/doc/index-files/index-13.html @@ -0,0 +1,137 @@ + + + + + +R-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

R

+
+
resumenDoc() - Method in class control.ControlPrincipal
+
+
Genera un resumen de los datos en el archivo respecto a el tipo de documento.
+
+
resumenMes() - Method in class control.ControlPrincipal
+
+
Genera un String[][] con un resumen por mes de cada archivo, teniendo en + siendo el primer indice correspondiente a fecha/saldo/ingresos/egresos y + el segundo indice correspondiente a cada mes contenido en el archivo
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-14.html b/doc/index-files/index-14.html new file mode 100644 index 0000000..941a71b --- /dev/null +++ b/doc/index-files/index-14.html @@ -0,0 +1,135 @@ + + + + + +T-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

T

+
+
toCartola() - Method in class visual.frame.FramePrincipal
+
+
Muestra el panel Cartola
+
+
toResumen() - Method in class visual.frame.FramePrincipal
+
+
Muestra el panel Resumen
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-15.html b/doc/index-files/index-15.html new file mode 100644 index 0000000..1f5cbc6 --- /dev/null +++ b/doc/index-files/index-15.html @@ -0,0 +1,139 @@ + + + + + +V-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

V

+
+
Validador - Class in utiles
+
+
Clase en la que se encuentran metodos que realizan validaciones de datos
+
+
Validador() - Constructor for class utiles.Validador
+
 
+
visual.frame - package visual.frame
+
 
+
visual.otros - package visual.otros
+
 
+
visual.panel - package visual.panel
+
 
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-2.html b/doc/index-files/index-2.html new file mode 100644 index 0000000..135d547 --- /dev/null +++ b/doc/index-files/index-2.html @@ -0,0 +1,131 @@ + + + + + +B-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

B

+
+
borrarLinea(String) - Method in class utiles.Archivo
+
+
Borra una linea respecto al id entregado
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-3.html b/doc/index-files/index-3.html new file mode 100644 index 0000000..53e4c36 --- /dev/null +++ b/doc/index-files/index-3.html @@ -0,0 +1,168 @@ + + + + + +C-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

C

+
+
changeName(String, String) - Static method in class utiles.Archivo
+
+
Actualiza el nombre de un archivo
+
+
clearFile() - Method in class utiles.Archivo
+
+
Elimina todo el contenido del archivo
+
+
control - package control
+
 
+
ControlAdmin - Class in control
+
+
Clase que se dedica a controlar los procesos en las ventanas de + administrador, crear y modificar
+
+
ControlAdmin() - Constructor for class control.ControlAdmin
+
+
Constructor que inicia la clase archivo para ser utilizada por + ControlAdmin
+
+
ControlLogin - Class in control
+
+
Esta clase es utilizada en las ventanas Login y Registro para sus + operaciones, conteniendo metodos que permiten añadir usuarios y comprobar la + existencia de un usuario o un usuario y su contraseña
+
+
ControlLogin() - Constructor for class control.ControlLogin
+
+
Inicia el objeto y crea un objeto archivo para ser utilizado por los + metodos
+
+
ControlPrincipal - Class in control
+
+
Esta clase se dedica al control de la ventana Principal y sus distintos + paneles
+
+
ControlPrincipal(String) - Constructor for class control.ControlPrincipal
+
+
Constructor de la clase el cual inicia una clase archivo y llama a los + metodos ordenar, actId y actSaldos
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-4.html b/doc/index-files/index-4.html new file mode 100644 index 0000000..6eb778f --- /dev/null +++ b/doc/index-files/index-4.html @@ -0,0 +1,140 @@ + + + + + +E-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

E

+
+
eliminarFila(String) - Method in class control.ControlPrincipal
+
+
Elimina la fila que contenga el id entregado
+
+
entregarProcesado() - Method in class utiles.Archivo
+
+
Toma el contenido del archivo y lo divide en los saltos de linea, los + cuales son representados por *!
+
+
escribirArchivo(String) - Method in class utiles.Archivo
+
+
Añade el String entregado al final del archivo
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-5.html b/doc/index-files/index-5.html new file mode 100644 index 0000000..c88c0fa --- /dev/null +++ b/doc/index-files/index-5.html @@ -0,0 +1,176 @@ + + + + + +F-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

F

+
+
FrameAdministrador - Class in visual.frame
+
+
Ventana del modo administrador la cual permite la modificacion y creacion de + usuarios por parte de un administrador con la clave
+
+
FrameAdministrador() - Constructor for class visual.frame.FrameAdministrador
+
+
Constructor que inicia la ventana y todos sus componentes
+
+
FrameCrear - Class in visual.frame
+
+
Ventana destinada a la creacion de usuarios por parte de un administrador
+
+
FrameCrear() - Constructor for class visual.frame.FrameCrear
+
+
Constructor que inicia la ventana
+
+
FrameLogin - Class in visual.frame
+
+
Ventana destinada a el logeo de un usuario en el sistema.
+
+
FrameLogin() - Constructor for class visual.frame.FrameLogin
+
+
Constructor que inicia la ventana.
+
+
FrameModificar - Class in visual.frame
+
+
Ventana destinada a la modificacion de usuarios
+
+
FrameModificar() - Constructor for class visual.frame.FrameModificar
+
+
Constructor que inicia la ventana
+
+
FramePrincipal - Class in visual.frame
+
+
Frame que contiene los Paneles cartola, resumen y superior
+
+
FramePrincipal(String) - Constructor for class visual.frame.FramePrincipal
+
+
Inicia la ventana de usuario
+
+
FrameRegistro - Class in visual.frame
+
+
Ventana en la cual se realiza el registro de usuarios.
+
+
FrameRegistro() - Constructor for class visual.frame.FrameRegistro
+
+
Constructor que inicia la ventana
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-6.html b/doc/index-files/index-6.html new file mode 100644 index 0000000..caf7a00 --- /dev/null +++ b/doc/index-files/index-6.html @@ -0,0 +1,151 @@ + + + + + +G-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

G

+
+
getLastRow() - Method in class control.ControlPrincipal
+
 
+
getRow(int) - Method in class control.ControlAdmin
+
+
Entrega la fila correspondiente al id que se le proporciona
+
+
getRow(int) - Method in class control.ControlPrincipal
+
+
Entrega la fila correspondiente al id
+
+
getRowCount() - Method in class control.ControlAdmin
+
+
Cantidad de filas que posee el archivo
+
+
getRowCount() - Method in class control.ControlPrincipal
+
 
+
getRuta(String) - Static method in class utiles.Archivo
+
+
Este metodo asigna una ruta al archivo dependiendo del sistema operativo.
+
+
getTabla() - Method in class visual.panel.PanelCartola
+
+
Getter que entrega la tabla de la cartola
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-7.html b/doc/index-files/index-7.html new file mode 100644 index 0000000..6e79c52 --- /dev/null +++ b/doc/index-files/index-7.html @@ -0,0 +1,153 @@ + + + + + +I-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

I

+
+
iniciarTextFieldYLabel() - Method in class visual.panel.PanelResumen
+
+
Inicia los TextFields y Labels en el panel asignandole todos los datos + esperables para mas tarde poder asignarle sus datos.
+
+
isFiled() - Method in class control.ControlPrincipal
+
+
Comprueba si el archivo tiene contenido, se considera eso como verdadero + cuando el archivo contiene mas de 5 caracteres
+
+
isNumber(String) - Static method in class utiles.Validador
+
+
Comprueba si el string recibido corresponde con el formato de un int
+
+
isUser(String) - Method in class control.ControlAdmin
+
+
Busca un usuario en el archivo e indica si existe o no
+
+
isUser(String) - Method in class control.ControlLogin
+
+
Busca un usuario en el archivo
+
+
isUserPass(String, String) - Method in class control.ControlLogin
+
+
Busca un par usuario contraseña en el archivo
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-8.html b/doc/index-files/index-8.html new file mode 100644 index 0000000..3bbffda --- /dev/null +++ b/doc/index-files/index-8.html @@ -0,0 +1,135 @@ + + + + + +J-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

J

+
+
JTableTable - Class in visual.otros
+
+
Tabla la cual es usada en el panelCartola.
+
+
JTableTable(String) - Constructor for class visual.otros.JTableTable
+
+
Constructor que inicia la tabla, asigandole el usuario del cual se obtienen sus datos
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index-files/index-9.html b/doc/index-files/index-9.html new file mode 100644 index 0000000..936c880 --- /dev/null +++ b/doc/index-files/index-9.html @@ -0,0 +1,136 @@ + + + + + +L-Index + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C E F G I J L M O P R T V  + + +

L

+
+
leerArchivo() - Method in class utiles.Archivo
+
+
Lee el contenido del archivo y une todas sus lineas en un solo string + para ser procesado mas tarde
+
+
llenarResumen() - Method in class visual.panel.PanelResumen
+
+
Llena el de datos los componentes del panelResumen
+
+
+A B C E F G I J L M O P R T V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 0000000..cd2a56d --- /dev/null +++ b/doc/index.html @@ -0,0 +1,75 @@ + + + + + +Generated Documentation (Untitled) + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/doc/overview-frame.html b/doc/overview-frame.html new file mode 100644 index 0000000..2b9d783 --- /dev/null +++ b/doc/overview-frame.html @@ -0,0 +1,25 @@ + + + + + +Overview List + + + + + +
All Classes
+
+

Packages

+ +
+

 

+ + diff --git a/doc/overview-summary.html b/doc/overview-summary.html new file mode 100644 index 0000000..2f26766 --- /dev/null +++ b/doc/overview-summary.html @@ -0,0 +1,151 @@ + + + + + +Overview + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Packages 
PackageDescription
control 
utiles 
visual.frame 
visual.otros 
visual.panel 
+
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/overview-tree.html b/doc/overview-tree.html new file mode 100644 index 0000000..27b3b12 --- /dev/null +++ b/doc/overview-tree.html @@ -0,0 +1,187 @@ + + + + + +Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/package-list b/doc/package-list new file mode 100644 index 0000000..5caca8e --- /dev/null +++ b/doc/package-list @@ -0,0 +1,5 @@ +control +utiles +visual.frame +visual.otros +visual.panel diff --git a/doc/script.js b/doc/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/doc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/doc/serialized-form.html b/doc/serialized-form.html new file mode 100644 index 0000000..62c1bc5 --- /dev/null +++ b/doc/serialized-form.html @@ -0,0 +1,694 @@ + + + + + +Serialized Form + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/stylesheet.css b/doc/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/doc/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} diff --git a/doc/utiles/Archivo.html b/doc/utiles/Archivo.html new file mode 100644 index 0000000..201ea5f --- /dev/null +++ b/doc/utiles/Archivo.html @@ -0,0 +1,465 @@ + + + + + +Archivo + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
utiles
+

Class Archivo

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/utiles/Validador.html b/doc/utiles/Validador.html new file mode 100644 index 0000000..13d180d --- /dev/null +++ b/doc/utiles/Validador.html @@ -0,0 +1,281 @@ + + + + + +Validador + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
utiles
+

Class Validador

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/utiles/class-use/Archivo.html b/doc/utiles/class-use/Archivo.html new file mode 100644 index 0000000..f84b4d9 --- /dev/null +++ b/doc/utiles/class-use/Archivo.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class utiles.Archivo + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
utiles.Archivo

+
+
No usage of utiles.Archivo
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/utiles/class-use/Validador.html b/doc/utiles/class-use/Validador.html new file mode 100644 index 0000000..8da947d --- /dev/null +++ b/doc/utiles/class-use/Validador.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class utiles.Validador + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
utiles.Validador

+
+
No usage of utiles.Validador
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/utiles/package-frame.html b/doc/utiles/package-frame.html new file mode 100644 index 0000000..4c4794b --- /dev/null +++ b/doc/utiles/package-frame.html @@ -0,0 +1,21 @@ + + + + + +utiles + + + + + +

utiles

+
+

Classes

+ +
+ + diff --git a/doc/utiles/package-summary.html b/doc/utiles/package-summary.html new file mode 100644 index 0000000..8dbcff2 --- /dev/null +++ b/doc/utiles/package-summary.html @@ -0,0 +1,150 @@ + + + + + +utiles + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package utiles

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/utiles/package-tree.html b/doc/utiles/package-tree.html new file mode 100644 index 0000000..33710d4 --- /dev/null +++ b/doc/utiles/package-tree.html @@ -0,0 +1,138 @@ + + + + + +utiles Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package utiles

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/utiles/package-use.html b/doc/utiles/package-use.html new file mode 100644 index 0000000..94eba41 --- /dev/null +++ b/doc/utiles/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package utiles + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
utiles

+
+
No usage of utiles
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/FrameAdministrador.html b/doc/visual/frame/FrameAdministrador.html new file mode 100644 index 0000000..7f6d8f3 --- /dev/null +++ b/doc/visual/frame/FrameAdministrador.html @@ -0,0 +1,419 @@ + + + + + +FrameAdministrador + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
visual.frame
+

Class FrameAdministrador

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/FrameCrear.html b/doc/visual/frame/FrameCrear.html new file mode 100644 index 0000000..dc94f22 --- /dev/null +++ b/doc/visual/frame/FrameCrear.html @@ -0,0 +1,381 @@ + + + + + +FrameCrear + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
visual.frame
+

Class FrameCrear

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/FrameLogin.html b/doc/visual/frame/FrameLogin.html new file mode 100644 index 0000000..1180972 --- /dev/null +++ b/doc/visual/frame/FrameLogin.html @@ -0,0 +1,381 @@ + + + + + +FrameLogin + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
visual.frame
+

Class FrameLogin

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/FrameModificar.html b/doc/visual/frame/FrameModificar.html new file mode 100644 index 0000000..fa6ebb9 --- /dev/null +++ b/doc/visual/frame/FrameModificar.html @@ -0,0 +1,381 @@ + + + + + +FrameModificar + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
visual.frame
+

Class FrameModificar

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/FramePrincipal.html b/doc/visual/frame/FramePrincipal.html new file mode 100644 index 0000000..ac2f38d --- /dev/null +++ b/doc/visual/frame/FramePrincipal.html @@ -0,0 +1,439 @@ + + + + + +FramePrincipal + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
visual.frame
+

Class FramePrincipal

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/FrameRegistro.html b/doc/visual/frame/FrameRegistro.html new file mode 100644 index 0000000..5297792 --- /dev/null +++ b/doc/visual/frame/FrameRegistro.html @@ -0,0 +1,381 @@ + + + + + +FrameRegistro + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
visual.frame
+

Class FrameRegistro

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/class-use/FrameAdministrador.html b/doc/visual/frame/class-use/FrameAdministrador.html new file mode 100644 index 0000000..6447315 --- /dev/null +++ b/doc/visual/frame/class-use/FrameAdministrador.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class visual.frame.FrameAdministrador + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
visual.frame.FrameAdministrador

+
+
No usage of visual.frame.FrameAdministrador
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/class-use/FrameCrear.html b/doc/visual/frame/class-use/FrameCrear.html new file mode 100644 index 0000000..f55293c --- /dev/null +++ b/doc/visual/frame/class-use/FrameCrear.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class visual.frame.FrameCrear + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
visual.frame.FrameCrear

+
+
No usage of visual.frame.FrameCrear
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/class-use/FrameLogin.html b/doc/visual/frame/class-use/FrameLogin.html new file mode 100644 index 0000000..9766e59 --- /dev/null +++ b/doc/visual/frame/class-use/FrameLogin.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class visual.frame.FrameLogin + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
visual.frame.FrameLogin

+
+
No usage of visual.frame.FrameLogin
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/class-use/FrameModificar.html b/doc/visual/frame/class-use/FrameModificar.html new file mode 100644 index 0000000..4b74443 --- /dev/null +++ b/doc/visual/frame/class-use/FrameModificar.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class visual.frame.FrameModificar + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
visual.frame.FrameModificar

+
+
No usage of visual.frame.FrameModificar
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/class-use/FramePrincipal.html b/doc/visual/frame/class-use/FramePrincipal.html new file mode 100644 index 0000000..5a55593 --- /dev/null +++ b/doc/visual/frame/class-use/FramePrincipal.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class visual.frame.FramePrincipal + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
visual.frame.FramePrincipal

+
+
No usage of visual.frame.FramePrincipal
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/class-use/FrameRegistro.html b/doc/visual/frame/class-use/FrameRegistro.html new file mode 100644 index 0000000..9281dea --- /dev/null +++ b/doc/visual/frame/class-use/FrameRegistro.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class visual.frame.FrameRegistro + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
visual.frame.FrameRegistro

+
+
No usage of visual.frame.FrameRegistro
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/package-frame.html b/doc/visual/frame/package-frame.html new file mode 100644 index 0000000..535382d --- /dev/null +++ b/doc/visual/frame/package-frame.html @@ -0,0 +1,25 @@ + + + + + +visual.frame + + + + + +

visual.frame

+
+

Classes

+ +
+ + diff --git a/doc/visual/frame/package-summary.html b/doc/visual/frame/package-summary.html new file mode 100644 index 0000000..a5c2f9d --- /dev/null +++ b/doc/visual/frame/package-summary.html @@ -0,0 +1,175 @@ + + + + + +visual.frame + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package visual.frame

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/package-tree.html b/doc/visual/frame/package-tree.html new file mode 100644 index 0000000..e0222f9 --- /dev/null +++ b/doc/visual/frame/package-tree.html @@ -0,0 +1,162 @@ + + + + + +visual.frame Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package visual.frame

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/frame/package-use.html b/doc/visual/frame/package-use.html new file mode 100644 index 0000000..50e7037 --- /dev/null +++ b/doc/visual/frame/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package visual.frame + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
visual.frame

+
+
No usage of visual.frame
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/otros/JTableTable.html b/doc/visual/otros/JTableTable.html new file mode 100644 index 0000000..bd2e7a8 --- /dev/null +++ b/doc/visual/otros/JTableTable.html @@ -0,0 +1,404 @@ + + + + + +JTableTable + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
visual.otros
+

Class JTableTable

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/otros/class-use/JTableTable.html b/doc/visual/otros/class-use/JTableTable.html new file mode 100644 index 0000000..ca3b820 --- /dev/null +++ b/doc/visual/otros/class-use/JTableTable.html @@ -0,0 +1,166 @@ + + + + + +Uses of Class visual.otros.JTableTable + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
visual.otros.JTableTable

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/otros/package-frame.html b/doc/visual/otros/package-frame.html new file mode 100644 index 0000000..d1da68e --- /dev/null +++ b/doc/visual/otros/package-frame.html @@ -0,0 +1,20 @@ + + + + + +visual.otros + + + + + +

visual.otros

+
+

Classes

+ +
+ + diff --git a/doc/visual/otros/package-summary.html b/doc/visual/otros/package-summary.html new file mode 100644 index 0000000..d0f9929 --- /dev/null +++ b/doc/visual/otros/package-summary.html @@ -0,0 +1,144 @@ + + + + + +visual.otros + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package visual.otros

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/otros/package-tree.html b/doc/visual/otros/package-tree.html new file mode 100644 index 0000000..0606fab --- /dev/null +++ b/doc/visual/otros/package-tree.html @@ -0,0 +1,153 @@ + + + + + +visual.otros Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package visual.otros

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/otros/package-use.html b/doc/visual/otros/package-use.html new file mode 100644 index 0000000..5e102c3 --- /dev/null +++ b/doc/visual/otros/package-use.html @@ -0,0 +1,159 @@ + + + + + +Uses of Package visual.otros + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
visual.otros

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/panel/PanelCartola.html b/doc/visual/panel/PanelCartola.html new file mode 100644 index 0000000..a4b87aa --- /dev/null +++ b/doc/visual/panel/PanelCartola.html @@ -0,0 +1,396 @@ + + + + + +PanelCartola + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
visual.panel
+

Class PanelCartola

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/panel/PanelResumen.html b/doc/visual/panel/PanelResumen.html new file mode 100644 index 0000000..2454128 --- /dev/null +++ b/doc/visual/panel/PanelResumen.html @@ -0,0 +1,408 @@ + + + + + +PanelResumen + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
visual.panel
+

Class PanelResumen

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/panel/PanelSuperior.html b/doc/visual/panel/PanelSuperior.html new file mode 100644 index 0000000..c1e55eb --- /dev/null +++ b/doc/visual/panel/PanelSuperior.html @@ -0,0 +1,355 @@ + + + + + +PanelSuperior + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
visual.panel
+

Class PanelSuperior

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/panel/class-use/PanelCartola.html b/doc/visual/panel/class-use/PanelCartola.html new file mode 100644 index 0000000..888a2f3 --- /dev/null +++ b/doc/visual/panel/class-use/PanelCartola.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class visual.panel.PanelCartola + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
visual.panel.PanelCartola

+
+
No usage of visual.panel.PanelCartola
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/panel/class-use/PanelResumen.html b/doc/visual/panel/class-use/PanelResumen.html new file mode 100644 index 0000000..f5cdf7c --- /dev/null +++ b/doc/visual/panel/class-use/PanelResumen.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class visual.panel.PanelResumen + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
visual.panel.PanelResumen

+
+
No usage of visual.panel.PanelResumen
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/panel/class-use/PanelSuperior.html b/doc/visual/panel/class-use/PanelSuperior.html new file mode 100644 index 0000000..0549f39 --- /dev/null +++ b/doc/visual/panel/class-use/PanelSuperior.html @@ -0,0 +1,124 @@ + + + + + +Uses of Class visual.panel.PanelSuperior + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
visual.panel.PanelSuperior

+
+
No usage of visual.panel.PanelSuperior
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/panel/package-frame.html b/doc/visual/panel/package-frame.html new file mode 100644 index 0000000..027d4eb --- /dev/null +++ b/doc/visual/panel/package-frame.html @@ -0,0 +1,22 @@ + + + + + +visual.panel + + + + + +

visual.panel

+
+

Classes

+ +
+ + diff --git a/doc/visual/panel/package-summary.html b/doc/visual/panel/package-summary.html new file mode 100644 index 0000000..f350b5b --- /dev/null +++ b/doc/visual/panel/package-summary.html @@ -0,0 +1,158 @@ + + + + + +visual.panel + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package visual.panel

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/panel/package-tree.html b/doc/visual/panel/package-tree.html new file mode 100644 index 0000000..1a7b68a --- /dev/null +++ b/doc/visual/panel/package-tree.html @@ -0,0 +1,155 @@ + + + + + +visual.panel Class Hierarchy + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package visual.panel

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/doc/visual/panel/package-use.html b/doc/visual/panel/package-use.html new file mode 100644 index 0000000..72b0b46 --- /dev/null +++ b/doc/visual/panel/package-use.html @@ -0,0 +1,124 @@ + + + + + +Uses of Package visual.panel + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
visual.panel

+
+
No usage of visual.panel
+ +
+ + +
Skip navigation links
+ + + + +
+ + + + diff --git a/src/control/ControlAdmin.java b/src/control/ControlAdmin.java index 256999f..d7bca01 100644 --- a/src/control/ControlAdmin.java +++ b/src/control/ControlAdmin.java @@ -2,14 +2,29 @@ package control; import utiles.Archivo; +/** + * Clase que se dedica a controlar los procesos en las ventanas de + * administrador, crear y modificar + */ + public class ControlAdmin { Archivo archivo; + /** + * Constructor que inicia la clase archivo para ser utilizada por + * ControlAdmin + */ + public ControlAdmin() { archivo = new Archivo("UserData"); } + /** + * Cantidad de filas que posee el archivo + * @return La cantidad de filas en el archivo + */ + public int getRowCount() { String[] arch = archivo.entregarProcesado(); @@ -17,6 +32,14 @@ public class ControlAdmin { } + /** + * Entrega la fila correspondiente al id que se le proporciona + * + * @param id + * Numero de la fila que se quiere + * @return la fila respecto al id + */ + public String[] getRow(int id) { String[] arch = archivo.entregarProcesado(); @@ -24,6 +47,17 @@ public class ControlAdmin { } + /** + * Añade un usuario al archivo comprobando antes si cumple con las + * condiciones esperadas + * + * @param user + * Nombre de usuario + * @param pass + * Contraseña + * @return Un booleano indicando si el ingreso fue correcto + */ + public boolean añadirUsuario(String user, String pass) { if (!isUser(user)) { @@ -53,6 +87,14 @@ public class ControlAdmin { } + /** + * Busca un usuario en el archivo e indica si existe o no + * + * @param user + * Usuario a buscar + * @return Un booleano que indica si existe o no el usuario + */ + public boolean isUser(String user) { String[] arch = archivo.entregarProcesado(); @@ -65,6 +107,19 @@ public class ControlAdmin { return false; } + /** + * Modifica los datos de un usuario + * + * @param original + * Linea que contiene el usuario y la contraseña de la siguiente + * manera "user;pass" + * @param user + * Nombre de usuario nuevo + * @param pass + * Contraseña nueva para el usuario + * @return Un Booleano que indica si la operacion se realizo correctamente + */ + public boolean modificarUser(String original, String user, String pass) { if (user.length() > 4) { diff --git a/src/control/ControlLogin.java b/src/control/ControlLogin.java index ba1dd85..07be3b2 100644 --- a/src/control/ControlLogin.java +++ b/src/control/ControlLogin.java @@ -2,14 +2,40 @@ package control; import utiles.Archivo; +/** + * Esta clase es utilizada en las ventanas Login y Registro para sus + * operaciones, conteniendo metodos que permiten añadir usuarios y comprobar la + * existencia de un usuario o un usuario y su contraseña + */ + public class ControlLogin { Archivo archivo; + /** + * Inicia el objeto y crea un objeto archivo para ser utilizado por los + * metodos + */ + public ControlLogin() { archivo = new Archivo("UserData"); } + /** + * Realiza las comprobaciones necesarias para que los parametros entregados + * correspondan con el formato de usuario y contraseña esperado y los añade + * al archivo + * + * @param user + * Usuario el cual debe tener un largo superior a 4 caracteres y + * no debe estar guardado en el archivo previamente + * @param pass + * Contraseña la cual debe tener un largo mayor a 6 caracteres + * @param pass2 + * Contraseña que debe ser igual a la anterior + * @return Booleano indicando si la operacion se realizo correctamente + */ + public boolean añadirUsuario(String user, String pass, String pass2) { if (!isUser(user)) { @@ -44,6 +70,14 @@ public class ControlLogin { } } + /** + * Busca un usuario en el archivo + * + * @param user + * Usuario a buscar + * @return Booleano que indica si existia el usuario o no + */ + public boolean isUser(String user) { String[] arch = archivo.entregarProcesado(); @@ -56,6 +90,16 @@ public class ControlLogin { return false; } + /** + * Busca un par usuario contraseña en el archivo + * + * @param user + * Usuario a buscar + * @param pass + * Contraseña correspondiente a ese usuario + * @return Booleano que indica si exite el par o no + */ + public boolean isUserPass(String user, String pass) { String[] arch = archivo.entregarProcesado(); diff --git a/src/control/ControlPrincipal.java b/src/control/ControlPrincipal.java index 2707b27..ee039fd 100644 --- a/src/control/ControlPrincipal.java +++ b/src/control/ControlPrincipal.java @@ -7,8 +7,22 @@ import java.util.GregorianCalendar; import utiles.Archivo; -public class ControlPrincipal{ +/** + * Esta clase se dedica al control de la ventana Principal y sus distintos + * paneles + */ +public class ControlPrincipal { + Archivo archivo; + + /** + * Constructor de la clase el cual inicia una clase archivo y llama a los + * metodos ordenar, actId y actSaldos + * + * @param usuario + * Usuario al que corresponde el archivo que se abrira + */ + public ControlPrincipal(String usuario) { archivo = new Archivo(usuario); @@ -17,6 +31,24 @@ public class ControlPrincipal{ actSaldos(); } + /** + * Genera el id para la nueva linea, calcula el saldo y añade la linea + * generada al archivo + * + * @param fecha + * Fecha con formato dd/mm/yyyy + * @param documento + * Forma de pago + * @param fd + * Fuente o destino + * @param desc + * Descripcion + * @param ing + * Ingreso, debe corresponder al formato de un int + * @param egr + * Egreso, debe corresponder al formato de un int + */ + public void añadir(String fecha, String documento, String fd, String desc, String ing, String egr) { int id = 1; @@ -24,14 +56,14 @@ public class ControlPrincipal{ String[] arch = archivo.entregarProcesado(); String[] lastRow = arch[arch.length - 1].split(";"); - if(isFiled()){ - + if (isFiled()) { + id = Integer.parseInt(lastRow[0]) + 1; saldo = Integer.parseInt(lastRow[lastRow.length - 1]) + Integer.parseInt(ing) - Integer.parseInt(egr); - }else{ - + } else { + saldo = Integer.parseInt(ing) - Integer.parseInt(egr); - + } String fila = id + ";" + fecha + ";" + documento + ";" + fd + ";" + desc + ";" + ing + ";" + egr + ";" + saldo; @@ -40,6 +72,25 @@ public class ControlPrincipal{ } + /** + * Modifica una fila que contenga el id entregado + * + * @param id + * Identificador de la fila a modificar + * @param fecha + * Fecha con formato dd/mm/yyyy + * @param documento + * Forma de pago + * @param fd + * Fuente o destino + * @param desc + * Descripcion + * @param ing + * Ingreso, debe corresponder al formato de un int + * @param egr + * Egreso, debe corresponder al formato de un int + */ + public void modificarFila(String id, String fecha, String documento, String fd, String desc, String ing, String egr) { @@ -60,6 +111,13 @@ public class ControlPrincipal{ archivo.actArchivo(arch); } + /** + * Elimina la fila que contenga el id entregado + * + * @param id + * Identificador de la fila a eliminar + */ + public void eliminarFila(String id) { archivo.borrarLinea(id); @@ -67,6 +125,10 @@ public class ControlPrincipal{ } + /** + * Ordena las filas del archivo respecto a sus fechas + */ + public void ordenar() { String[] arch = archivo.entregarProcesado(); @@ -104,10 +166,16 @@ public class ControlPrincipal{ archivo.actArchivo(arch); } + /** + * Actualiza todos los saldos dentro del archivo para que sean + * correspondientes. Esto es por que cualquier reordenamiento en las filas + * del archivo rompe el contenido de la columna de saldos. + */ + public void actSaldos() { String[] arch = archivo.entregarProcesado(); - if(isFiled()){ + if (isFiled()) { for (int x = 0; x < arch.length; x++) { @@ -142,11 +210,15 @@ public class ControlPrincipal{ } archivo.actArchivo(arch); - + } } + /** + * Actualiza los id de las filas del archivo esto para que despues de + * cualquier reordenamiento se mantenga el orden en los ids + */ public void actId() { String[] arch = archivo.entregarProcesado(); @@ -170,6 +242,10 @@ public class ControlPrincipal{ archivo.actArchivo(arch); } + /** + * @return La ultima fila del archivo dividida en los ; + */ + public String[] getLastRow() { String[] arch = archivo.entregarProcesado(); @@ -177,6 +253,14 @@ public class ControlPrincipal{ } + /** + * Entrega la fila correspondiente al id + * + * @param id + * Identificador de la fila + * @return La fila que contenga ese id + */ + public String[] getRow(int id) { String[] arch = archivo.entregarProcesado(); @@ -184,6 +268,10 @@ public class ControlPrincipal{ } + /** + * @return Cantidad total de filas en el archivo + */ + public int getRowCount() { String[] arch = archivo.entregarProcesado(); @@ -191,12 +279,27 @@ public class ControlPrincipal{ } + /** + * Comprueba si el archivo tiene contenido, se considera eso como verdadero + * cuando el archivo contiene mas de 5 caracteres + * + * @return Booleano indicando si tiene contenido o no + */ + public boolean isFiled() { return (archivo.leerArchivo().length() > 5); } + /** + * Genera un String[][] con un resumen por mes de cada archivo, teniendo en + * siendo el primer indice correspondiente a fecha/saldo/ingresos/egresos y + * el segundo indice correspondiente a cada mes contenido en el archivo + * + * @return String[][] con los datos del resumen + */ + public String[][] resumenMes() { String[][] fin = new String[4][1]; @@ -253,7 +356,12 @@ public class ControlPrincipal{ } - public String[][] ordenarSaldos(String[][] saldos) { + /** + * Ordena los saldos del resumen generado por el metodo resumenMes + * @param saldos String[][] entregado por resumenMes + * @return String[][] ordenado respecto a los meses + */ + private String[][] ordenarSaldos(String[][] saldos) { boolean swapped = true; int j = 0; @@ -301,6 +409,11 @@ public class ControlPrincipal{ } + /** + * Genera un resumen de los datos en el archivo respecto a el tipo de documento. + * @return int[] con los saldos respecto al documento utilizado + */ + public int[] resumenDoc() { String[] arch = archivo.entregarProcesado(); diff --git a/src/main/Main.java b/src/main/Main.java index 13a2cd1..b03bf07 100644 --- a/src/main/Main.java +++ b/src/main/Main.java @@ -2,6 +2,6 @@ package main; public class Main { public static void main(String[] args) { - visualV2.FrameLogin login = new visualV2.FrameLogin(); + visual.frame.FrameLogin login = new visual.frame.FrameLogin(); } } diff --git a/src/utiles/Archivo.java b/src/utiles/Archivo.java index 67dbc52..9eb19ce 100644 --- a/src/utiles/Archivo.java +++ b/src/utiles/Archivo.java @@ -1,3 +1,4 @@ + package utiles; import java.io.BufferedReader; @@ -7,37 +8,75 @@ import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; +/** + * Esta clase se dedica en especifico al tratamiento de archivos. Contiene + * metodos que permiten un manejo de archivos con el formato + * "dato11;dato12;dato13*!dato21;dato22;dato23" pudiendo modificar las lineas, + * las cuales estan separadas por *! + */ + public class Archivo { protected File archivo; protected FileReader fr; protected BufferedReader br; protected FileWriter fw; + /** + * Constructor para la clase archivo, recibiendo el nombre del archivo que + * debera manejar, y creandolo si es que no existia previamente + * + * @param archivo + * String con el nombre del archivo al que se desea acceder/crear + */ + public Archivo(String archivo) { - + String ruta = getRuta(archivo); try { this.archivo = new File(ruta); if (!this.archivo.exists()) { - + this.archivo.createNewFile(); } } catch (Exception e) { } } - - public static void changeName(String nuevo, String old){ - + + /** + * Actualiza el nombre de un archivo + * + * @param nuevo + * Nuevo nombre para el archivo + * @param old + * El nombre que tiene actualmente el archivo + */ + + public static void changeName(String nuevo, String old) { + File oldArch = new File(getRuta(old)); File newArch = new File(getRuta(nuevo)); - + oldArch.renameTo(newArch); - + } + /** + * Este metodo asigna una ruta al archivo dependiendo del sistema operativo. + *

+ * Si es Windows lo asignara a la ruta C:\P.A.M\ + *

+ *

+ * Si es Linux lo asignara al directorio de usuario en la carpeta /P.A.M/ + *

+ * + * @param archivo + * Nombre del archivo al que se le asignara la ruta + * @return La ruta completa que tendra el archivo + */ + public static String getRuta(String archivo) { - + String ruta = ""; String os = System.getProperty("os.name"); if (os.contains("Windows")) { @@ -52,8 +91,15 @@ public class Archivo { return ruta; } + /** + * Lee el contenido del archivo y une todas sus lineas en un solo string + * para ser procesado mas tarde + * + * @return Contenido del archivo en un solo String + */ + public String leerArchivo() { - + abrirLeer(); String cadena = ""; String cadenaFinal = ""; @@ -62,32 +108,51 @@ public class Archivo { cadenaFinal += cadena; } } catch (IOException e) { - + } cerrarLeer(); return cadenaFinal; } + /** + * Añade el String entregado al final del archivo + * + * @param texto + * Texto a añadir + */ + public void escribirArchivo(String texto) { - + abrirEscribir(); try { fw.append(texto + "*!"); } catch (IOException e) { - + } cerrarEscribir(); } + /** + * Toma el contenido del archivo y lo divide en los saltos de linea, los + * cuales son representados por *! + * + * @return contenido del archivo dividido en *! + */ + public String[] entregarProcesado() { - + String[] datos; datos = leerArchivo().split("\\*!"); return datos; } + /** + * Borra una linea respecto al id entregado + * @param id Texto el cual esta en el primer espacio en la lina a borrar + */ + public void borrarLinea(String id) { - + String[] arch = entregarProcesado(); if (arch.length > 1) { @@ -126,6 +191,11 @@ public class Archivo { } } + /** + * Remplaza el contenido del archivo por el String[] entregado + * @param texto Texto con el que se remplazara el archivo + */ + public void actArchivo(String[] texto) { clearFile(); abrirEscribir(); @@ -138,36 +208,47 @@ public class Archivo { cerrarEscribir(); } + /** + * Elimina todo el contenido del archivo + */ + public void clearFile() { try { fw = new FileWriter(archivo, false); fw.write(""); fw.close(); } catch (IOException e) { - + } } + - public void modificarLinea(String linea, String nueva){ - + /** + * Cambia una linea del archivo + * + * @param linea Linea original a cambiar + * @param nueva Linea que remplaza a la original + */ + public void modificarLinea(String linea, String nueva) { + abrirEscribir(); - String[] arch = entregarProcesado(); - for(int x = 0; x < arch.length; x++){ - if(arch[x].equals(linea)){ + String[] arch = entregarProcesado(); + for (int x = 0; x < arch.length; x++) { + if (arch[x].equals(linea)) { arch[x] = nueva; break; } } actArchivo(arch); cerrarEscribir(); - + } private void abrirLeer() { try { fr = new FileReader(archivo); } catch (FileNotFoundException e) { - + } br = new BufferedReader(fr); } @@ -176,12 +257,12 @@ public class Archivo { try { fr.close(); } catch (IOException e) { - + } try { br.close(); } catch (IOException e) { - + } } @@ -189,7 +270,7 @@ public class Archivo { try { fw = new FileWriter(archivo, true); } catch (IOException e) { - + } } @@ -198,7 +279,7 @@ public class Archivo { try { fw.close(); } catch (IOException e) { - + } } } diff --git a/src/utiles/Cifrador.java b/src/utiles/Cifrador.java index 114be03..d2160c9 100755 --- a/src/utiles/Cifrador.java +++ b/src/utiles/Cifrador.java @@ -8,7 +8,6 @@ import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; /** - * * @author idelcano */ public class Cifrador { diff --git a/src/utiles/Validador.java b/src/utiles/Validador.java index 45d8701..6b412a2 100644 --- a/src/utiles/Validador.java +++ b/src/utiles/Validador.java @@ -1,7 +1,13 @@ package utiles; - +/** + * Clase en la que se encuentran metodos que realizan validaciones de datos + */ public class Validador { - + /** + * Comprueba si el string recibido corresponde con el formato de un int + * @param num String que deberia contener un numero + * @return Un booleano el cual dice si el String recibido es un numero + */ public static boolean isNumber(String num) { boolean isNumber = num.matches("^[1-9]?[0-9]+"); diff --git a/src/visualV2/FrameAdministrador.java b/src/visual/frame/FrameAdministrador.java similarity index 91% rename from src/visualV2/FrameAdministrador.java rename to src/visual/frame/FrameAdministrador.java index 21c1920..b19924c 100644 --- a/src/visualV2/FrameAdministrador.java +++ b/src/visual/frame/FrameAdministrador.java @@ -1,4 +1,4 @@ -package visualV2; +package visual.frame; import javax.swing.*; import javax.swing.table.*; @@ -8,6 +8,11 @@ import control.ControlAdmin; import java.awt.*; import java.awt.event.*; +/** + * Ventana del modo administrador la cual permite la modificacion y creacion de + * usuarios por parte de un administrador con la clave + */ + public class FrameAdministrador extends JFrame { private JButton bCrear; @@ -16,11 +21,19 @@ public class FrameAdministrador extends JFrame { private JPanel panel; private JTable tabla; + /** + * Constructor que inicia la ventana y todos sus componentes + */ + public FrameAdministrador() { initComponents(); actTabla(); } + /** + * Inicia los componentes de la ventana + */ + private void initComponents() { panel = new JPanel(); @@ -128,6 +141,10 @@ public class FrameAdministrador extends JFrame { setLocationRelativeTo(null); } + /** + * Inicia la ventana crear y cierra la actual + */ + protected void bCrearActionPerformed(ActionEvent evt) { new FrameCrear(); setVisible(false); @@ -135,6 +152,10 @@ public class FrameAdministrador extends JFrame { } + /** + * Inicia la ventana modificar y cierra la actual + */ + protected void bModificarActionPerformed(ActionEvent evt) { new FrameModificar(); setVisible(false); @@ -142,6 +163,10 @@ public class FrameAdministrador extends JFrame { } + /** + * Llena la tabla de usuarios + */ + public void actTabla() { ControlAdmin control = new ControlAdmin(); @@ -159,5 +184,4 @@ public class FrameAdministrador extends JFrame { } - } diff --git a/src/visualV2/FrameCrear.java b/src/visual/frame/FrameCrear.java similarity index 67% rename from src/visualV2/FrameCrear.java rename to src/visual/frame/FrameCrear.java index 15557f7..b80fce0 100644 --- a/src/visualV2/FrameCrear.java +++ b/src/visual/frame/FrameCrear.java @@ -1,4 +1,4 @@ -package visualV2; +package visual.frame; import javax.swing.*; @@ -7,6 +7,9 @@ import control.ControlAdmin; import java.awt.event.*; import java.awt.*; +/** + * Ventana destinada a la creacion de usuarios por parte de un administrador + */ public class FrameCrear extends JFrame { private JButton bCrear; @@ -15,11 +18,19 @@ public class FrameCrear extends JFrame { private JLabel lContraseña; private JLabel lUsuario; private JPanel panel; - + + /** + * Constructor que inicia la ventana + */ + public FrameCrear() { initComponents(); } + /** + * Inicia los componentes de la ventana + */ + private void initComponents() { panel = new JPanel(); @@ -28,8 +39,17 @@ public class FrameCrear extends JFrame { lContraseña = new JLabel(); fUsuario = new JTextField(); fContraseña = new JTextField(); + + setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); + addWindowListener(new WindowAdapter() { - setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); + @Override + public void windowClosing(WindowEvent e) { + new FrameAdministrador(); + setVisible(false); + dispose(); + } + }); panel.setBackground(new Color(0, 128, 128)); @@ -62,44 +82,53 @@ public class FrameCrear extends JFrame { panelLayout.setHorizontalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(panelLayout.createSequentialGroup().addGap(29, 29, 29) .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(lContraseña, GroupLayout.Alignment.TRAILING) - .addComponent(lUsuario, GroupLayout.Alignment.TRAILING)) + .addComponent(lContraseña, GroupLayout.Alignment.TRAILING).addComponent(lUsuario, + GroupLayout.Alignment.TRAILING)) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(fContraseña, GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE) - .addComponent(fUsuario).addComponent(bCrear, GroupLayout.DEFAULT_SIZE, - GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addComponent(fContraseña, GroupLayout.DEFAULT_SIZE, 182, Short.MAX_VALUE).addComponent( + fUsuario) + .addComponent(bCrear, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, + Short.MAX_VALUE)) .addGap(48, 48, 48))); panelLayout.setVerticalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) .addGroup(panelLayout.createSequentialGroup().addGap(21, 21, 21) - .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(lUsuario).addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, - GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) + .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(lUsuario) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, + GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE) - .addComponent(lContraseña).addComponent(fContraseña, - GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, - GroupLayout.PREFERRED_SIZE)) + .addComponent(lContraseña).addComponent(fContraseña, GroupLayout.PREFERRED_SIZE, + GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(bCrear) .addContainerGap(18, Short.MAX_VALUE))); GroupLayout layout = new GroupLayout(getContentPane()); getContentPane().setLayout(layout); - layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent( - panel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); + layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(panel, + GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup().addComponent(panel, GroupLayout.DEFAULT_SIZE, - GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).addGap(0, 0, 0))); + .addGroup(layout.createSequentialGroup() + .addComponent(panel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addGap(0, 0, 0))); pack(); setVisible(true); setLocationRelativeTo(null); - + } + /** + * Metodo que controla la accion al presionar el boton Crear + *

+ * Si cumple las condiciones esperadas añade los datos ingresados en los + * JTextFields al archivo de usuario + *

+ */ + private void bCrearActionPerformed(ActionEvent evt) { ControlAdmin control = new ControlAdmin(); - if(control.añadirUsuario(fUsuario.getText(), fContraseña.getText())){ + if (control.añadirUsuario(fUsuario.getText(), fContraseña.getText())) { new FrameAdministrador(); setVisible(false); dispose(); diff --git a/src/visual/frame/FrameLogin.java b/src/visual/frame/FrameLogin.java new file mode 100644 index 0000000..15f204d --- /dev/null +++ b/src/visual/frame/FrameLogin.java @@ -0,0 +1,247 @@ +package visual.frame; + +import java.awt.event.*; +import javax.swing.*; +import javax.swing.event.MenuEvent; +import javax.swing.event.MenuListener; + +import control.ControlLogin; + +/** + * Ventana destinada a el logeo de un usuario en el sistema. + */ + +public class FrameLogin extends JFrame { + + private JButton bIngresar; + private JButton bRegistrar; + private JButton bSalir; + private JPanel bar; + private JLabel bienvenido; + private JPasswordField fContraseña1; + private JTextField fUsuario; + private JLabel lContraseña; + private JLabel lUsuario; + private JLabel pam; + private JPanel panel; + private JMenuBar menubar; + private JMenu menu; + + /** + * Constructor que inicia la ventana. + */ + + public FrameLogin() { + initComponents(); + } + + /** + * Metodo que inicia los elementos de la ventana + */ + + private void initComponents() { + + panel = new JPanel(); + pam = new JLabel(); + bienvenido = new JLabel(); + bar = new JPanel(); + lUsuario = new JLabel(); + fUsuario = new JTextField(); + lContraseña = new JLabel(); + fContraseña1 = new JPasswordField(); + bIngresar = new JButton(); + bRegistrar = new JButton(); + bSalir = new JButton(); + + setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); + setBackground(new java.awt.Color(21, 21, 21)); + + menubar = new JMenuBar(); + menu = new JMenu("Administrador"); + + menu.addMenuListener(new MenuListener() { + + @Override + public void menuSelected(MenuEvent e) { + + openAdmin(); + menu.setSelected(false); + } + + @Override + public void menuDeselected(MenuEvent e) { + } + + @Override + public void menuCanceled(MenuEvent e) { + + } + }); + menubar.add(menu); + setJMenuBar(menubar); + + panel.setBackground(new java.awt.Color(0, 128, 128)); + + pam.setFont(new java.awt.Font("Candara", 1, 60)); // NOI18N + pam.setForeground(new java.awt.Color(255, 255, 255)); + pam.setText("P.A.M"); + + bienvenido.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N + bienvenido.setForeground(new java.awt.Color(255, 255, 255)); + bienvenido.setText(" Bienvenido de nuevo "); + + bar.setBackground(new java.awt.Color(255, 255, 255)); + bar.setPreferredSize(new java.awt.Dimension(215, 2)); + + GroupLayout barLayout = new GroupLayout(bar); + bar.setLayout(barLayout); + barLayout.setHorizontalGroup( + barLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGap(0, 251, Short.MAX_VALUE)); + barLayout.setVerticalGroup( + barLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGap(0, 9, Short.MAX_VALUE)); + + lUsuario.setBackground(new java.awt.Color(0, 204, 204)); + lUsuario.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N + lUsuario.setForeground(new java.awt.Color(255, 255, 255)); + lUsuario.setText("Usuario"); + lContraseña.setBackground(new java.awt.Color(0, 204, 204)); + lContraseña.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N + lContraseña.setForeground(new java.awt.Color(255, 255, 255)); + lContraseña.setText("Contraseña"); + + bIngresar.setText("Ingresar"); + bIngresar.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + bIngresarActionPerformed(evt); + } + }); + + bRegistrar.setText("Registrarse"); + bRegistrar.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + bRegistrarActionPerformed(evt); + } + }); + + bSalir.setText("Salir"); + bSalir.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + bSalirActionPerformed(evt); + } + }); + + GroupLayout panelLayout = new GroupLayout(panel); + panel.setLayout(panelLayout); + panelLayout.setHorizontalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) + .addGroup(panelLayout.createSequentialGroup().addGap(95, 95, 95) + .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.CENTER) + .addComponent(bar, GroupLayout.PREFERRED_SIZE, 251, GroupLayout.PREFERRED_SIZE) + .addComponent(pam).addComponent(bRegistrar).addComponent(bienvenido) + .addComponent(bIngresar, GroupLayout.PREFERRED_SIZE, 87, GroupLayout.PREFERRED_SIZE) + .addComponent(bSalir, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE) + .addComponent(lUsuario).addComponent(lContraseña).addComponent(fContraseña1, + GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE)) + .addContainerGap(94, Short.MAX_VALUE))); + panelLayout.setVerticalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) + .addGroup(panelLayout.createSequentialGroup().addGap(29, 29, 29) + .addComponent(pam, GroupLayout.PREFERRED_SIZE, 52, GroupLayout.PREFERRED_SIZE).addGap(1, 1, 1) + .addComponent(bienvenido, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(bar, GroupLayout.PREFERRED_SIZE, 9, GroupLayout.PREFERRED_SIZE).addGap(13, 13, 13) + .addComponent(lUsuario).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(lContraseña) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(fContraseña1, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18).addComponent(bIngresar) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(bRegistrar) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(bSalir) + .addContainerGap(17, Short.MAX_VALUE))); + + GroupLayout layout = new GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(panel, + GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); + layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(panel, + GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); + + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch (ClassNotFoundException | InstantiationException | IllegalAccessException + | UnsupportedLookAndFeelException e) { + e.printStackTrace(); + } + + getRootPane().setDefaultButton(bIngresar); + setUndecorated(true); + pack(); + setVisible(true); + setLocationRelativeTo(null); + + } + + /** + * Accion que se realiza al presionar el boton Ingresar + *

+ * llama a control login y lo utiliza para comprobar si el par usuario + * contraseña es correcto + *

+ */ + + private void bIngresarActionPerformed(ActionEvent evt) { + + ControlLogin control = new ControlLogin(); + + if (control.isUserPass(fUsuario.getText(), String.valueOf(fContraseña1.getPassword()))) { + + FramePrincipal principal = new FramePrincipal(fUsuario.getText()); + + dispose(); + + } else { + + JOptionPane.showMessageDialog(null, "Usuario o contraseña incorrectas", null, JOptionPane.ERROR_MESSAGE); + + } + + } + + /** + * Cierra el programa al presionarse el boton Salir + */ + private void bSalirActionPerformed(ActionEvent evt) { + + System.exit(0); + + } + + /** + * Abre la ventana Registro al presionarse el boton Registrar + */ + + private void bRegistrarActionPerformed(ActionEvent evt) { + + FrameRegistro registro = new FrameRegistro(); + dispose(); + } + + /** + * Abre la ventana Administrador al presionarse el boton en el menu superior. + * Esto solo si el codigo ingresado es el correcto, el cual es 7419. + */ + + private void openAdmin() { + String opcion = JOptionPane.showInputDialog("Ingrese codigo de administrador"); + if (opcion != null) { + if (opcion.equals("7419")) { + new FrameAdministrador(); + setVisible(false); + dispose(); + } else { + JOptionPane.showMessageDialog(null, "Codigo incorrecto"); + } + } + } + +} diff --git a/src/visualV2/FrameModificar.java b/src/visual/frame/FrameModificar.java similarity index 83% rename from src/visualV2/FrameModificar.java rename to src/visual/frame/FrameModificar.java index a88c1bc..a16651f 100644 --- a/src/visualV2/FrameModificar.java +++ b/src/visual/frame/FrameModificar.java @@ -1,4 +1,4 @@ -package visualV2; +package visual.frame; import javax.swing.*; @@ -7,6 +7,10 @@ import control.ControlAdmin; import java.awt.event.*; import java.awt.*; +/** + * Ventana destinada a la modificacion de usuarios + */ + public class FrameModificar extends JFrame { private JButton bModificar; @@ -18,10 +22,18 @@ public class FrameModificar extends JFrame { private JLabel lUsuario; private JPanel panel; + /** + * Constructor que inicia la ventana + */ + public FrameModificar() { initComponents(); } + /** + * Inicia los componentes de la ventana y su comportamiento + */ + private void initComponents() { panel = new JPanel(); @@ -35,13 +47,13 @@ public class FrameModificar extends JFrame { setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); addWindowListener(new WindowAdapter() { - - @Override - public void windowClosing(WindowEvent e) { - new FrameAdministrador(); - setVisible(false); - dispose(); - } + + @Override + public void windowClosing(WindowEvent e) { + new FrameAdministrador(); + setVisible(false); + dispose(); + } }); panel.setBackground(new Color(0, 128, 128)); @@ -127,33 +139,51 @@ public class FrameModificar extends JFrame { setLocationRelativeTo(null); } + /** + * Accion que realiza el JComboBox al seleccionar un item, llena los + * JTextField con los datos correspondientes al usuario. + */ + protected void boxUsuarioActionPerformed(ActionEvent evt) { ControlAdmin control = new ControlAdmin(); - for(int x = 0; x < control.getRowCount(); x++){ - if(control.getRow(x)[0].equals(boxUsuario.getSelectedItem())){ + for (int x = 0; x < control.getRowCount(); x++) { + if (control.getRow(x)[0].equals(boxUsuario.getSelectedItem())) { fContraseña.setText(control.getRow(x)[1]); fUsuario.setText(control.getRow(x)[0]); } } } + /** + * Accion que se realiza al presionar el boton Modificar + *

+ * Toma los datos ingresados y modifica los datos del usuario seleccionado + * en el JComboBox + *

+ */ + protected void bModificarActionPerformed(ActionEvent evt) { ControlAdmin control = new ControlAdmin(); - String original = control.getRow(boxUsuario.getSelectedIndex())[0]+";"+control.getRow(boxUsuario.getSelectedIndex())[1]; - if(control.modificarUser(original, fUsuario.getText(), fContraseña.getText())){ + String original = control.getRow(boxUsuario.getSelectedIndex())[0] + ";" + + control.getRow(boxUsuario.getSelectedIndex())[1]; + if (control.modificarUser(original, fUsuario.getText(), fContraseña.getText())) { new FrameAdministrador(); setVisible(false); dispose(); } } - - private void llenarBox(){ - + + /** + * Llena el ComboBox con los nombres de usuario + */ + + private void llenarBox() { + ControlAdmin control = new ControlAdmin(); boxUsuario.removeAllItems(); - for(int x = 0 ; x < control.getRowCount(); x++){ + for (int x = 0; x < control.getRowCount(); x++) { boxUsuario.addItem(control.getRow(x)[0]); } - + } } diff --git a/src/visualV2/FramePrincipal.java b/src/visual/frame/FramePrincipal.java similarity index 75% rename from src/visualV2/FramePrincipal.java rename to src/visual/frame/FramePrincipal.java index 97ec0ac..99c8939 100644 --- a/src/visualV2/FramePrincipal.java +++ b/src/visual/frame/FramePrincipal.java @@ -1,8 +1,18 @@ -package visualV2; +package visual.frame; import javax.swing.*; + +import visual.panel.PanelCartola; +import visual.panel.PanelResumen; +import visual.panel.PanelSuperior; + import java.awt.*; -import java.awt.event.ActionEvent; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; + +/** + * Frame que contiene los Paneles cartola, resumen y superior + */ public class FramePrincipal extends JFrame { @@ -13,12 +23,24 @@ public class FramePrincipal extends JFrame { private JPanel separador; private String usuario; + /** + * Inicia la ventana de usuario + * + * @param usuario + * Usuario el cual indicara a quien corresponde el archivo con + * sus datos. + */ + public FramePrincipal(String usuario) { this.usuario = usuario; initComponents(); } + /** + * Inicia los componentes del frame + */ + private void initComponents() { panelSuperior = new PanelSuperior(usuario); @@ -26,8 +48,16 @@ public class FramePrincipal extends JFrame { panelCartola = new PanelCartola(usuario); panelResumen = new PanelResumen(usuario); separador = new JPanel(); - - + + setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); + addWindowListener(new WindowAdapter() { + + @Override + public void windowClosing(WindowEvent e) { + salir(); + } + }); + separador.setBackground(new Color(255, 255, 255)); panelCard.setLayout(new CardLayout()); @@ -70,24 +100,30 @@ public class FramePrincipal extends JFrame { | UnsupportedLookAndFeelException e) { e.printStackTrace(); } - + pack(); setResizable(false); setVisible(true); - setLocationRelativeTo(null); + setLocationRelativeTo(null); } - protected void salir(ActionEvent evt) { - Object[] opciones = {"Si","No"}; - if(JOptionPane.showOptionDialog( - null,"¿Esta seguro?", "Salir", JOptionPane.OK_CANCEL_OPTION, - JOptionPane.INFORMATION_MESSAGE, null,opciones,"Si") - == 0){ + /** + * Accion que se realiza al presionar el boton salir de la ventana + */ + + protected void salir() { + Object[] opciones = { "Si", "No" }; + if (JOptionPane.showOptionDialog(null, "¿Esta seguro?", "Salir", JOptionPane.OK_CANCEL_OPTION, + JOptionPane.INFORMATION_MESSAGE, null, opciones, "Si") == 0) { System.exit(0); } - + } + /** + * Muestra el panel Cartola + */ + public void toCartola() { panelCartola.getTabla().actTabla(); @@ -95,6 +131,10 @@ public class FramePrincipal extends JFrame { cardLayout.show(panelCard, "cartola"); } + /** + * Muestra el panel Resumen + */ + public void toResumen() { panelResumen.llenarResumen(); CardLayout cardLayout = (CardLayout) panelCard.getLayout(); diff --git a/src/visual/frame/FrameRegistro.java b/src/visual/frame/FrameRegistro.java new file mode 100644 index 0000000..224a0ae --- /dev/null +++ b/src/visual/frame/FrameRegistro.java @@ -0,0 +1,196 @@ +package visual.frame; + +import java.awt.event.*; +import javax.swing.*; +import java.awt.*; + +import control.ControlLogin; + +/** + * Ventana en la cual se realiza el registro de usuarios. + */ +public class FrameRegistro extends JFrame { + + private JButton bRegistrarse; + private JButton bSalir; + private JPanel bar; + private JLabel bienvenido; + private JPasswordField fContraseña; + private JTextField fUsuario; + private JPasswordField fVerificar; + private JLabel lContraseña; + private JLabel lUsuario; + private JLabel lVerificiar; + private JLabel pam; + private JPanel panel; + + /** + * Constructor que inicia la ventana + */ + + public FrameRegistro() { + initComponents(); + } + + /** + * Metodo que inicia los componentes de la ventana + */ + + private void initComponents() { + + panel = new JPanel(); + pam = new JLabel(); + bienvenido = new JLabel(); + bar = new JPanel(); + lUsuario = new JLabel(); + fUsuario = new JTextField(); + lContraseña = new JLabel(); + fContraseña = new JPasswordField(); + bRegistrarse = new JButton(); + bSalir = new JButton(); + fVerificar = new JPasswordField(); + lVerificiar = new JLabel(); + + setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); + setBackground(new Color(21, 21, 21)); + setMinimumSize(null); + + panel.setBackground(new Color(0, 128, 128)); + + pam.setFont(new Font("Candara", 1, 60)); // NOI18N + pam.setForeground(new Color(255, 255, 255)); + pam.setText("P.A.M"); + + bienvenido.setFont(new Font("Candara", 1, 18)); // NOI18N + bienvenido.setForeground(new Color(255, 255, 255)); + bienvenido.setText(" Bienvenido de nuevo "); + + bar.setBackground(new Color(255, 255, 255)); + bar.setPreferredSize(new Dimension(215, 2)); + + GroupLayout barLayout = new GroupLayout(bar); + bar.setLayout(barLayout); + barLayout.setHorizontalGroup( + barLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGap(0, 251, Short.MAX_VALUE)); + barLayout.setVerticalGroup( + barLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGap(0, 9, Short.MAX_VALUE)); + + lUsuario.setBackground(new Color(0, 204, 204)); + lUsuario.setFont(new Font("Candara", 1, 18)); // NOI18N + lUsuario.setForeground(new Color(255, 255, 255)); + lUsuario.setText("Usuario"); + + lContraseña.setBackground(new Color(0, 204, 204)); + lContraseña.setFont(new Font("Candara", 1, 18)); // NOI18N + lContraseña.setForeground(new Color(255, 255, 255)); + lContraseña.setText("Contraseña"); + + bRegistrarse.setText("Registrarse"); + bRegistrarse.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent evt) { + bRegistrarseActionPerformed(evt); + } + }); + + bSalir.setText("Salir"); + bSalir.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent evt) { + bSalirActionPerformed(evt); + } + }); + + lVerificiar.setBackground(new Color(0, 204, 204)); + lVerificiar.setFont(new Font("Candara", 1, 18)); // NOI18N + lVerificiar.setForeground(new Color(255, 255, 255)); + lVerificiar.setText("Verificar Contraseña"); + + GroupLayout panelLayout = new GroupLayout(panel); + panel.setLayout(panelLayout); + panelLayout.setHorizontalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) + .addGroup(GroupLayout.Alignment.TRAILING, panelLayout.createSequentialGroup().addGap(140, 140, 140) + .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.CENTER) + .addComponent(bar, GroupLayout.PREFERRED_SIZE, 251, GroupLayout.PREFERRED_SIZE) + .addComponent(lUsuario) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE) + .addComponent(lContraseña) + .addComponent(fContraseña, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE) + .addComponent(bRegistrarse, GroupLayout.PREFERRED_SIZE, 87, GroupLayout.PREFERRED_SIZE) + .addComponent(bSalir, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE) + .addComponent(fVerificar, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE) + .addComponent(pam).addComponent(lVerificiar).addComponent(bienvenido)) + .addGap(140, 140, 140))); + panelLayout.setVerticalGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(panelLayout + .createSequentialGroup().addGap(27, 27, 27) + .addComponent(pam, GroupLayout.PREFERRED_SIZE, 52, GroupLayout.PREFERRED_SIZE).addGap(1, 1, 1) + .addComponent(bienvenido, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(bar, GroupLayout.PREFERRED_SIZE, 9, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(lUsuario) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(lContraseña) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(fContraseña, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(lVerificiar) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .addComponent(fVerificar, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE).addGap(28, 28, 28) + .addComponent(bRegistrarse).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED) + .addComponent(bSalir).addGap(31, 31, 31))); + + GroupLayout layout = new GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(panel, + GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); + layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(panel, + GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); + + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch (ClassNotFoundException | InstantiationException | IllegalAccessException + | UnsupportedLookAndFeelException e) { + e.printStackTrace(); + } + + setUndecorated(true); + pack(); + getRootPane().setDefaultButton(bRegistrarse); + setVisible(true); + setLocationRelativeTo(null); + + } + + /** + * Accion que se realiza al presionarse el boton Registrarse + *

+ * Usa a ControlLogin para añadir el usuario al archivo, si las + * comprobaciones salen correctas, cierra la ventana de registro y vuelve a + * la ventana login + *

+ */ + + protected void bRegistrarseActionPerformed(ActionEvent evt) { + + ControlLogin control = new ControlLogin(); + if (control.añadirUsuario(fUsuario.getText(), String.valueOf(fContraseña.getPassword()), + String.valueOf(fVerificar.getPassword()))) { + FrameLogin login = new FrameLogin(); + setVisible(false); + dispose(); + } + + } + + /** + * Accion que se realiza al presionar al boton Salir. + *

+ * Vuelve a la ventana login y cierra la actual + *

+ */ + + private void bSalirActionPerformed(ActionEvent evt) { + + FrameLogin login = new FrameLogin(); + setVisible(false); + dispose(); + } +} diff --git a/src/visualV2/JTableTable.java b/src/visual/otros/JTableTable.java similarity index 77% rename from src/visualV2/JTableTable.java rename to src/visual/otros/JTableTable.java index 72f0e14..1854dbe 100644 --- a/src/visualV2/JTableTable.java +++ b/src/visual/otros/JTableTable.java @@ -1,4 +1,4 @@ -package visualV2; +package visual.otros; import java.awt.Color; import java.awt.Font; @@ -8,17 +8,29 @@ import javax.swing.ListSelectionModel; import javax.swing.table.DefaultTableModel; import control.ControlPrincipal; - +/** + * Tabla la cual es usada en el panelCartola. + * Contiene las columnas de Nº-Fecha-Documento-Fuente/Destino-Descripcion-Ingreso-Egreso-Saldo + */ public class JTableTable extends JTable{ String usuario; + /** + * Constructor que inicia la tabla, asigandole el usuario del cual se obtienen sus datos + * @param usuario Usuario del cual se obtienen los datos. + */ public JTableTable(String usuario){ this.usuario = usuario; iniciar(); } + + /** + * Inicia los componentes en la tabla + */ + private void iniciar(){ setSelectionMode(ListSelectionModel.SINGLE_SELECTION); @@ -46,7 +58,9 @@ public class JTableTable extends JTable{ setSelectionForeground(new Color(255, 255, 255)); actTabla(); } - + /** + * Llena con datos la tabla, los cuales son otorgados por la clase ControlPrincipal + */ public void actTabla() { ControlPrincipal control = new ControlPrincipal(usuario); diff --git a/src/visualV2/P.A.M.v2/catola.png b/src/visual/panel/P.A.M.v2/catola.png similarity index 100% rename from src/visualV2/P.A.M.v2/catola.png rename to src/visual/panel/P.A.M.v2/catola.png diff --git a/src/visualV2/P.A.M.v2/logo.png b/src/visual/panel/P.A.M.v2/logo.png similarity index 100% rename from src/visualV2/P.A.M.v2/logo.png rename to src/visual/panel/P.A.M.v2/logo.png diff --git a/src/visualV2/P.A.M.v2/resumen.png b/src/visual/panel/P.A.M.v2/resumen.png similarity index 100% rename from src/visualV2/P.A.M.v2/resumen.png rename to src/visual/panel/P.A.M.v2/resumen.png diff --git a/src/visualV2/PanelCartola.java b/src/visual/panel/PanelCartola.java similarity index 94% rename from src/visualV2/PanelCartola.java rename to src/visual/panel/PanelCartola.java index fc04a31..262ede8 100644 --- a/src/visualV2/PanelCartola.java +++ b/src/visual/panel/PanelCartola.java @@ -1,10 +1,11 @@ -package visualV2; +package visual.panel; import javax.swing.*; import org.jdesktop.swingx.*; import control.ControlPrincipal; import utiles.Validador; +import visual.otros.JTableTable; import java.awt.*; import java.awt.event.ActionEvent; @@ -12,6 +13,11 @@ import java.awt.event.ActionListener; import java.text.SimpleDateFormat; import java.util.Calendar; +/** + * Panel que contiene la tabla con los datos de la cartola del usuario, aparte + * de componentes utilizados para añadir datos a la tabla + */ + public class PanelCartola extends JPanel { private JButton bAñadir; @@ -47,11 +53,22 @@ public class PanelCartola extends JPanel { private JTableTable tabla; private String usuario; + /** + * Inicia el panel, asignandose un usuario al panel para ser utilizado mas + * tarde para obtener los datos del archivo correspondiente + * + * @param usuario + * Usuario del cual se obtienen los datos. + */ public PanelCartola(String usuario) { this.usuario = usuario; initComponents(); } + /** + * Inicia los componentes del panel. + */ + private void initComponents() { lFecha1 = new JLabel(); @@ -348,12 +365,26 @@ public class PanelCartola extends JPanel { } + /** + * Getter que entrega la tabla de la cartola + * + * @return JTableTable + */ + public JTableTable getTabla() { return tabla; } + /** + * Accion realizada al presionar el boton añadir. + *

+ * Toma los datos ingresados en los fields correspondientes y los añade a el + * archivo del usuario a travez de la clase ControlPrincipal + *

+ */ + private void añadirActionPerformed(ActionEvent evt) { ControlPrincipal control = new ControlPrincipal(usuario); @@ -397,6 +428,11 @@ public class PanelCartola extends JPanel { } + /** + * Elimina la fila seleccionada en la tabla al ser presionada el boton + * Eliminar + */ + private void eliminarActionPerformed(ActionEvent evt) { ControlPrincipal control = new ControlPrincipal(usuario); @@ -411,6 +447,11 @@ public class PanelCartola extends JPanel { } + /** + * Modifica la linea ingresada en el jtextfield Nº. Esto atravez de los + * metodos en ControlPrincipal + */ + private void modificarActionPerformed(ActionEvent evt) { if (!fNumero.getText().equals("")) { diff --git a/src/visualV2/PanelResumen.java b/src/visual/panel/PanelResumen.java similarity index 91% rename from src/visualV2/PanelResumen.java rename to src/visual/panel/PanelResumen.java index 00a2a20..da40858 100644 --- a/src/visualV2/PanelResumen.java +++ b/src/visual/panel/PanelResumen.java @@ -1,4 +1,4 @@ -package visualV2; +package visual.panel; import javax.swing.*; import javax.swing.border.Border; @@ -21,6 +21,11 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.ArrayList; +/** + * Panel que contiene los resumenes de los datos del usuario. Esto a travez de + * Jfreecharts principalmente + */ + public class PanelResumen extends JPanel { private JLabel balance; @@ -42,11 +47,22 @@ public class PanelResumen extends JPanel { private DefaultCategoryDataset dataSetMes; private DefaultCategoryDataset dataSetDoc; + /** + * Inicia el panelResumen y le asigna el usuario de quien sacara los datos. + * + * @param usuario + * Usuario al cual corresponden los datos que se mostraran. + */ + public PanelResumen(String usuario) { this.usuario = usuario; initComponents(); } + /** + * Inicia los componentes del panel + */ + private void initComponents() { iniciarTextFieldYLabel(); @@ -312,6 +328,11 @@ public class PanelResumen extends JPanel { } + /** + * Accion que se realiza al seleccionar un item en el JComboBox. Cambiando + * el grafico respecto a lo que se seleccione. + */ + private void comboActionPerformed(ActionEvent evt) { CardLayout cardLayout = (CardLayout) panelGraphs.getLayout(); @@ -319,6 +340,11 @@ public class PanelResumen extends JPanel { } + /** + * Inicia los TextFields y Labels en el panel asignandole todos los datos + * esperables para mas tarde poder asignarle sus datos. + */ + public void iniciarTextFieldYLabel() { ingresos = new ArrayList(); @@ -346,6 +372,11 @@ public class PanelResumen extends JPanel { hideTextFieldsYLabels(); } + /** + * Esconde todos los TextFields y Labels, esto para que solamente sean + * visibles los que contengan datos + */ + private void hideTextFieldsYLabels() { borde = ingresos.get(0).getBorder(); @@ -371,6 +402,10 @@ public class PanelResumen extends JPanel { } + /** + * Llena el de datos los componentes del panelResumen + */ + public void llenarResumen() { ControlPrincipal control = new ControlPrincipal(usuario); @@ -452,6 +487,12 @@ public class PanelResumen extends JPanel { } + /** + * Crea el Grafico del mes, tomando los datos del ControlPrincipal + * + * @return Un ChartPanel que contiene el grafico. + */ + private ChartPanel crearGraphMes() { ControlPrincipal control = new ControlPrincipal(usuario); @@ -466,21 +507,27 @@ public class PanelResumen extends JPanel { CategoryPlot plot = chart.getCategoryPlot(); BarRenderer renderer = (BarRenderer) plot.getRenderer(); ValueAxis axis = plot.getRangeAxis(); - axis.setTickLabelPaint(new Color(0,0,0)); + axis.setTickLabelPaint(new Color(0, 0, 0)); CategoryAxis domain = plot.getDomainAxis(); - domain.setTickLabelPaint(new Color(0,0,0)); + domain.setTickLabelPaint(new Color(0, 0, 0)); renderer.setGradientPaintTransformer(null); renderer.setBarPainter(new StandardBarPainter()); - plot.setBackgroundPaint(new Color(0,103, 103)); - renderer.setSeriesPaint(0, new Color(0,205,205)); - chart.setBackgroundPaint(new Color(0, 128, 128 )); - + plot.setBackgroundPaint(new Color(0, 103, 103)); + renderer.setSeriesPaint(0, new Color(0, 205, 205)); + chart.setBackgroundPaint(new Color(0, 128, 128)); + ChartPanel graph = new ChartPanel(chart); return graph; } + /** + * Crea el Grafico del documento, tomando los datos del ControlPrincipal + * + * @return Un ChartPanel que contiene el grafico. + */ + private ChartPanel crearGraphDoc() { ControlPrincipal control = new ControlPrincipal(usuario); @@ -494,20 +541,25 @@ public class PanelResumen extends JPanel { CategoryPlot plot = chart.getCategoryPlot(); BarRenderer renderer = (BarRenderer) plot.getRenderer(); ValueAxis axis = plot.getRangeAxis(); - axis.setTickLabelPaint(new Color(0,0,0)); + axis.setTickLabelPaint(new Color(0, 0, 0)); CategoryAxis domain = plot.getDomainAxis(); - domain.setTickLabelPaint(new Color(0,0,0)); + domain.setTickLabelPaint(new Color(0, 0, 0)); renderer.setGradientPaintTransformer(null); renderer.setBarPainter(new StandardBarPainter()); - plot.setBackgroundPaint(new Color(0,103, 103)); - renderer.setSeriesPaint(0, new Color(0,205,205)); - chart.setBackgroundPaint(new Color(0, 128, 128 )); + plot.setBackgroundPaint(new Color(0, 103, 103)); + renderer.setSeriesPaint(0, new Color(0, 205, 205)); + chart.setBackgroundPaint(new Color(0, 128, 128)); ChartPanel graph = new ChartPanel(chart); return graph; } + /** + * Actualiza el grafico mes asignandole nuevamente los datos al dataset del + * grafico + */ + private void actualizarGraphMes() { dataSetMes.clear(); @@ -526,6 +578,11 @@ public class PanelResumen extends JPanel { } + /** + * Actualiza el grafico documento asignandole nuevamente los datos al + * dataset del grafico + */ + private void actualizarGraphDoc() { ControlPrincipal control = new ControlPrincipal(usuario); diff --git a/src/visual/panel/PanelSuperior.java b/src/visual/panel/PanelSuperior.java new file mode 100644 index 0000000..d3d8e03 --- /dev/null +++ b/src/visual/panel/PanelSuperior.java @@ -0,0 +1,170 @@ +package visual.panel; + +import javax.swing.*; + +import visual.frame.FramePrincipal; + +import java.awt.event.*; +import java.util.Calendar; +import java.awt.*; + +/** + * Panel que contiene los componentes en el cual principalmente, estan los + * botones para intercambiar entre el panelCartola y el panelResumen + */ +public class PanelSuperior extends JPanel { + + private JButton bCartola; + private JButton bResumen; + + private JTextField fFecha; + private JTextField fUsuario; + + private JLabel lFecha; + private JLabel lUsuario; + private JLabel logo; + + private String usuario; + + /** + * Inicia el panelSuperior asignandole el String usuario para ser utilizado + * por un componente mas tarde. + * + * @param usuario + * Usuario el cual se asignara mas tarde a un objeto. + */ + + public PanelSuperior(String usuario) { + + this.usuario = usuario; + initComponents(); + } + + /** + * Inicia los componentes del panel + */ + + private void initComponents() { + + logo = new JLabel(); + lUsuario = new JLabel(); + fUsuario = new JTextField(); + lFecha = new JLabel(); + fFecha = new JTextField(); + bResumen = new JButton(); + bCartola = new JButton(); + + setBackground(new Color(0, 128, 128)); + + logo.setIcon(new ImageIcon(getClass().getResource("P.A.M.v2/logo.png"))); // NOI18N + + lUsuario.setFont(new Font("Candara", 1, 14)); // NOI18N + lUsuario.setForeground(new Color(255, 255, 255)); + lUsuario.setText("Usuario:"); + + fUsuario.setBackground(new Color(178, 223, 219)); + fUsuario.setEnabled(false); + fUsuario.setText(usuario); + + lFecha.setFont(new Font("Candara", 1, 14)); // NOI18N + lFecha.setForeground(new Color(255, 255, 255)); + lFecha.setText("Fecha:"); + + Calendar hoy = Calendar.getInstance(); + fFecha.setBackground(new Color(178, 223, 219)); + fFecha.setEnabled(false); + fFecha.setText((String.valueOf(hoy.get(Calendar.DATE)) + "/" + String.valueOf(hoy.get(Calendar.MONTH) + 1) + "/" + + String.valueOf(hoy.get(Calendar.YEAR)))); + + bResumen.setBackground(new Color(0, 188, 212)); + bResumen.setText("Resumen"); + bResumen.setBorder(BorderFactory.createTitledBorder("")); + bResumen.setContentAreaFilled(false); + bResumen.setOpaque(true); + bResumen.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent evt) { + bResumenActionPerformed(evt); + } + }); + + bCartola.setBackground(new Color(0, 188, 212)); + bCartola.setText("Cartola"); + bCartola.setBorder(BorderFactory.createTitledBorder("")); + bCartola.setContentAreaFilled(false); + bCartola.setOpaque(true); + bCartola.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent evt) { + bCartolaActionPerformed(evt); + } + }); + + GroupLayout layout = new GroupLayout(this); + this.setLayout(layout); + layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout + .createSequentialGroup().addContainerGap().addComponent(logo) + .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout + .createSequentialGroup() + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, + Short.MAX_VALUE) + .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup( + GroupLayout.Alignment.TRAILING, + layout.createSequentialGroup().addComponent(lUsuario) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(fUsuario, + GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)) + .addGroup(GroupLayout.Alignment.TRAILING, + layout.createSequentialGroup().addComponent(lFecha) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent( + fFecha, GroupLayout.PREFERRED_SIZE, 100, + GroupLayout.PREFERRED_SIZE))) + .addContainerGap()) + .addGroup(layout.createSequentialGroup().addGap(333, 333, 333) + .addComponent(bCartola, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addComponent(bResumen, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE) + .addContainerGap(473, Short.MAX_VALUE))))); + layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(layout + .createSequentialGroup().addContainerGap() + .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) + .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, + GroupLayout.PREFERRED_SIZE) + .addComponent(lUsuario)) + .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) + .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(lFecha).addComponent( + fFecha, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) + .addGap(9, 9, 9) + .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) + .addComponent(bResumen, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) + .addComponent(bCartola, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE)) + .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) + .addComponent(logo, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE)); + + } + + /** + * Accion que se realiza al presionar el boton Resumen. + *

+ * Muestra el panel Resumen + *

+ */ + + private void bResumenActionPerformed(ActionEvent evt) { + + FramePrincipal parent = (FramePrincipal) SwingUtilities.getWindowAncestor(this); + parent.toResumen(); + + } + + /** + * Accion que se realiza al presionar el boton Cartola. + *

+ * Muestra el panel Cartola + *

+ */ + + private void bCartolaActionPerformed(ActionEvent evt) { + + FramePrincipal parent = (FramePrincipal) SwingUtilities.getWindowAncestor(this); + parent.toCartola(); + + } +} diff --git a/src/visualV2/FrameLogin.java b/src/visualV2/FrameLogin.java deleted file mode 100644 index 7460dd9..0000000 --- a/src/visualV2/FrameLogin.java +++ /dev/null @@ -1,242 +0,0 @@ -package visualV2; - -import java.awt.event.*; -import javax.swing.*; -import javax.swing.event.MenuEvent; -import javax.swing.event.MenuListener; - -import control.ControlLogin; - -public class FrameLogin extends JFrame { - - private JButton bIngresar; - private JButton bRegistrar; - private JButton bSalir; - private JPanel bar; - private JLabel bienvenido; - private JPasswordField fContraseña1; - private JTextField fUsuario; - private JLabel lContraseña; - private JLabel lUsuario; - private JLabel pam; - private JPanel panel; - private JMenuBar menubar; - private JMenu menu; - - public FrameLogin() { - initComponents(); - } - - private void initComponents() { - - panel = new JPanel(); - pam = new JLabel(); - bienvenido = new JLabel(); - bar = new JPanel(); - lUsuario = new JLabel(); - fUsuario = new JTextField(); - lContraseña = new JLabel(); - fContraseña1 = new JPasswordField(); - bIngresar = new JButton(); - bRegistrar = new JButton(); - bSalir = new JButton(); - - setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); - setBackground(new java.awt.Color(21, 21, 21)); - - menubar = new JMenuBar(); - menu = new JMenu("Administrador"); - - menu.addMenuListener(new MenuListener() { - - @Override - public void menuSelected(MenuEvent e) { - - openAdmin(); - menu.setSelected(false); - } - - @Override - public void menuDeselected(MenuEvent e) { - } - - @Override - public void menuCanceled(MenuEvent e) { - - } - }); - menubar.add(menu); - setJMenuBar(menubar); - - panel.setBackground(new java.awt.Color(0, 128, 128)); - - pam.setFont(new java.awt.Font("Candara", 1, 60)); // NOI18N - pam.setForeground(new java.awt.Color(255, 255, 255)); - pam.setText("P.A.M"); - - bienvenido.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - bienvenido.setForeground(new java.awt.Color(255, 255, 255)); - bienvenido.setText(" Bienvenido de nuevo "); - - bar.setBackground(new java.awt.Color(255, 255, 255)); - bar.setPreferredSize(new java.awt.Dimension(215, 2)); - - GroupLayout barLayout = new GroupLayout(bar); - bar.setLayout(barLayout); - barLayout.setHorizontalGroup( - barLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGap(0, 251, Short.MAX_VALUE) - ); - barLayout.setVerticalGroup( - barLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGap(0, 9, Short.MAX_VALUE) - ); - - lUsuario.setBackground(new java.awt.Color(0, 204, 204)); - lUsuario.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - lUsuario.setForeground(new java.awt.Color(255, 255, 255)); - lUsuario.setText("Usuario"); - lContraseña.setBackground(new java.awt.Color(0, 204, 204)); - lContraseña.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - lContraseña.setForeground(new java.awt.Color(255, 255, 255)); - lContraseña.setText("Contraseña"); - - bIngresar.setText("Ingresar"); - bIngresar.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - bIngresarActionPerformed(evt); - } - }); - - bRegistrar.setText("Registrarse"); - bRegistrar.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - bRegistrarActionPerformed(evt); - } - }); - - bSalir.setText("Salir"); - bSalir.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - bSalirActionPerformed(evt); - } - }); - - - GroupLayout panelLayout = new GroupLayout(panel); - panel.setLayout(panelLayout); - panelLayout.setHorizontalGroup( - panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(panelLayout.createSequentialGroup() - .addGap(95, 95, 95) - .addGroup(panelLayout.createParallelGroup(GroupLayout.Alignment.CENTER) - .addComponent(bar, GroupLayout.PREFERRED_SIZE, 251, GroupLayout.PREFERRED_SIZE) - .addComponent(pam) - .addComponent(bRegistrar) - .addComponent(bienvenido) - .addComponent(bIngresar, GroupLayout.PREFERRED_SIZE, 87, GroupLayout.PREFERRED_SIZE) - .addComponent(bSalir, GroupLayout.PREFERRED_SIZE, 65, GroupLayout.PREFERRED_SIZE) - .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE) - .addComponent(lUsuario) - .addComponent(lContraseña) - .addComponent(fContraseña1, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE)) - .addContainerGap(94, Short.MAX_VALUE)) - ); - panelLayout.setVerticalGroup( - panelLayout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(panelLayout.createSequentialGroup() - .addGap(29, 29, 29) - .addComponent(pam, GroupLayout.PREFERRED_SIZE, 52, GroupLayout.PREFERRED_SIZE) - .addGap(1, 1, 1) - .addComponent(bienvenido, GroupLayout.PREFERRED_SIZE, 35, GroupLayout.PREFERRED_SIZE) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(bar, GroupLayout.PREFERRED_SIZE, 9, GroupLayout.PREFERRED_SIZE) - .addGap(13, 13, 13) - .addComponent(lUsuario) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(lContraseña) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fContraseña1, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE) - .addGap(18, 18, 18) - .addComponent(bIngresar) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(bRegistrar) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(bSalir) - .addContainerGap(17, Short.MAX_VALUE)) - ); - - GroupLayout layout = new GroupLayout(getContentPane()); - getContentPane().setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(panel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - ); - layout.setVerticalGroup( - layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addComponent(panel, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - ); - - try { - UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); - } catch (ClassNotFoundException | InstantiationException | IllegalAccessException - | UnsupportedLookAndFeelException e) { - e.printStackTrace(); - } - - getRootPane().setDefaultButton(bIngresar); - setUndecorated(true); - pack(); - setVisible(true); - setLocationRelativeTo(null); - - } - - private void bIngresarActionPerformed(ActionEvent evt) { - - - ControlLogin control = new ControlLogin(); - - if (control.isUserPass(fUsuario.getText(), String.valueOf(fContraseña1.getPassword()))) { - - FramePrincipal principal = new FramePrincipal(fUsuario.getText()); - - dispose(); - - } else { - - JOptionPane.showMessageDialog(null, "Usuario o contraseña incorrectas", null, JOptionPane.ERROR_MESSAGE); - - } - - } - - private void bSalirActionPerformed(ActionEvent evt) { - - System.exit(0); - - } - - private void bRegistrarActionPerformed(ActionEvent evt) { - - FrameRegistro registro = new FrameRegistro(); - dispose(); - } - - private void openAdmin(){ - String opcion = JOptionPane.showInputDialog("Ingrese codigo de administrador"); - if(opcion!=null){ - if(opcion.equals("7419")){ - new FrameAdministrador(); - setVisible(false); - dispose(); - }else{ - JOptionPane.showMessageDialog(null, "Codigo incorrecto"); - } - } - } - - -} diff --git a/src/visualV2/FrameRegistro.java b/src/visualV2/FrameRegistro.java deleted file mode 100644 index 5f31cf4..0000000 --- a/src/visualV2/FrameRegistro.java +++ /dev/null @@ -1,188 +0,0 @@ -package visualV2; - -import java.awt.event.*; -import javax.swing.*; - -import control.ControlLogin; - -public class FrameRegistro extends JFrame { - - private javax.swing.JButton bRegistrarse; - private javax.swing.JButton bSalir; - private javax.swing.JPanel bar; - private javax.swing.JLabel bienvenido; - private javax.swing.JPasswordField fContraseña; - private javax.swing.JTextField fUsuario; - private javax.swing.JPasswordField fVerificar; - private javax.swing.JLabel lContraseña; - private javax.swing.JLabel lUsuario; - private javax.swing.JLabel lVerificiar; - private javax.swing.JLabel pam; - private javax.swing.JPanel panel; - - public FrameRegistro() { - initComponents(); - } - - private void initComponents() { - - panel = new javax.swing.JPanel(); - pam = new javax.swing.JLabel(); - bienvenido = new javax.swing.JLabel(); - bar = new javax.swing.JPanel(); - lUsuario = new javax.swing.JLabel(); - fUsuario = new javax.swing.JTextField(); - lContraseña = new javax.swing.JLabel(); - fContraseña = new javax.swing.JPasswordField(); - bRegistrarse = new javax.swing.JButton(); - bSalir = new javax.swing.JButton(); - fVerificar = new javax.swing.JPasswordField(); - lVerificiar = new javax.swing.JLabel(); - - setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); - setBackground(new java.awt.Color(21, 21, 21)); - setMinimumSize(null); - - panel.setBackground(new java.awt.Color(0, 128, 128)); - - pam.setFont(new java.awt.Font("Candara", 1, 60)); // NOI18N - pam.setForeground(new java.awt.Color(255, 255, 255)); - pam.setText("P.A.M"); - - bienvenido.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - bienvenido.setForeground(new java.awt.Color(255, 255, 255)); - bienvenido.setText(" Bienvenido de nuevo "); - - bar.setBackground(new java.awt.Color(255, 255, 255)); - bar.setPreferredSize(new java.awt.Dimension(215, 2)); - - javax.swing.GroupLayout barLayout = new javax.swing.GroupLayout(bar); - bar.setLayout(barLayout); - barLayout.setHorizontalGroup(barLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, - 251, Short.MAX_VALUE)); - barLayout.setVerticalGroup( - barLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 9, Short.MAX_VALUE)); - - lUsuario.setBackground(new java.awt.Color(0, 204, 204)); - lUsuario.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - lUsuario.setForeground(new java.awt.Color(255, 255, 255)); - lUsuario.setText("Usuario"); - - lContraseña.setBackground(new java.awt.Color(0, 204, 204)); - lContraseña.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - lContraseña.setForeground(new java.awt.Color(255, 255, 255)); - lContraseña.setText("Contraseña"); - - bRegistrarse.setText("Registrarse"); - bRegistrarse.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - bRegistrarseActionPerformed(evt); - } - }); - - bSalir.setText("Salir"); - bSalir.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - bSalirActionPerformed(evt); - } - }); - - lVerificiar.setBackground(new java.awt.Color(0, 204, 204)); - lVerificiar.setFont(new java.awt.Font("Candara", 1, 18)); // NOI18N - lVerificiar.setForeground(new java.awt.Color(255, 255, 255)); - lVerificiar.setText("Verificar Contraseña"); - - javax.swing.GroupLayout panelLayout = new javax.swing.GroupLayout(panel); - panel.setLayout(panelLayout); - panelLayout.setHorizontalGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, - panelLayout.createSequentialGroup().addGap(140, 140, 140) - .addGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) - .addComponent(bar, javax.swing.GroupLayout.PREFERRED_SIZE, 251, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(lUsuario) - .addComponent(fUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 161, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(lContraseña) - .addComponent(fContraseña, javax.swing.GroupLayout.PREFERRED_SIZE, 161, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(bRegistrarse, javax.swing.GroupLayout.PREFERRED_SIZE, 87, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(bSalir, javax.swing.GroupLayout.PREFERRED_SIZE, 65, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(fVerificar, javax.swing.GroupLayout.PREFERRED_SIZE, 161, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addComponent(pam).addComponent(lVerificiar).addComponent(bienvenido)) - .addGap(140, 140, 140))); - panelLayout.setVerticalGroup(panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(panelLayout.createSequentialGroup().addGap(27, 27, 27) - .addComponent(pam, javax.swing.GroupLayout.PREFERRED_SIZE, 52, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(1, 1, 1) - .addComponent(bienvenido, javax.swing.GroupLayout.PREFERRED_SIZE, 35, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(bar, javax.swing.GroupLayout.PREFERRED_SIZE, 9, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(lUsuario) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 31, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(lContraseña) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fContraseña, javax.swing.GroupLayout.PREFERRED_SIZE, 30, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(lVerificiar) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, - javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addComponent(fVerificar, javax.swing.GroupLayout.PREFERRED_SIZE, 30, - javax.swing.GroupLayout.PREFERRED_SIZE) - .addGap(28, 28, 28).addComponent(bRegistrarse) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(bSalir) - .addGap(31, 31, 31))); - - javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); - getContentPane().setLayout(layout); - layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( - panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); - layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( - panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); - - try { - UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); - } catch (ClassNotFoundException | InstantiationException | IllegalAccessException - | UnsupportedLookAndFeelException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - - setUndecorated(true); - pack(); - getRootPane().setDefaultButton(bRegistrarse); - setVisible(true); - setLocationRelativeTo(null); - - } - - protected void bRegistrarseActionPerformed(ActionEvent evt) { - - - - ControlLogin control = new ControlLogin(); - if (control.añadirUsuario(fUsuario.getText(), String.valueOf(fContraseña.getPassword()), - String.valueOf(fVerificar.getPassword()))) { - FrameLogin login = new FrameLogin(); - - dispose(); - }else{ - } - - } - - private void bSalirActionPerformed(ActionEvent evt) { - - FrameLogin login = new FrameLogin(); - - dispose(); - } -} diff --git a/src/visualV2/PanelSuperior.java b/src/visualV2/PanelSuperior.java deleted file mode 100644 index e09533c..0000000 --- a/src/visualV2/PanelSuperior.java +++ /dev/null @@ -1,150 +0,0 @@ -package visualV2; - -import javax.swing.*; - -import java.awt.event.*; -import java.util.Calendar; -import java.awt.*; - -public class PanelSuperior extends JPanel { - - private JButton bCartola; - private JButton bResumen; - - private JTextField fFecha; - private JTextField fUsuario; - - private JLabel lFecha; - private JLabel lUsuario; - private JLabel logo; - - private String usuario; - - public PanelSuperior(String usuario) { - - this.usuario = usuario; - initComponents(); - } - - private void initComponents() { - - - logo = new JLabel(); - lUsuario = new JLabel(); - fUsuario = new JTextField(); - lFecha = new JLabel(); - fFecha = new JTextField(); - bResumen = new JButton(); - bCartola = new JButton(); - - setBackground(new Color(0, 128, 128)); - - logo.setIcon(new ImageIcon(getClass().getResource("P.A.M.v2/logo.png"))); // NOI18N - - lUsuario.setFont(new Font("Candara", 1, 14)); // NOI18N - lUsuario.setForeground(new Color(255, 255, 255)); - lUsuario.setText("Usuario:"); - - fUsuario.setBackground(new Color(178, 223, 219)); - fUsuario.setEnabled(false); - fUsuario.setText(usuario); - - lFecha.setFont(new Font("Candara", 1, 14)); // NOI18N - lFecha.setForeground(new Color(255, 255, 255)); - lFecha.setText("Fecha:"); - - Calendar hoy = Calendar.getInstance(); - fFecha.setBackground(new Color(178, 223, 219)); - fFecha.setEnabled(false); - fFecha.setText((String.valueOf(hoy.get(Calendar.DATE)) + "/" + String.valueOf(hoy.get(Calendar.MONTH)+1) + "/" - + String.valueOf(hoy.get(Calendar.YEAR)))); - - bResumen.setBackground(new Color(0, 188, 212)); - bResumen.setText("Resumen"); - bResumen.setBorder(BorderFactory.createTitledBorder("")); - bResumen.setContentAreaFilled(false); - bResumen.setOpaque(true); - bResumen.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent evt) { - bResumenActionPerformed(evt); - } - }); - - bCartola.setBackground(new Color(0, 188, 212)); - bCartola.setText("Cartola"); - bCartola.setBorder(BorderFactory.createTitledBorder("")); - bCartola.setContentAreaFilled(false); - bCartola.setOpaque(true); - bCartola.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent evt) { - bCartolaActionPerformed(evt); - } - }); - - GroupLayout layout = new GroupLayout(this); - this.setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addContainerGap() - .addComponent(logo) - .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) - .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() - .addComponent(lUsuario) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)) - .addGroup(GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() - .addComponent(lFecha) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(fFecha, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE))) - .addContainerGap()) - .addGroup(layout.createSequentialGroup() - .addGap(333, 333, 333) - .addComponent(bCartola, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addComponent(bResumen, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE) - .addContainerGap(473, Short.MAX_VALUE)))) - ); - layout.setVerticalGroup( - layout.createParallelGroup(GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addContainerGap() - .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) - .addComponent(fUsuario, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE) - .addComponent(lUsuario)) - .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED) - .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) - .addComponent(lFecha) - .addComponent(fFecha, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)) - .addGap(9, 9, 9) - .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) - .addComponent(bResumen, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE) - .addComponent(bCartola, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE)) - .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) - .addComponent(logo, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 110, Short.MAX_VALUE) - ); - - - } - - private void bResumenActionPerformed(ActionEvent evt) { - - - - FramePrincipal parent = (FramePrincipal) SwingUtilities.getWindowAncestor(this); - parent.toResumen(); - - } - - private void bCartolaActionPerformed(ActionEvent evt) { - - - - FramePrincipal parent = (FramePrincipal) SwingUtilities.getWindowAncestor(this); - parent.toCartola(); - - } -}