Skip to content

Commit

Permalink
Reorganize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kpatzwald committed Dec 4, 2021
1 parent d35e854 commit da9b7cf
Show file tree
Hide file tree
Showing 21 changed files with 197 additions and 69 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@
*/
package net.sourceforge.wisim.controller;

import java.awt.*;
import java.awt.image.*;
import javax.swing.*;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;

import javax.swing.ImageIcon;

/**
* Erzeugt eine neue Instanz IconGenerater
Expand Down
4 changes: 2 additions & 2 deletions wisim/src/java/net/sourceforge/wisim/controller/IconNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
** ******************************************************************** */
package net.sourceforge.wisim.controller;

import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.Icon;
import javax.swing.tree.DefaultMutableTreeNode;

/**
* Ein IconNode ist ein Element im JTree. Das IconNode kann ein eigenes Icon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@

package net.sourceforge.wisim.controller;

import java.awt.*;
import java.util.*;
import javax.swing.*;
import javax.swing.tree.*;
import java.awt.Component;
import java.util.HashMap;
import javax.swing.Icon;
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeCellRenderer;

/** Der CellRenderer für einen JTree mit IconNodes. Erlaubt es jedem Node im JTree ein eigenes Icon
* zuzuweisen.
Expand Down Expand Up @@ -55,10 +56,10 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
Icon icon = ((IconNode) value).getIcon();

if (icon == null) {
Hashtable icons = (Hashtable) tree.getClientProperty("JTree.icons");
HashMap<String, Icon> icons = (HashMap<String, Icon>) tree.getClientProperty("JTree.icons");
String name = ((IconNode) value).getIconName();
if ((icons != null) && (name != null)) {
icon = (Icon) icons.get(name);
icon = icons.get(name);
if (icon != null) {
setIcon(icon);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@
package net.sourceforge.wisim.controller;

import java.awt.Component;
import java.awt.event.*;
import javax.swing.table.*;
import javax.swing.event.*;
import java.util.EventObject;
import javax.swing.tree.*;
import java.awt.event.MouseEvent;
import java.io.Serializable;
import javax.swing.*;
import java.util.EventObject;
import javax.swing.JComponent;
import javax.swing.JTable;
import javax.swing.JTree;
import javax.swing.SwingUtilities;
import javax.swing.event.CellEditorListener;
import javax.swing.event.ChangeEvent;
import javax.swing.event.EventListenerList;
import javax.swing.table.TableCellEditor;
import javax.swing.tree.TreeCellEditor;

/**
* @author Zafir Anjum
Expand Down Expand Up @@ -70,6 +75,7 @@ public boolean isCellEditable(EventObject anEvent) {
* @param anEvent
* @return boolean
*/
@Override
public boolean shouldSelectCell(EventObject anEvent) {
if (editorComponent != null && anEvent instanceof MouseEvent && ((MouseEvent) anEvent).getID() == MouseEvent.MOUSE_PRESSED) {
Component dispatchComponent = SwingUtilities.getDeepestComponentAt(editorComponent, 3, 3);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@

package net.sourceforge.wisim.controller;

import javax.swing.table.*;
import java.awt.Component;
import javax.swing.*;

import javax.swing.JComponent;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

/**
* @author Zafir Anjum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,23 @@
*/
package net.sourceforge.wisim.controller;

import net.sourceforge.wisim.dao.*;
import net.sourceforge.wisim.model.*;
import javax.swing.*;
import java.util.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Hashtable;
import java.util.Iterator;

import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;

import net.sourceforge.wisim.dao.WiSimDAO;
import net.sourceforge.wisim.dao.WiSimDAOException;
import net.sourceforge.wisim.dao.WiSimDAOWriteException;
import net.sourceforge.wisim.model.City;
import net.sourceforge.wisim.model.Customer;
import net.sourceforge.wisim.model.Memo;
import net.sourceforge.wisim.model.Validator;
import net.sourceforge.wisim.model.WiSimLogger;

/**
* Das Panel Customer Bearbeiten
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,28 @@

package net.sourceforge.wisim.controller;

import net.sourceforge.wisim.dao.*;
import net.sourceforge.wisim.model.*;
import javax.swing.*;

import java.text.DecimalFormat;
import java.text.ParseException;
import java.util.*;
import java.util.Collection;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;
import java.util.logging.Level;

import javax.swing.DefaultComboBoxModel;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

import net.sourceforge.wisim.dao.WiSimDAO;
import net.sourceforge.wisim.dao.WiSimDAOException;
import net.sourceforge.wisim.dao.WiSimDAOWriteException;
import net.sourceforge.wisim.model.City;
import net.sourceforge.wisim.model.Supplier;
import net.sourceforge.wisim.model.SupplyList;
import net.sourceforge.wisim.model.Validator;
import net.sourceforge.wisim.model.WiSimComponent;
import net.sourceforge.wisim.model.WiSimLogger;

/**
* JPanelLieferantBearbeiten ermöglicht das bearbeiten eines Lieferanten.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@
import java.awt.Dimension;
import java.awt.Font;
import java.util.ArrayList;

import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

import net.sourceforge.wisim.dao.WiSimDAO;
import net.sourceforge.wisim.dao.WiSimDAOException;
import net.sourceforge.wisim.model.*;
import net.sourceforge.wisim.model.WiSimLogger;
import net.sourceforge.wisim.networkplan.JNetworkplan;
import net.sourceforge.wisim.networkplan.NetworkplanElement;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,28 @@

import java.text.DecimalFormat;
import java.text.ParseException;
import java.util.*;
import java.util.Calendar;
import java.util.Collection;
import java.util.GregorianCalendar;
import java.util.Iterator;
import java.util.Vector;
import java.util.logging.Level;
import javax.swing.*;

import javax.swing.JOptionPane;
import javax.swing.SpinnerNumberModel;
import javax.swing.table.DefaultTableModel;
import net.sourceforge.wisim.dao.*;
import net.sourceforge.wisim.model.*;

import net.sourceforge.wisim.dao.WiSimDAO;
import net.sourceforge.wisim.dao.WiSimDAOException;
import net.sourceforge.wisim.dao.WiSimDAOWriteException;
import net.sourceforge.wisim.model.ComponentContract;
import net.sourceforge.wisim.model.ComponentContractAccount;
import net.sourceforge.wisim.model.ComponentContractItem;
import net.sourceforge.wisim.model.Supplier;
import net.sourceforge.wisim.model.SupplyList;
import net.sourceforge.wisim.model.Validator;
import net.sourceforge.wisim.model.WiSimComponent;
import net.sourceforge.wisim.model.WiSimLogger;

/**
* Masken für die WiSimComponent-Bestellung
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,24 @@
*/
package net.sourceforge.wisim.controller;

import java.util.*;
import javax.swing.*;
import net.sourceforge.wisim.dao.*;
import net.sourceforge.wisim.model.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;

import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.JOptionPane;

import net.sourceforge.wisim.dao.WiSimDAO;
import net.sourceforge.wisim.dao.WiSimDAOException;
import net.sourceforge.wisim.dao.WiSimDAOWriteException;
import net.sourceforge.wisim.model.Supplier;
import net.sourceforge.wisim.model.SupplyList;
import net.sourceforge.wisim.model.Validator;
import net.sourceforge.wisim.model.WiSimComponent;
import net.sourceforge.wisim.model.WiSimLogger;

/**
* Das Panel Neuer Supplier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
import net.sourceforge.wisim.dao.*;
import net.sourceforge.wisim.model.*;
import javax.swing.*;

import javax.swing.DefaultListModel;
import javax.swing.table.DefaultTableModel;

import net.sourceforge.wisim.dao.WiSimDAO;
import net.sourceforge.wisim.dao.WiSimDAOException;
import net.sourceforge.wisim.model.Customer;
import net.sourceforge.wisim.model.Memo;
import net.sourceforge.wisim.model.WiSimLogger;

/** Auflistung der Kundendaten
*/
public class JPanelViewCustomers extends javax.swing.JPanel {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,31 @@
*/

package net.sourceforge.wisim.controller;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.text.DecimalFormat;
import java.util.*;
import net.sourceforge.wisim.model.*;
import net.sourceforge.wisim.dao.*;
import javax.swing.*;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.GregorianCalendar;
import java.util.Iterator;
import java.util.Vector;

import javax.swing.ImageIcon;
import javax.swing.table.DefaultTableModel;
import java.awt.*;
import java.awt.image.*;

import net.sourceforge.wisim.dao.WiSimDAO;
import net.sourceforge.wisim.dao.WiSimDAOException;
import net.sourceforge.wisim.model.ComponentContract;
import net.sourceforge.wisim.model.ComponentContractAccount;
import net.sourceforge.wisim.model.ComponentContractItem;
import net.sourceforge.wisim.model.Refreshable;
import net.sourceforge.wisim.model.Supplier;
import net.sourceforge.wisim.model.SupplyList;
import net.sourceforge.wisim.model.WiSimComponent;
import net.sourceforge.wisim.model.WiSimLogger;

/** Gibt eine Übersicht aller Einzelteilaufträge aus.
* @author benjamin.pasero
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,22 @@

package net.sourceforge.wisim.controller;

import net.sourceforge.wisim.dao.*;
import net.sourceforge.wisim.model.*;

import java.awt.Dimension;
import java.text.DecimalFormat;
import java.util.*;
import java.util.Collection;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.Vector;

import javax.swing.table.DefaultTableModel;

import net.sourceforge.wisim.dao.WiSimDAO;
import net.sourceforge.wisim.dao.WiSimDAOException;
import net.sourceforge.wisim.model.Supplier;
import net.sourceforge.wisim.model.SupplyList;
import net.sourceforge.wisim.model.WiSimComponent;
import net.sourceforge.wisim.model.WiSimLogger;

/**
* JPanelLieferantenliste zeigt Liste aller Lieferanten.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,25 @@
*/
package net.sourceforge.wisim.controller;

import net.sourceforge.wisim.model.*;
import net.sourceforge.wisim.dao.*;
import javax.swing.table.DefaultTableModel;
import java.awt.*;
import java.awt.image.*;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import javax.swing.*;

import javax.swing.ImageIcon;
import javax.swing.table.DefaultTableModel;

import net.sourceforge.wisim.dao.WiSimDAO;
import net.sourceforge.wisim.dao.WiSimDAOException;
import net.sourceforge.wisim.model.Article;
import net.sourceforge.wisim.model.ComponentWarehouseItem;
import net.sourceforge.wisim.model.Refreshable;
import net.sourceforge.wisim.model.WarehouseLocation;
import net.sourceforge.wisim.model.WiSimComponent;
import net.sourceforge.wisim.model.WiSimLogger;

/**
* Gibt eine �bersicht des Lager aus. Best�nde und Kapazit�ten werden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,28 @@

package net.sourceforge.wisim.controller;

import net.sourceforge.wisim.dao.*;
import net.sourceforge.wisim.model.*;
import java.util.*;
import javax.swing.table.*;
import javax.swing.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Vector;

import javax.swing.JComponent;
import javax.swing.JProgressBar;
import javax.swing.JTable;
import javax.swing.SpinnerNumberModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumn;

import net.sourceforge.wisim.dao.WiSimDAO;
import net.sourceforge.wisim.dao.WiSimDAOException;
import net.sourceforge.wisim.dao.WiSimDAOWriteException;
import net.sourceforge.wisim.model.Refreshable;
import net.sourceforge.wisim.model.WiSimComponent;
import net.sourceforge.wisim.model.WiSimLogger;
import net.sourceforge.wisim.model.WorkPlace;
import net.sourceforge.wisim.model.WorkPlaceStore;

/**
* Gibt eine Tabellenübersicht aller Arbeitsplätze mit den Beständen der
Expand Down
Loading

0 comments on commit da9b7cf

Please sign in to comment.