From 7bceda90673cb58d1fa4c0a31f9039003fbf6d0c Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Mon, 22 Dec 2008 00:49:43 +0000 Subject: [PATCH] organize imports --- .../org/compiere/pos/CashSubFunctions.java | 38 ++++++-- .../compiere/pos/PosKeyboardFocusManager.java | 10 +- .../src/org/compiere/pos/QueryBPartner.java | 35 +++++-- client/src/org/compiere/pos/QueryProduct.java | 37 +++++--- client/src/org/compiere/pos/QueryTicket.java | 44 ++++++--- client/src/org/compiere/pos/SubBPartner.java | 33 +++++-- client/src/org/compiere/pos/SubBasicKeys.java | 14 ++- client/src/org/compiere/pos/SubProduct.java | 24 +++-- client/src/org/compiere/pos/SubSalesRep.java | 15 ++- client/src/org/compiere/print/AReport.java | 28 ++++-- .../compiere/print/ReportViewerProvider.java | 1 - client/src/org/compiere/print/Viewer.java | 92 ++++++++++++++++--- 12 files changed, 274 insertions(+), 97 deletions(-) diff --git a/client/src/org/compiere/pos/CashSubFunctions.java b/client/src/org/compiere/pos/CashSubFunctions.java index b2dcc2ae11..556b6ab02e 100644 --- a/client/src/org/compiere/pos/CashSubFunctions.java +++ b/client/src/org/compiere/pos/CashSubFunctions.java @@ -14,18 +14,36 @@ package org.compiere.pos; -import java.math.*; -import java.awt.*; -import java.awt.event.*; -import java.sql.*; +import java.awt.BorderLayout; +import java.awt.Dimension; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.InputMethodEvent; +import java.awt.event.InputMethodListener; +import java.math.BigDecimal; +import java.sql.Timestamp; -import javax.swing.border.*; +import javax.swing.border.TitledBorder; -import org.compiere.swing.*; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.model.*; -import org.compiere.util.*; +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.grid.ed.VNumber; +import org.compiere.model.MCash; +import org.compiere.model.MCashBook; +import org.compiere.model.MCashLine; +import org.compiere.model.MOrder; +import org.compiere.model.MQuery; +import org.compiere.swing.CButton; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CScrollPane; +import org.compiere.util.CLogger; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; +import org.compiere.util.Msg; +import org.compiere.util.TimeUtil; /** * @author Comunidad de Desarrollo OpenXpertya diff --git a/client/src/org/compiere/pos/PosKeyboardFocusManager.java b/client/src/org/compiere/pos/PosKeyboardFocusManager.java index 673244408a..f6257f4a49 100644 --- a/client/src/org/compiere/pos/PosKeyboardFocusManager.java +++ b/client/src/org/compiere/pos/PosKeyboardFocusManager.java @@ -14,11 +14,13 @@ package org.compiere.pos; -import java.awt.*; -import java.awt.event.*; -import java.util.*; +import java.awt.DefaultKeyboardFocusManager; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.util.LinkedList; -import org.compiere.util.*; +import org.compiere.util.CLogger; /** * POS Keyboard Focus Manager diff --git a/client/src/org/compiere/pos/QueryBPartner.java b/client/src/org/compiere/pos/QueryBPartner.java index 68a424b787..10be0ce1af 100644 --- a/client/src/org/compiere/pos/QueryBPartner.java +++ b/client/src/org/compiere/pos/QueryBPartner.java @@ -14,18 +14,33 @@ package org.compiere.pos; -import java.awt.*; -import java.awt.event.*; +import java.awt.BorderLayout; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; -import javax.swing.*; -import javax.swing.border.*; -import javax.swing.event.*; +import javax.swing.KeyStroke; +import javax.swing.border.TitledBorder; +import javax.swing.event.ListSelectionEvent; +import javax.swing.event.ListSelectionListener; -import org.compiere.swing.*; -import org.compiere.apps.*; -import org.compiere.minigrid.*; -import org.compiere.model.*; -import org.compiere.util.*; +import org.compiere.apps.ConfirmPanel; +import org.compiere.minigrid.ColumnInfo; +import org.compiere.minigrid.IDColumn; +import org.compiere.minigrid.MiniTable; +import org.compiere.model.MBPartnerInfo; +import org.compiere.swing.CButton; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CScrollPane; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * POS Query BPartner diff --git a/client/src/org/compiere/pos/QueryProduct.java b/client/src/org/compiere/pos/QueryProduct.java index 9fb083750a..83d9877e5c 100644 --- a/client/src/org/compiere/pos/QueryProduct.java +++ b/client/src/org/compiere/pos/QueryProduct.java @@ -14,19 +14,34 @@ package org.compiere.pos; -import java.awt.*; -import java.awt.event.*; -import java.math.*; +import java.awt.BorderLayout; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; +import java.math.BigDecimal; -import javax.swing.*; -import javax.swing.border.*; -import javax.swing.event.*; +import javax.swing.KeyStroke; +import javax.swing.border.TitledBorder; +import javax.swing.event.ListSelectionEvent; +import javax.swing.event.ListSelectionListener; -import org.compiere.swing.*; -import org.compiere.apps.*; -import org.compiere.minigrid.*; -import org.compiere.model.*; -import org.compiere.util.*; +import org.compiere.apps.ConfirmPanel; +import org.compiere.minigrid.ColumnInfo; +import org.compiere.minigrid.IDColumn; +import org.compiere.minigrid.MiniTable; +import org.compiere.model.MWarehousePrice; +import org.compiere.swing.CButton; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CScrollPane; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * POS Query Product diff --git a/client/src/org/compiere/pos/QueryTicket.java b/client/src/org/compiere/pos/QueryTicket.java index 1d9165f6d5..bab500ca04 100644 --- a/client/src/org/compiere/pos/QueryTicket.java +++ b/client/src/org/compiere/pos/QueryTicket.java @@ -14,21 +14,39 @@ package org.compiere.pos; -import java.awt.*; -import java.awt.event.*; -import java.math.*; -import java.sql.*; -import java.util.*; +import java.awt.BorderLayout; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; +import java.math.BigDecimal; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; -import javax.swing.*; -import javax.swing.border.*; -import javax.swing.event.*; +import javax.swing.KeyStroke; +import javax.swing.border.TitledBorder; +import javax.swing.event.ListSelectionEvent; +import javax.swing.event.ListSelectionListener; -import org.compiere.swing.*; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.minigrid.*; -import org.compiere.util.*; +import org.compiere.apps.ConfirmPanel; +import org.compiere.grid.ed.VDate; +import org.compiere.minigrid.ColumnInfo; +import org.compiere.minigrid.IDColumn; +import org.compiere.minigrid.MiniTable; +import org.compiere.swing.CButton; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CScrollPane; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * POS Query Product diff --git a/client/src/org/compiere/pos/SubBPartner.java b/client/src/org/compiere/pos/SubBPartner.java index 11efa1258f..46adb29b6e 100644 --- a/client/src/org/compiere/pos/SubBPartner.java +++ b/client/src/org/compiere/pos/SubBPartner.java @@ -14,16 +14,33 @@ package org.compiere.pos; -import java.awt.*; -import java.awt.event.*; -import java.util.*; +import java.awt.Event; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.FocusEvent; +import java.awt.event.FocusListener; +import java.awt.event.KeyEvent; +import java.util.Vector; -import javax.swing.*; -import javax.swing.border.*; +import javax.swing.DefaultComboBoxModel; +import javax.swing.KeyStroke; +import javax.swing.border.TitledBorder; -import org.compiere.swing.*; -import org.compiere.model.*; -import org.compiere.util.*; +import org.compiere.model.MBPartner; +import org.compiere.model.MBPartnerInfo; +import org.compiere.model.MBPartnerLocation; +import org.compiere.model.MCurrency; +import org.compiere.model.MPriceList; +import org.compiere.model.MPriceListVersion; +import org.compiere.model.MUser; +import org.compiere.swing.CButton; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.KeyNamePair; +import org.compiere.util.Msg; /** diff --git a/client/src/org/compiere/pos/SubBasicKeys.java b/client/src/org/compiere/pos/SubBasicKeys.java index 1288899ad2..7efbf2e6f8 100644 --- a/client/src/org/compiere/pos/SubBasicKeys.java +++ b/client/src/org/compiere/pos/SubBasicKeys.java @@ -14,13 +14,17 @@ package org.compiere.pos; -import java.awt.*; -import java.awt.event.*; +import java.awt.Dimension; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; -import javax.swing.border.*; +import javax.swing.border.TitledBorder; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.swing.CButton; +import org.compiere.util.CLogger; /** diff --git a/client/src/org/compiere/pos/SubProduct.java b/client/src/org/compiere/pos/SubProduct.java index 1f64f52111..15f6246c99 100644 --- a/client/src/org/compiere/pos/SubProduct.java +++ b/client/src/org/compiere/pos/SubProduct.java @@ -14,15 +14,25 @@ package org.compiere.pos; -import java.awt.*; -import java.awt.event.*; +import java.awt.Event; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.FocusEvent; +import java.awt.event.FocusListener; +import java.awt.event.KeyEvent; -import javax.swing.*; -import javax.swing.border.*; +import javax.swing.KeyStroke; +import javax.swing.border.TitledBorder; -import org.compiere.swing.*; -import org.compiere.model.*; -import org.compiere.util.*; +import org.compiere.model.MProduct; +import org.compiere.model.MWarehousePrice; +import org.compiere.swing.CButton; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** diff --git a/client/src/org/compiere/pos/SubSalesRep.java b/client/src/org/compiere/pos/SubSalesRep.java index 7090cd96a4..e4129bf0a7 100644 --- a/client/src/org/compiere/pos/SubSalesRep.java +++ b/client/src/org/compiere/pos/SubSalesRep.java @@ -14,13 +14,18 @@ package org.compiere.pos; -import java.awt.*; -import java.awt.event.*; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; -import javax.swing.border.*; +import javax.swing.border.TitledBorder; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.swing.CButton; +import org.compiere.swing.CLabel; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** diff --git a/client/src/org/compiere/print/AReport.java b/client/src/org/compiere/print/AReport.java index fad803fd3c..e02e5d7f18 100644 --- a/client/src/org/compiere/print/AReport.java +++ b/client/src/org/compiere/print/AReport.java @@ -16,18 +16,28 @@ *****************************************************************************/ package org.compiere.print; -import java.awt.*; -import java.awt.event.*; -import java.sql.*; -import java.util.*; -import java.util.logging.*; +import java.awt.Cursor; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.logging.Level; import javax.sql.RowSet; -import javax.swing.*; -import org.compiere.apps.*; -import org.compiere.model.*; +import javax.swing.JComponent; +import javax.swing.JPopupMenu; + +import org.compiere.apps.ADialog; +import org.compiere.apps.ProcessCtl; +import org.compiere.model.MQuery; +import org.compiere.model.MRole; +import org.compiere.model.MTable; +import org.compiere.model.PrintInfo; import org.compiere.process.ProcessInfo; -import org.compiere.util.*; +import org.compiere.util.ASyncProcess; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; /** * Application Report Launcher. diff --git a/client/src/org/compiere/print/ReportViewerProvider.java b/client/src/org/compiere/print/ReportViewerProvider.java index 2c08a29926..cd2c141671 100644 --- a/client/src/org/compiere/print/ReportViewerProvider.java +++ b/client/src/org/compiere/print/ReportViewerProvider.java @@ -16,7 +16,6 @@ *****************************************************************************/ package org.compiere.print; -import org.compiere.print.ReportEngine; /** * diff --git a/client/src/org/compiere/print/Viewer.java b/client/src/org/compiere/print/Viewer.java index 6d8e796bc6..afd05f1f51 100644 --- a/client/src/org/compiere/print/Viewer.java +++ b/client/src/org/compiere/print/Viewer.java @@ -18,20 +18,84 @@ *****************************************************************************/ package org.compiere.print; -import java.awt.*; -import java.awt.event.*; -import java.io.*; -import java.sql.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.event.*; -import org.compiere.apps.*; -import org.compiere.apps.search.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; -import org.adempiere.pdf.*; +import java.awt.BorderLayout; +import java.awt.Component; +import java.awt.Cursor; +import java.awt.Dimension; +import java.awt.Event; +import java.awt.Point; +import java.awt.Rectangle; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.awt.event.WindowEvent; +import java.awt.event.WindowStateListener; +import java.io.File; +import java.io.IOException; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.Properties; +import java.util.logging.Level; + +import javax.swing.AbstractButton; +import javax.swing.Icon; +import javax.swing.ImageIcon; +import javax.swing.JFileChooser; +import javax.swing.JFrame; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JOptionPane; +import javax.swing.JPopupMenu; +import javax.swing.JScrollPane; +import javax.swing.JSpinner; +import javax.swing.JToolBar; +import javax.swing.KeyStroke; +import javax.swing.SpinnerNumberModel; +import javax.swing.SwingUtilities; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; + +import org.adempiere.pdf.Document; +import org.compiere.apps.ADialog; +import org.compiere.apps.AEnv; +import org.compiere.apps.AMenu; +import org.compiere.apps.AWindow; +import org.compiere.apps.AWindowListener; +import org.compiere.apps.AppsAction; +import org.compiere.apps.EMailDialog; +import org.compiere.apps.StatusBar; +import org.compiere.apps.WindowMenu; +import org.compiere.apps.search.Find; +import org.compiere.model.GridField; +import org.compiere.model.MArchive; +import org.compiere.model.MClient; +import org.compiere.model.MQuery; +import org.compiere.model.MRole; +import org.compiere.model.MUser; +import org.compiere.model.PrintInfo; +import org.compiere.model.X_C_Invoice; +import org.compiere.swing.CButton; +import org.compiere.swing.CCheckBox; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CFrame; +import org.compiere.swing.CLabel; +import org.compiere.swing.CMenuItem; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogMgt; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.Env; +import org.compiere.util.ExtensionFileFilter; +import org.compiere.util.KeyNamePair; +import org.compiere.util.Language; +import org.compiere.util.Login; +import org.compiere.util.Msg; +import org.compiere.util.NamePair; +import org.compiere.util.ValueNamePair; /** * Print View Frame