From 3cd72886865af949b134c80cab8afba563d89ed1 Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Tue, 23 Dec 2008 06:03:49 +0000 Subject: [PATCH] organize imports --- .../org/compiere/apps/form/ArchiveViewer.java | 49 ++++++++++---- .../src/org/compiere/apps/form/FormFrame.java | 2 +- .../compiere/apps/form/VAttributeGrid.java | 61 ++++++++++++----- .../src/org/compiere/apps/form/VBOMDrop.java | 52 ++++++++++---- .../src/org/compiere/apps/form/VCharge.java | 49 ++++++++++---- .../org/compiere/apps/form/VFileImport.java | 51 ++++++++++---- client/src/org/compiere/apps/form/VMatch.java | 67 ++++++++++++++----- .../src/org/compiere/apps/form/VPayPrint.java | 50 ++++++++++---- .../org/compiere/apps/form/VSQLProcess.java | 26 ++++--- client/src/org/compiere/apps/form/VSetup.java | 43 ++++++++---- .../org/compiere/apps/form/VTrxMaterial.java | 54 +++++++++++---- 11 files changed, 374 insertions(+), 130 deletions(-) diff --git a/client/src/org/compiere/apps/form/ArchiveViewer.java b/client/src/org/compiere/apps/form/ArchiveViewer.java index d98d716527..5a0384adb6 100644 --- a/client/src/org/compiere/apps/form/ArchiveViewer.java +++ b/client/src/org/compiere/apps/form/ArchiveViewer.java @@ -16,22 +16,45 @@ *****************************************************************************/ package org.compiere.apps.form; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.io.*; -import java.sql.*; -import java.util.logging.*; +import java.awt.BorderLayout; +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 java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; +import java.beans.VetoableChangeListener; +import java.io.InputStream; +import java.sql.Timestamp; +import java.util.logging.Level; import javax.swing.JSplitPane; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; -import org.adempiere.pdf.*; -import org.adempiere.pdf.viewer.*; +import org.adempiere.pdf.Document; +import org.adempiere.pdf.viewer.PDFViewerBean; +import org.compiere.apps.ConfirmPanel; +import org.compiere.grid.ed.VDate; +import org.compiere.grid.ed.VLookup; +import org.compiere.grid.ed.VString; +import org.compiere.grid.ed.VText; +import org.compiere.model.MArchive; +import org.compiere.model.MBPartner; +import org.compiere.model.MRole; +import org.compiere.swing.CButton; +import org.compiere.swing.CCheckBox; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CTabbedPane; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; +import org.compiere.util.Msg; +import org.compiere.util.TimeUtil; /** diff --git a/client/src/org/compiere/apps/form/FormFrame.java b/client/src/org/compiere/apps/form/FormFrame.java index 3be0316707..1fd1270b8f 100644 --- a/client/src/org/compiere/apps/form/FormFrame.java +++ b/client/src/org/compiere/apps/form/FormFrame.java @@ -39,12 +39,12 @@ import org.compiere.apps.Help; import org.compiere.apps.WindowMenu; import org.compiere.model.MRole; import org.compiere.model.MUser; +import org.compiere.process.ProcessInfo; import org.compiere.swing.CFrame; import org.compiere.util.CLogger; import org.compiere.util.DB; import org.compiere.util.Env; import org.compiere.util.Trace; -import org.compiere.process.ProcessInfo; /** diff --git a/client/src/org/compiere/apps/form/VAttributeGrid.java b/client/src/org/compiere/apps/form/VAttributeGrid.java index acbdeeb997..ffc6facc5f 100644 --- a/client/src/org/compiere/apps/form/VAttributeGrid.java +++ b/client/src/org/compiere/apps/form/VAttributeGrid.java @@ -16,21 +16,52 @@ *****************************************************************************/ package org.compiere.apps.form; -import java.awt.*; -import java.awt.event.*; -import java.math.*; -import java.sql.*; -import java.text.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.event.*; -import org.compiere.*; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Dimension; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.GridLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.math.BigDecimal; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.text.DecimalFormat; +import java.util.Vector; +import java.util.logging.Level; + +import javax.swing.BorderFactory; +import javax.swing.BoxLayout; +import javax.swing.JLabel; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; + +import org.compiere.Adempiere; +import org.compiere.apps.AEnv; +import org.compiere.apps.ALayout; +import org.compiere.apps.ALayoutConstraint; +import org.compiere.apps.ConfirmPanel; +import org.compiere.grid.ed.VComboBox; +import org.compiere.model.MAttribute; +import org.compiere.model.MAttributeValue; +import org.compiere.model.MProduct; +import org.compiere.model.MProductPrice; +import org.compiere.model.MRole; +import org.compiere.model.MStorage; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CScrollPane; +import org.compiere.swing.CTabbedPane; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; +import org.compiere.util.Msg; /** diff --git a/client/src/org/compiere/apps/form/VBOMDrop.java b/client/src/org/compiere/apps/form/VBOMDrop.java index 06fbd1b360..119447ab7e 100644 --- a/client/src/org/compiere/apps/form/VBOMDrop.java +++ b/client/src/org/compiere/apps/form/VBOMDrop.java @@ -16,18 +16,46 @@ *****************************************************************************/ package org.compiere.apps.form; -import java.awt.*; -import java.awt.event.*; -import java.math.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.border.*; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Dimension; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.Iterator; +import java.util.logging.Level; + +import javax.swing.ButtonGroup; +import javax.swing.JCheckBox; +import javax.swing.JRadioButton; +import javax.swing.JToggleButton; +import javax.swing.border.TitledBorder; + +import org.compiere.apps.ALayout; +import org.compiere.apps.ALayoutConstraint; +import org.compiere.apps.ConfirmPanel; +import org.compiere.grid.ed.VNumber; +import org.compiere.model.MInvoice; +import org.compiere.model.MInvoiceLine; +import org.compiere.model.MOrder; +import org.compiere.model.MOrderLine; +import org.compiere.model.MProduct; +import org.compiere.model.MProductBOM; +import org.compiere.model.MProject; +import org.compiere.model.MProjectLine; +import org.compiere.model.MRole; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CScrollPane; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; +import org.compiere.util.Msg; /** * Drop BOM diff --git a/client/src/org/compiere/apps/form/VCharge.java b/client/src/org/compiere/apps/form/VCharge.java index 5707a7c507..b1502ed1c1 100644 --- a/client/src/org/compiere/apps/form/VCharge.java +++ b/client/src/org/compiere/apps/form/VCharge.java @@ -16,22 +16,43 @@ *****************************************************************************/ package org.compiere.apps.form; -import java.awt.*; -import java.awt.event.*; -import java.sql.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.border.*; -import javax.swing.table.*; +import java.awt.BorderLayout; +import java.awt.FlowLayout; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.Vector; +import java.util.logging.Level; + +import javax.swing.JButton; +import javax.swing.JCheckBox; +import javax.swing.JLabel; +import javax.swing.JScrollPane; +import javax.swing.JTextField; +import javax.swing.border.TitledBorder; +import javax.swing.table.DefaultTableModel; +import javax.swing.table.TableModel; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.minigrid.*; -import org.compiere.model.*; -import org.compiere.plaf.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ADialog; +import org.compiere.apps.ConfirmPanel; +import org.compiere.minigrid.MiniTable; +import org.compiere.model.MAccount; +import org.compiere.model.MAcctSchema; +import org.compiere.model.MCharge; +import org.compiere.model.MElementValue; +import org.compiere.plaf.CompiereColor; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; +import org.compiere.util.Msg; /** * Create Charge from Accounts diff --git a/client/src/org/compiere/apps/form/VFileImport.java b/client/src/org/compiere/apps/form/VFileImport.java index 76a03a413e..31d65ddc8e 100644 --- a/client/src/org/compiere/apps/form/VFileImport.java +++ b/client/src/org/compiere/apps/form/VFileImport.java @@ -16,20 +16,47 @@ *****************************************************************************/ package org.compiere.apps.form; -import java.awt.*; -import java.awt.event.*; -import java.io.*; +import java.awt.BorderLayout; +import java.awt.Cursor; +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 java.io.BufferedReader; +import java.io.File; +import java.io.FileInputStream; +import java.io.InputStreamReader; import java.nio.charset.Charset; -import java.sql.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import org.compiere.apps.*; -import org.compiere.impexp.*; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.logging.Level; + +import javax.swing.BorderFactory; +import javax.swing.JButton; +import javax.swing.JComboBox; +import javax.swing.JFileChooser; +import javax.swing.JLabel; +import javax.swing.JScrollPane; +import javax.swing.JTextArea; +import javax.swing.JTextField; + +import org.compiere.apps.ADialog; +import org.compiere.apps.ConfirmPanel; +import org.compiere.impexp.ImpFormat; +import org.compiere.impexp.ImpFormatRow; import org.compiere.model.MRole; -import org.compiere.plaf.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.plaf.CompiereColor; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.Env; +import org.compiere.util.Ini; +import org.compiere.util.Msg; /** diff --git a/client/src/org/compiere/apps/form/VMatch.java b/client/src/org/compiere/apps/form/VMatch.java index 0c23103bb9..c63ed62219 100644 --- a/client/src/org/compiere/apps/form/VMatch.java +++ b/client/src/org/compiere/apps/form/VMatch.java @@ -16,22 +16,57 @@ *****************************************************************************/ package org.compiere.apps.form; -import java.awt.*; -import java.awt.event.*; -import java.math.*; -import java.sql.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.border.*; -import javax.swing.event.*; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.minigrid.*; -import org.compiere.model.*; -import org.compiere.plaf.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Cursor; +import java.awt.Dimension; +import java.awt.FlowLayout; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; +import java.sql.Timestamp; +import java.util.Vector; +import java.util.logging.Level; + +import javax.swing.DefaultComboBoxModel; +import javax.swing.JCheckBox; +import javax.swing.JScrollPane; +import javax.swing.border.TitledBorder; +import javax.swing.event.ListSelectionEvent; +import javax.swing.event.ListSelectionListener; +import javax.swing.event.TableModelEvent; +import javax.swing.event.TableModelListener; + +import org.compiere.apps.StatusBar; +import org.compiere.grid.ed.VDate; +import org.compiere.grid.ed.VLookup; +import org.compiere.grid.ed.VNumber; +import org.compiere.minigrid.ColumnInfo; +import org.compiere.minigrid.IDColumn; +import org.compiere.minigrid.MiniTable; +import org.compiere.model.MInOutLine; +import org.compiere.model.MInvoiceLine; +import org.compiere.model.MMatchInv; +import org.compiere.model.MMatchPO; +import org.compiere.model.MOrderLine; +import org.compiere.model.MRole; +import org.compiere.model.MStorage; +import org.compiere.plaf.CompiereColor; +import org.compiere.swing.CButton; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; +import org.compiere.util.Msg; /** * Manual Matching diff --git a/client/src/org/compiere/apps/form/VPayPrint.java b/client/src/org/compiere/apps/form/VPayPrint.java index fe9fc23fc8..06c8997860 100644 --- a/client/src/org/compiere/apps/form/VPayPrint.java +++ b/client/src/org/compiere/apps/form/VPayPrint.java @@ -16,18 +16,44 @@ *****************************************************************************/ package org.compiere.apps.form; -import java.awt.*; -import java.awt.event.*; -import java.sql.*; -import java.util.logging.*; -import javax.swing.*; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.model.*; -import org.compiere.plaf.*; -import org.compiere.print.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Cursor; +import java.awt.FlowLayout; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.logging.Level; + +import javax.swing.JButton; +import javax.swing.JFileChooser; + +import org.compiere.apps.ADialog; +import org.compiere.apps.ConfirmPanel; +import org.compiere.grid.ed.VNumber; +import org.compiere.model.MLookupFactory; +import org.compiere.model.MLookupInfo; +import org.compiere.model.MPaySelectionCheck; +import org.compiere.model.MPaymentBatch; +import org.compiere.plaf.CompiereColor; +import org.compiere.print.ReportCtl; +import org.compiere.print.ReportEngine; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; +import org.compiere.util.Ini; +import org.compiere.util.KeyNamePair; +import org.compiere.util.Language; +import org.compiere.util.Msg; +import org.compiere.util.ValueNamePair; /** * Payment Print & Export diff --git a/client/src/org/compiere/apps/form/VSQLProcess.java b/client/src/org/compiere/apps/form/VSQLProcess.java index 087a533e53..38e362b09e 100644 --- a/client/src/org/compiere/apps/form/VSQLProcess.java +++ b/client/src/org/compiere/apps/form/VSQLProcess.java @@ -16,16 +16,24 @@ *****************************************************************************/ package org.compiere.apps.form; -import java.awt.*; -import java.awt.event.*; -import java.sql.*; -import java.util.*; -import java.util.logging.*; +import java.awt.BorderLayout; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.sql.Connection; +import java.sql.SQLException; +import java.sql.Statement; +import java.util.StringTokenizer; +import java.util.logging.Level; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ConfirmPanel; +import org.compiere.grid.ed.VText; +import org.compiere.swing.CButton; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CTextArea; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.Env; /** * Process SQL Commands diff --git a/client/src/org/compiere/apps/form/VSetup.java b/client/src/org/compiere/apps/form/VSetup.java index d1ba5901e8..866a57951b 100644 --- a/client/src/org/compiere/apps/form/VSetup.java +++ b/client/src/org/compiere/apps/form/VSetup.java @@ -16,22 +16,41 @@ *****************************************************************************/ package org.compiere.apps.form; -import java.awt.*; -import java.awt.event.*; -import java.io.*; -import java.sql.*; +import java.awt.BorderLayout; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.io.File; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; import java.util.Currency; import java.util.Locale; -import java.util.logging.*; -import javax.swing.*; +import java.util.logging.Level; + +import javax.swing.JButton; +import javax.swing.JCheckBox; +import javax.swing.JComboBox; +import javax.swing.JFileChooser; +import javax.swing.JLabel; +import javax.swing.JScrollPane; +import javax.swing.JTextField; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.plaf.*; -import org.compiere.print.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ADialog; +import org.compiere.apps.ConfirmPanel; +import org.compiere.model.MSetup; +import org.compiere.plaf.CompiereColor; +import org.compiere.print.PrintUtil; +import org.compiere.swing.CPanel; +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.Msg; /** * Setup System diff --git a/client/src/org/compiere/apps/form/VTrxMaterial.java b/client/src/org/compiere/apps/form/VTrxMaterial.java index 3033fa1f32..c74469a482 100644 --- a/client/src/org/compiere/apps/form/VTrxMaterial.java +++ b/client/src/org/compiere/apps/form/VTrxMaterial.java @@ -16,20 +16,46 @@ *****************************************************************************/ package org.compiere.apps.form; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.sql.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import org.compiere.apps.*; -import org.compiere.grid.*; -import org.compiere.grid.ed.*; -import org.compiere.model.*; -import org.compiere.plaf.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Cursor; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.beans.PropertyChangeEvent; +import java.beans.VetoableChangeListener; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; + +import javax.swing.JLabel; + +import org.compiere.apps.AEnv; +import org.compiere.apps.AWindow; +import org.compiere.apps.ConfirmPanel; +import org.compiere.apps.StatusBar; +import org.compiere.grid.GridController; +import org.compiere.grid.ed.VDate; +import org.compiere.grid.ed.VLocator; +import org.compiere.grid.ed.VLookup; +import org.compiere.model.GridTab; +import org.compiere.model.GridWindow; +import org.compiere.model.GridWindowVO; +import org.compiere.model.MLocatorLookup; +import org.compiere.model.MLookup; +import org.compiere.model.MLookupFactory; +import org.compiere.model.MQuery; +import org.compiere.plaf.CompiereColor; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Material Transaction History