Movi BaseController y BasePanel al package framework

This commit is contained in:
Daniel Cortés
2019-05-25 18:17:19 -04:00
parent 543eb4c593
commit 2cb89e53f7
43 changed files with 64 additions and 63 deletions

View File

@@ -27,6 +27,7 @@ import xyz.danielcortes.controllers.libro.LibroCreateController;
import xyz.danielcortes.controllers.libro.LibroSearchController;
import xyz.danielcortes.controllers.libro.LibroUpdateController;
import xyz.danielcortes.controllers.libro.LibroViewController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.views.LaunchFrame;
import xyz.danielcortes.views.autor.AutorCreatePanel;

View File

@@ -1,13 +1,13 @@
package xyz.danielcortes.controllers.autor;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Autor;
import xyz.danielcortes.repository.AutorRepository;
import xyz.danielcortes.validator.AutorValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.autor.AutorCreatePanel;
public class AutorCreateController extends BaseController {

View File

@@ -2,7 +2,7 @@ package xyz.danielcortes.controllers.autor;
import java.util.List;
import javax.swing.JOptionPane;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.BaseTableModel;
import xyz.danielcortes.framework.PanelName;
@@ -10,7 +10,7 @@ import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Autor;
import xyz.danielcortes.repository.AutorRepository;
import xyz.danielcortes.validator.AutorValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.autor.AutorSearchPanel;
public class AutorSearchController extends BaseController {

View File

@@ -1,13 +1,13 @@
package xyz.danielcortes.controllers.autor;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Autor;
import xyz.danielcortes.repository.AutorRepository;
import xyz.danielcortes.validator.AutorValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.autor.AutorUpdatePanel;
public class AutorUpdateController extends BaseController {

View File

@@ -1,10 +1,10 @@
package xyz.danielcortes.controllers.autor;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.models.Autor;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.autor.AutorViewPanel;
public class AutorViewController extends BaseController {

View File

@@ -1,13 +1,13 @@
package xyz.danielcortes.controllers.categoria;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Categoria;
import xyz.danielcortes.repository.CategoriaRepository;
import xyz.danielcortes.validator.CategoriaValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.categoria.CategoriaCreatePanel;
public class CategoriaCreateController extends BaseController {

View File

@@ -2,7 +2,7 @@ package xyz.danielcortes.controllers.categoria;
import java.util.List;
import javax.swing.JOptionPane;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.BaseTableModel;
import xyz.danielcortes.framework.PanelName;
@@ -10,7 +10,7 @@ import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Categoria;
import xyz.danielcortes.repository.CategoriaRepository;
import xyz.danielcortes.validator.CategoriaValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.categoria.CategoriaSearchPanel;
public class CategoriaSearchController extends BaseController {

View File

@@ -1,13 +1,13 @@
package xyz.danielcortes.controllers.categoria;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Categoria;
import xyz.danielcortes.repository.CategoriaRepository;
import xyz.danielcortes.validator.CategoriaValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.categoria.CategoriaUpdatePanel;
public class CategoriaUpdateController extends BaseController {

View File

@@ -1,10 +1,10 @@
package xyz.danielcortes.controllers.categoria;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.models.Categoria;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.categoria.CategoriaViewPanel;
public class CategoriaViewController extends BaseController {

View File

@@ -1,13 +1,13 @@
package xyz.danielcortes.controllers.editorial;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Editorial;
import xyz.danielcortes.repository.EditorialRepository;
import xyz.danielcortes.validator.EditorialValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.editorial.EditorialCreatePanel;
public class EditorialCreateController extends BaseController {

View File

@@ -2,7 +2,7 @@ package xyz.danielcortes.controllers.editorial;
import java.util.List;
import javax.swing.JOptionPane;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.BaseTableModel;
import xyz.danielcortes.framework.PanelName;
@@ -10,7 +10,7 @@ import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Editorial;
import xyz.danielcortes.repository.EditorialRepository;
import xyz.danielcortes.validator.EditorialValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.editorial.EditorialSearchPanel;
public class EditorialSearchController extends BaseController {

View File

@@ -1,13 +1,13 @@
package xyz.danielcortes.controllers.editorial;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Editorial;
import xyz.danielcortes.repository.EditorialRepository;
import xyz.danielcortes.validator.EditorialValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.editorial.EditorialUpdatePanel;
public class EditorialUpdateController extends BaseController {

View File

@@ -1,10 +1,10 @@
package xyz.danielcortes.controllers.editorial;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.models.Editorial;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.editorial.EditorialViewPanel;
public class EditorialViewController extends BaseController {

View File

@@ -1,13 +1,13 @@
package xyz.danielcortes.controllers.idioma;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Idioma;
import xyz.danielcortes.repository.IdiomaRepository;
import xyz.danielcortes.validator.IdiomaValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.idioma.IdiomaCreatePanel;
public class IdiomaCreateController extends BaseController {

View File

@@ -2,7 +2,7 @@ package xyz.danielcortes.controllers.idioma;
import java.util.List;
import javax.swing.JOptionPane;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.BaseTableModel;
import xyz.danielcortes.framework.PanelName;
@@ -10,7 +10,7 @@ import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Idioma;
import xyz.danielcortes.repository.IdiomaRepository;
import xyz.danielcortes.validator.IdiomaValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.idioma.IdiomaSearchPanel;
public class IdiomaSearchController extends BaseController {

View File

@@ -1,13 +1,13 @@
package xyz.danielcortes.controllers.idioma;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.framework.ValidationResult;
import xyz.danielcortes.models.Idioma;
import xyz.danielcortes.repository.IdiomaRepository;
import xyz.danielcortes.validator.IdiomaValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.idioma.IdiomaUpdatePanel;
public class IdiomaUpdateController extends BaseController {

View File

@@ -1,10 +1,10 @@
package xyz.danielcortes.controllers.idioma;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.models.Idioma;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.idioma.IdiomaViewPanel;
public class IdiomaViewController extends BaseController {

View File

@@ -5,7 +5,7 @@ import java.util.HashSet;
import java.util.List;
import javax.swing.DefaultListModel;
import javax.swing.JComboBox;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.PanelName;
import xyz.danielcortes.framework.ValidationResult;
@@ -20,7 +20,7 @@ import xyz.danielcortes.repository.EditorialRepository;
import xyz.danielcortes.repository.IdiomaRepository;
import xyz.danielcortes.repository.LibroRepository;
import xyz.danielcortes.validator.LibroValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.libro.LibroCreatePanel;
public class LibroCreateController extends BaseController {

View File

@@ -2,7 +2,7 @@ package xyz.danielcortes.controllers.libro;
import java.util.List;
import javax.swing.JOptionPane;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.BaseTableModel;
import xyz.danielcortes.framework.PanelName;
@@ -13,7 +13,7 @@ import xyz.danielcortes.repository.EjemplarRepository;
import xyz.danielcortes.repository.LibroRepository;
import xyz.danielcortes.validator.EjemplarValidator;
import xyz.danielcortes.validator.LibroValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.libro.LibroAgregarStockDialog;
import xyz.danielcortes.views.libro.LibroSearchPanel;

View File

@@ -5,7 +5,7 @@ import java.util.HashSet;
import java.util.List;
import javax.swing.DefaultListModel;
import javax.swing.JComboBox;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.JListUtils;
import xyz.danielcortes.framework.PanelName;
@@ -21,7 +21,7 @@ import xyz.danielcortes.repository.EditorialRepository;
import xyz.danielcortes.repository.IdiomaRepository;
import xyz.danielcortes.repository.LibroRepository;
import xyz.danielcortes.validator.LibroValidator;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.libro.LibroUpdatePanel;
public class LibroUpdateController extends BaseController {

View File

@@ -3,7 +3,7 @@ package xyz.danielcortes.controllers.libro;
import java.util.List;
import javax.swing.DefaultListModel;
import javax.swing.JComboBox;
import xyz.danielcortes.controllers.BaseController;
import xyz.danielcortes.framework.BaseController;
import xyz.danielcortes.controllers.LaunchController;
import xyz.danielcortes.framework.JListUtils;
import xyz.danielcortes.framework.PanelName;
@@ -16,7 +16,7 @@ import xyz.danielcortes.repository.AutorRepository;
import xyz.danielcortes.repository.CategoriaRepository;
import xyz.danielcortes.repository.EditorialRepository;
import xyz.danielcortes.repository.IdiomaRepository;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
import xyz.danielcortes.views.libro.LibroViewPanel;
public class LibroViewController extends BaseController {

View File

@@ -1,6 +1,6 @@
package xyz.danielcortes.controllers;
package xyz.danielcortes.framework;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.controllers.LaunchController;
public abstract class BaseController {
private LaunchController parentController;

View File

@@ -1,4 +1,4 @@
package xyz.danielcortes.views;
package xyz.danielcortes.framework;
import javax.swing.JPanel;

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class AutorCreatePanel extends BasePanel {

View File

@@ -13,7 +13,7 @@ import javax.swing.JTextField;
import javax.swing.ListSelectionModel;
import xyz.danielcortes.framework.BaseTableModel;
import xyz.danielcortes.models.Autor;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class AutorSearchPanel extends BasePanel {

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class AutorUpdatePanel extends BasePanel {

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class AutorViewPanel extends BasePanel {

View File

@@ -9,7 +9,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class CategoriaCreatePanel extends BasePanel {

View File

@@ -13,7 +13,7 @@ import javax.swing.JTextField;
import javax.swing.ListSelectionModel;
import xyz.danielcortes.framework.BaseTableModel;
import xyz.danielcortes.models.Categoria;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class CategoriaSearchPanel extends BasePanel {

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class CategoriaUpdatePanel extends BasePanel {

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class CategoriaViewPanel extends BasePanel {

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class EditorialCreatePanel extends BasePanel {

View File

@@ -12,7 +12,7 @@ import javax.swing.JTable;
import javax.swing.JTextField;
import xyz.danielcortes.framework.BaseTableModel;
import xyz.danielcortes.models.Editorial;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class EditorialSearchPanel extends BasePanel {

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class EditorialUpdatePanel extends BasePanel {

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class EditorialViewPanel extends BasePanel {

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class IdiomaCreatePanel extends BasePanel {

View File

@@ -13,7 +13,7 @@ import javax.swing.JTextField;
import javax.swing.ListSelectionModel;
import xyz.danielcortes.framework.BaseTableModel;
import xyz.danielcortes.models.Idioma;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class IdiomaSearchPanel extends BasePanel {

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class IdiomaUpdatePanel extends BasePanel {

View File

@@ -10,7 +10,7 @@ import javax.swing.JComponent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class IdiomaViewPanel extends BasePanel {

View File

@@ -20,7 +20,7 @@ import xyz.danielcortes.models.Autor;
import xyz.danielcortes.models.Categoria;
import xyz.danielcortes.models.Editorial;
import xyz.danielcortes.models.Idioma;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class LibroCreatePanel extends BasePanel {

View File

@@ -13,7 +13,7 @@ import javax.swing.JTextField;
import javax.swing.ListSelectionModel;
import xyz.danielcortes.framework.BaseTableModel;
import xyz.danielcortes.models.Libro;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class LibroSearchPanel extends BasePanel {

View File

@@ -20,7 +20,7 @@ import xyz.danielcortes.models.Autor;
import xyz.danielcortes.models.Categoria;
import xyz.danielcortes.models.Editorial;
import xyz.danielcortes.models.Idioma;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class LibroUpdatePanel extends BasePanel {

View File

@@ -20,7 +20,7 @@ import xyz.danielcortes.models.Autor;
import xyz.danielcortes.models.Categoria;
import xyz.danielcortes.models.Editorial;
import xyz.danielcortes.models.Idioma;
import xyz.danielcortes.views.BasePanel;
import xyz.danielcortes.framework.BasePanel;
public class LibroViewPanel extends BasePanel {