From 66bccf3621340677a60461a8a00770650d166804 Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Mon, 22 Dec 2008 00:43:17 +0000 Subject: [PATCH] organize imports --- client/src/org/compiere/grid/APanelTab.java | 2 +- .../src/org/compiere/grid/GridController.java | 74 +++++++++++++---- .../org/compiere/grid/GridSynchronizer.java | 2 +- .../org/compiere/grid/RecordAccessDialog.java | 37 ++++++--- client/src/org/compiere/grid/VCreateFrom.java | 2 +- .../org/compiere/grid/VCreateFromInvoice.java | 37 ++++++--- .../compiere/grid/VCreateFromStatement.java | 42 ++++++---- .../org/compiere/grid/VOnlyCurrentDays.java | 24 ++++-- client/src/org/compiere/grid/VPayment.java | 66 ++++++++++++---- client/src/org/compiere/grid/VTabbedPane.java | 22 ++++-- client/src/org/compiere/grid/XLookup.java | 11 ++- .../src/org/compiere/grid/ed/Calculator.java | 48 ++++++++--- client/src/org/compiere/grid/ed/Calendar.java | 54 ++++++++++--- .../grid/ed/ComboSelectionManager.java | 6 +- client/src/org/compiere/grid/ed/Editor.java | 45 ++++++++--- .../src/org/compiere/grid/ed/HTMLEditor.java | 47 ++++++++--- client/src/org/compiere/grid/ed/MDocDate.java | 17 ++-- .../src/org/compiere/grid/ed/MDocString.java | 11 ++- client/src/org/compiere/grid/ed/MDocTime.java | 10 ++- client/src/org/compiere/grid/ed/VAccount.java | 31 +++++--- .../org/compiere/grid/ed/VAccountDialog.java | 64 ++++++++++++--- .../src/org/compiere/grid/ed/VAssignment.java | 43 +++++++--- .../compiere/grid/ed/VAssignmentDialog.java | 49 +++++++++--- .../src/org/compiere/grid/ed/VBPartner.java | 37 +++++++-- client/src/org/compiere/grid/ed/VBinary.java | 22 ++++-- client/src/org/compiere/grid/ed/VButton.java | 28 ++++--- .../src/org/compiere/grid/ed/VCellEditor.java | 25 ++++-- .../src/org/compiere/grid/ed/VCheckBox.java | 15 ++-- client/src/org/compiere/grid/ed/VColor.java | 31 +++++--- .../src/org/compiere/grid/ed/VComboBox.java | 14 ++-- client/src/org/compiere/grid/ed/VDate.java | 47 ++++++++--- client/src/org/compiere/grid/ed/VEditor.java | 15 ++-- client/src/org/compiere/grid/ed/VFile.java | 30 +++++-- .../org/compiere/grid/ed/VHeaderRenderer.java | 21 +++-- client/src/org/compiere/grid/ed/VImage.java | 17 ++-- .../org/compiere/grid/ed/VImageDialog.java | 35 +++++--- client/src/org/compiere/grid/ed/VLine.java | 10 ++- .../src/org/compiere/grid/ed/VLocation.java | 34 ++++++-- .../org/compiere/grid/ed/VLocationDialog.java | 46 ++++++++--- .../org/compiere/grid/ed/VLocatorDialog.java | 41 +++++++--- client/src/org/compiere/grid/ed/VMemo.java | 31 ++++++-- client/src/org/compiere/grid/ed/VNumber.java | 48 ++++++++--- .../src/org/compiere/grid/ed/VOvrCaret.java | 11 ++- .../src/org/compiere/grid/ed/VPassword.java | 12 ++- .../org/compiere/grid/ed/VRowIDEditor.java | 16 ++-- .../org/compiere/grid/ed/VRowIDRenderer.java | 9 ++- client/src/org/compiere/grid/ed/VString.java | 30 +++++-- .../org/compiere/grid/ed/VStringBeanInfo.java | 6 +- client/src/org/compiere/grid/ed/VText.java | 26 ++++-- .../org/compiere/grid/ed/VTextBeanInfo.java | 6 +- .../src/org/compiere/grid/ed/VTextLong.java | 27 +++++-- client/src/org/compiere/grid/ed/VURL.java | 39 ++++++--- .../org/compiere/grid/ed/ValuePreference.java | 47 ++++++++--- .../compiere/grid/tree/VTreeCellRenderer.java | 10 ++- .../org/compiere/grid/tree/VTreePanel.java | 79 ++++++++++++++++--- 55 files changed, 1206 insertions(+), 403 deletions(-) diff --git a/client/src/org/compiere/grid/APanelTab.java b/client/src/org/compiere/grid/APanelTab.java index 4a93c22c82..7eafc048c4 100644 --- a/client/src/org/compiere/grid/APanelTab.java +++ b/client/src/org/compiere/grid/APanelTab.java @@ -16,7 +16,7 @@ *****************************************************************************/ package org.compiere.grid; -import org.compiere.apps.*; +import org.compiere.apps.APanel; /** * Application Panel Tab Interface. diff --git a/client/src/org/compiere/grid/GridController.java b/client/src/org/compiere/grid/GridController.java index 01ec3b526d..e43f8fa7e9 100644 --- a/client/src/org/compiere/grid/GridController.java +++ b/client/src/org/compiere/grid/GridController.java @@ -18,23 +18,69 @@ *****************************************************************************/ package org.compiere.grid; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.event.*; -import javax.swing.table.*; +import java.awt.AWTEvent; +import java.awt.BorderLayout; +import java.awt.CardLayout; +import java.awt.Component; +import java.awt.Dimension; +import java.awt.KeyboardFocusManager; +import java.awt.event.KeyEvent; +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyChangeListener; +import java.beans.PropertyVetoException; +import java.beans.VetoableChangeListener; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.Properties; +import java.util.Set; +import java.util.logging.Level; + +import javax.swing.BorderFactory; +import javax.swing.JButton; +import javax.swing.JScrollPane; +import javax.swing.JSplitPane; +import javax.swing.KeyStroke; +import javax.swing.event.ListSelectionEvent; +import javax.swing.event.ListSelectionListener; +import javax.swing.table.DefaultTableModel; +import javax.swing.table.TableColumn; +import javax.swing.table.TableColumnModel; import org.adempiere.plaf.AdempiereLookAndFeel; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.grid.tree.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ADialog; +import org.compiere.apps.APanel; +import org.compiere.apps.AppsAction; +import org.compiere.grid.ed.VCellEditor; +import org.compiere.grid.ed.VCellRenderer; +import org.compiere.grid.ed.VEditor; +import org.compiere.grid.ed.VEditorFactory; +import org.compiere.grid.ed.VHeaderRenderer; +import org.compiere.grid.ed.VManagedEditor; +import org.compiere.grid.ed.VRowIDEditor; +import org.compiere.grid.ed.VRowIDRenderer; +import org.compiere.grid.ed.VString; +import org.compiere.grid.tree.VTreePanel; +import org.compiere.model.DataStatusEvent; +import org.compiere.model.DataStatusListener; +import org.compiere.model.GridField; +import org.compiere.model.GridTab; +import org.compiere.model.GridTable; +import org.compiere.model.GridWindow; +import org.compiere.model.MTree; +import org.compiere.model.MTreeNode; +import org.compiere.swing.CPanel; +import org.compiere.swing.CScrollPane; +import org.compiere.swing.CollapsiblePanel; +import org.compiere.swing.TableCellNone; +import org.compiere.util.CLogMgt; +import org.compiere.util.CLogger; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; +import org.compiere.util.Evaluatee; +import org.compiere.util.Trx; /** * The Grid Controller is the panel for single and multi-row presentation diff --git a/client/src/org/compiere/grid/GridSynchronizer.java b/client/src/org/compiere/grid/GridSynchronizer.java index e92d8430b3..6b50b15f44 100644 --- a/client/src/org/compiere/grid/GridSynchronizer.java +++ b/client/src/org/compiere/grid/GridSynchronizer.java @@ -17,9 +17,9 @@ import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import org.compiere.model.GridWindow; +import org.compiere.model.MRole; import org.compiere.model.StateChangeEvent; import org.compiere.model.StateChangeListener; -import org.compiere.model.MRole; /** * diff --git a/client/src/org/compiere/grid/RecordAccessDialog.java b/client/src/org/compiere/grid/RecordAccessDialog.java index 54517ec729..4414716167 100644 --- a/client/src/org/compiere/grid/RecordAccessDialog.java +++ b/client/src/org/compiere/grid/RecordAccessDialog.java @@ -16,17 +16,34 @@ *****************************************************************************/ package org.compiere.grid; -import javax.swing.*; -import java.awt.*; -import java.awt.event.*; -import java.sql.*; -import java.util.*; +import java.awt.BorderLayout; +import java.awt.Dimension; +import java.awt.event.ActionEvent; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.ArrayList; +import java.util.logging.Level; -import org.compiere.swing.*; -import org.compiere.apps.*; -import org.compiere.model.*; -import java.util.logging.*; -import org.compiere.util.*; +import javax.swing.JFrame; +import javax.swing.JLabel; + +import org.compiere.apps.AEnv; +import org.compiere.apps.ALayout; +import org.compiere.apps.ALayoutConstraint; +import org.compiere.apps.ConfirmPanel; +import org.compiere.model.MRecordAccess; +import org.compiere.model.MRole; +import org.compiere.swing.CButton; +import org.compiere.swing.CCheckBox; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CDialog; +import org.compiere.swing.CLabel; +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; /** diff --git a/client/src/org/compiere/grid/VCreateFrom.java b/client/src/org/compiere/grid/VCreateFrom.java index a4e0973db0..e352800520 100644 --- a/client/src/org/compiere/grid/VCreateFrom.java +++ b/client/src/org/compiere/grid/VCreateFrom.java @@ -34,8 +34,8 @@ import java.util.logging.Level; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JLabel; -import javax.swing.JTextField; import javax.swing.JScrollPane; +import javax.swing.JTextField; import javax.swing.KeyStroke; import javax.swing.event.TableModelEvent; import javax.swing.event.TableModelListener; diff --git a/client/src/org/compiere/grid/VCreateFromInvoice.java b/client/src/org/compiere/grid/VCreateFromInvoice.java index 085fc48fad..eb84be718d 100644 --- a/client/src/org/compiere/grid/VCreateFromInvoice.java +++ b/client/src/org/compiere/grid/VCreateFromInvoice.java @@ -16,15 +16,34 @@ *****************************************************************************/ package org.compiere.grid; -import java.awt.event.*; -import java.beans.*; -import java.math.*; -import java.sql.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.table.*; -import org.compiere.model.*; -import org.compiere.util.*; +import java.awt.event.ActionEvent; +import java.beans.PropertyChangeEvent; +import java.beans.VetoableChangeListener; +import java.math.BigDecimal; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.Vector; +import java.util.logging.Level; + +import javax.swing.table.DefaultTableModel; +import javax.swing.table.TableModel; + +import org.compiere.model.GridTab; +import org.compiere.model.MDocType; +import org.compiere.model.MInOut; +import org.compiere.model.MInOutLine; +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.MRMA; +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; /** * Create Invoice Transactions from PO Orders or Receipt diff --git a/client/src/org/compiere/grid/VCreateFromStatement.java b/client/src/org/compiere/grid/VCreateFromStatement.java index d9f5fc9030..a71788ccf3 100644 --- a/client/src/org/compiere/grid/VCreateFromStatement.java +++ b/client/src/org/compiere/grid/VCreateFromStatement.java @@ -16,27 +16,41 @@ *****************************************************************************/ package org.compiere.grid; -import java.beans.*; -import java.math.*; -import java.sql.*; -import java.text.*; -import java.util.*; -import java.util.logging.*; import java.awt.Cursor; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.awt.event.KeyEvent; +import java.math.BigDecimal; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Timestamp; +import java.text.DecimalFormat; +import java.util.Vector; +import java.util.logging.Level; -import javax.swing.JLabel; -import javax.swing.KeyStroke; -import javax.swing.table.*; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.model.*; +import javax.swing.table.DefaultTableModel; +import javax.swing.table.TableModel; + +import org.compiere.apps.ADialog; +import org.compiere.apps.ConfirmPanel; +import org.compiere.grid.ed.VLookup; +import org.compiere.grid.ed.VString; +import org.compiere.model.GridTab; +import org.compiere.model.MBankAccount; +import org.compiere.model.MBankStatement; +import org.compiere.model.MBankStatementLine; +import org.compiere.model.MColumn; +import org.compiere.model.MLookup; +import org.compiere.model.MLookupFactory; +import org.compiere.model.MPayment; import org.compiere.swing.CButton; import org.compiere.swing.CTextField; -import org.compiere.util.*; +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; /** * Create Transactions for Bank Statements * diff --git a/client/src/org/compiere/grid/VOnlyCurrentDays.java b/client/src/org/compiere/grid/VOnlyCurrentDays.java index 63c3d0f399..2ab51bef58 100644 --- a/client/src/org/compiere/grid/VOnlyCurrentDays.java +++ b/client/src/org/compiere/grid/VOnlyCurrentDays.java @@ -16,12 +16,24 @@ *****************************************************************************/ package org.compiere.grid; -import java.awt.*; -import java.awt.event.*; -import java.util.logging.*; -import javax.swing.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Frame; +import java.awt.Insets; +import java.awt.Point; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.WindowAdapter; +import java.awt.event.WindowEvent; +import java.util.logging.Level; + +import javax.swing.WindowConstants; + +import org.compiere.swing.CButton; +import org.compiere.swing.CDialog; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Queries how many days back history is displayed as current diff --git a/client/src/org/compiere/grid/VPayment.java b/client/src/org/compiere/grid/VPayment.java index 4d54bc2671..4fb8e94cc6 100644 --- a/client/src/org/compiere/grid/VPayment.java +++ b/client/src/org/compiere/grid/VPayment.java @@ -16,22 +16,60 @@ *****************************************************************************/ package org.compiere.grid; -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 java.awt.BorderLayout; +import java.awt.CardLayout; +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.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Timestamp; +import java.text.DecimalFormat; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.Hashtable; +import java.util.logging.Level; + +import javax.swing.BorderFactory; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.grid.ed.*; -import org.compiere.model.*; -import org.compiere.process.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ADialog; +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.grid.ed.VButton; +import org.compiere.grid.ed.VDate; +import org.compiere.grid.ed.VNumber; +import org.compiere.model.GridTab; +import org.compiere.model.MCash; +import org.compiere.model.MCashLine; +import org.compiere.model.MConversionRate; +import org.compiere.model.MInvoice; +import org.compiere.model.MOrder; +import org.compiere.model.MPayment; +import org.compiere.model.MPaymentValidate; +import org.compiere.model.MRole; +import org.compiere.model.X_C_Order; +import org.compiere.process.DocAction; +import org.compiere.swing.CButton; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CDialog; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CTextField; +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; +import org.compiere.util.TimeUtil; +import org.compiere.util.ValueNamePair; /** * Display (and process) Payment Options. diff --git a/client/src/org/compiere/grid/VTabbedPane.java b/client/src/org/compiere/grid/VTabbedPane.java index 3ebb0f228d..5230fb438b 100644 --- a/client/src/org/compiere/grid/VTabbedPane.java +++ b/client/src/org/compiere/grid/VTabbedPane.java @@ -16,13 +16,21 @@ *****************************************************************************/ package org.compiere.grid; -import java.awt.*; -import java.util.*; -import javax.swing.*; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.Component; +import java.util.ArrayList; + +import javax.swing.Icon; +import javax.swing.JTabbedPane; + +import org.compiere.apps.ADialog; +import org.compiere.apps.APanel; +import org.compiere.model.DataStatusEvent; +import org.compiere.model.GridTab; +import org.compiere.swing.CTabbedPane; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Evaluator; +import org.compiere.util.Language; /** * Tabbed Pane - either Workbench or Window Tab diff --git a/client/src/org/compiere/grid/XLookup.java b/client/src/org/compiere/grid/XLookup.java index fe35b1c04c..a2a030ee55 100644 --- a/client/src/org/compiere/grid/XLookup.java +++ b/client/src/org/compiere/grid/XLookup.java @@ -16,9 +16,14 @@ *****************************************************************************/ package org.compiere.grid; -import java.util.*; -import org.compiere.model.*; -import org.compiere.util.*; +import java.util.ArrayList; +import java.util.Collections; + +import org.compiere.model.Lookup; +import org.compiere.util.DisplayType; +import org.compiere.util.KeyNamePair; +import org.compiere.util.NamePair; +import org.compiere.util.ValueNamePair; /** * Manual Lookup (Model)- loaded by the put method diff --git a/client/src/org/compiere/grid/ed/Calculator.java b/client/src/org/compiere/grid/ed/Calculator.java index 713005d791..27b977c424 100644 --- a/client/src/org/compiere/grid/ed/Calculator.java +++ b/client/src/org/compiere/grid/ed/Calculator.java @@ -16,20 +16,44 @@ *****************************************************************************/ package org.compiere.grid.ed; -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 java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Component; +import java.awt.FlowLayout; +import java.awt.Frame; +import java.awt.GridLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; +import java.text.DecimalFormat; +import java.text.ParseException; +import java.util.StringTokenizer; +import java.util.logging.Level; + +import javax.swing.BorderFactory; +import javax.swing.JButton; +import javax.swing.JComboBox; +import javax.swing.JDialog; +import javax.swing.JLabel; +import javax.swing.SwingConstants; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.swing.*; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.util.*; +import org.compiere.apps.ADialog; +import org.compiere.model.MConversionRate; +import org.compiere.swing.CDialog; +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; /** * Calculator with currency conversion diff --git a/client/src/org/compiere/grid/ed/Calendar.java b/client/src/org/compiere/grid/ed/Calendar.java index 830a076dc4..2971a5231d 100644 --- a/client/src/org/compiere/grid/ed/Calendar.java +++ b/client/src/org/compiere/grid/ed/Calendar.java @@ -16,18 +16,52 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.sql.*; -import java.text.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.event.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Frame; +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.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; +import java.awt.event.WindowEvent; +import java.sql.Time; +import java.sql.Timestamp; +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.GregorianCalendar; +import java.util.Locale; +import java.util.TimeZone; +import java.util.logging.Level; + +import javax.swing.BorderFactory; +import javax.swing.JButton; +import javax.swing.JCheckBox; +import javax.swing.JDialog; +import javax.swing.JLabel; +import javax.swing.JSpinner; +import javax.swing.SpinnerNumberModel; +import javax.swing.SwingConstants; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.swing.CButton; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CDialog; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogger; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; +import org.compiere.util.Language; +import org.compiere.util.Msg; /** * Pop up Calendar & Time diff --git a/client/src/org/compiere/grid/ed/ComboSelectionManager.java b/client/src/org/compiere/grid/ed/ComboSelectionManager.java index 448335bfd2..6096b053e4 100644 --- a/client/src/org/compiere/grid/ed/ComboSelectionManager.java +++ b/client/src/org/compiere/grid/ed/ComboSelectionManager.java @@ -16,8 +16,10 @@ *****************************************************************************/ package org.compiere.grid.ed; -import javax.swing.*; -import org.compiere.util.*; +import javax.swing.ComboBoxModel; +import javax.swing.JComboBox; + +import org.compiere.util.CLogger; /** * ComboBox Selection Manager for AuroReduction diff --git a/client/src/org/compiere/grid/ed/Editor.java b/client/src/org/compiere/grid/ed/Editor.java index d59ccc4bbc..28d41dbe86 100644 --- a/client/src/org/compiere/grid/ed/Editor.java +++ b/client/src/org/compiere/grid/ed/Editor.java @@ -16,17 +16,44 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.io.*; -import javax.swing.*; -import javax.swing.event.*; +import java.awt.BorderLayout; +import java.awt.Container; +import java.awt.Dimension; +import java.awt.Frame; +import java.awt.Toolkit; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.io.BufferedWriter; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.InputStreamReader; +import java.io.OutputStreamWriter; +import java.io.UnsupportedEncodingException; +import java.util.logging.Level; + +import javax.swing.JDialog; +import javax.swing.JFileChooser; +import javax.swing.JFrame; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JTabbedPane; +import javax.swing.event.ChangeEvent; +import javax.swing.event.ChangeListener; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.swing.*; -import java.util.logging.*; -import org.compiere.util.*; +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.apps.StatusBar; +import org.compiere.swing.CDialog; +import org.compiere.swing.CMenuItem; +import org.compiere.swing.CPanel; +import org.compiere.swing.CTextArea; +import org.compiere.swing.CTextPane; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Editor for Text (textArea) with HTML (textPane) View diff --git a/client/src/org/compiere/grid/ed/HTMLEditor.java b/client/src/org/compiere/grid/ed/HTMLEditor.java index adf090c0a7..49f1746199 100644 --- a/client/src/org/compiere/grid/ed/HTMLEditor.java +++ b/client/src/org/compiere/grid/ed/HTMLEditor.java @@ -16,18 +16,41 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.io.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.text.*; -import javax.swing.text.html.*; -import org.compiere.*; -import org.compiere.apps.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Dialog; +import java.awt.Dimension; +import java.awt.Frame; +import java.awt.Window; +import java.awt.event.ActionEvent; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.InputStreamReader; +import java.io.OutputStreamWriter; +import java.util.Hashtable; +import java.util.logging.Level; + +import javax.swing.Action; +import javax.swing.JButton; +import javax.swing.JFileChooser; +import javax.swing.JFrame; +import javax.swing.JMenu; +import javax.swing.JMenuBar; +import javax.swing.JMenuItem; +import javax.swing.JScrollPane; +import javax.swing.JTextPane; +import javax.swing.JToolBar; +import javax.swing.text.EditorKit; +import javax.swing.text.html.HTML; +import javax.swing.text.html.HTMLEditorKit; + +import org.compiere.Adempiere; +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.swing.CDialog; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * HTML Editor. diff --git a/client/src/org/compiere/grid/ed/MDocDate.java b/client/src/org/compiere/grid/ed/MDocDate.java index cbb509dbaf..ce16b1a2a2 100644 --- a/client/src/org/compiere/grid/ed/MDocDate.java +++ b/client/src/org/compiere/grid/ed/MDocDate.java @@ -16,15 +16,20 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.sql.*; -import java.text.*; +import java.sql.Timestamp; +import java.text.SimpleDateFormat; import java.util.Date; -import javax.swing.event.*; -import javax.swing.text.*; -import java.util.logging.*; +import java.util.logging.Level; + +import javax.swing.event.CaretEvent; +import javax.swing.event.CaretListener; +import javax.swing.text.AttributeSet; +import javax.swing.text.BadLocationException; +import javax.swing.text.JTextComponent; +import javax.swing.text.PlainDocument; import org.compiere.apps.ADialog; -import org.compiere.util.*; +import org.compiere.util.CLogger; /** * Date Model. diff --git a/client/src/org/compiere/grid/ed/MDocString.java b/client/src/org/compiere/grid/ed/MDocString.java index 54faf9f70e..92ed2c242d 100644 --- a/client/src/org/compiere/grid/ed/MDocString.java +++ b/client/src/org/compiere/grid/ed/MDocString.java @@ -16,9 +16,14 @@ *****************************************************************************/ package org.compiere.grid.ed; -import javax.swing.event.*; -import javax.swing.text.*; -import org.compiere.util.*; +import javax.swing.event.CaretEvent; +import javax.swing.event.CaretListener; +import javax.swing.text.AttributeSet; +import javax.swing.text.BadLocationException; +import javax.swing.text.JTextComponent; +import javax.swing.text.PlainDocument; + +import org.compiere.util.CLogger; /** * String Input Verification. diff --git a/client/src/org/compiere/grid/ed/MDocTime.java b/client/src/org/compiere/grid/ed/MDocTime.java index 84edc92960..8aa21d4c79 100644 --- a/client/src/org/compiere/grid/ed/MDocTime.java +++ b/client/src/org/compiere/grid/ed/MDocTime.java @@ -16,9 +16,13 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.util.logging.*; -import javax.swing.text.*; -import org.compiere.util.*; +import java.util.logging.Level; + +import javax.swing.text.AttributeSet; +import javax.swing.text.BadLocationException; +import javax.swing.text.PlainDocument; + +import org.compiere.util.CLogger; /** * Time Model. diff --git a/client/src/org/compiere/grid/ed/VAccount.java b/client/src/org/compiere/grid/ed/VAccount.java index 310d077bb5..3ab03b3146 100644 --- a/client/src/org/compiere/grid/ed/VAccount.java +++ b/client/src/org/compiere/grid/ed/VAccount.java @@ -16,17 +16,30 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.sql.*; -import javax.swing.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Cursor; +import java.awt.Dimension; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.util.logging.Level; + +import javax.swing.JComponent; +import javax.swing.LookAndFeel; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.model.*; -import org.compiere.swing.*; -import java.util.logging.*; -import org.compiere.util.*; +import org.compiere.model.MAccountLookup; +import org.compiere.model.MRole; +import org.compiere.swing.CButton; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.Env; /** * Account Control - Displays ValidCombination and launches Dialog diff --git a/client/src/org/compiere/grid/ed/VAccountDialog.java b/client/src/org/compiere/grid/ed/VAccountDialog.java index 4989ed45b6..4aa8aa9d78 100644 --- a/client/src/org/compiere/grid/ed/VAccountDialog.java +++ b/client/src/org/compiere/grid/ed/VAccountDialog.java @@ -16,18 +16,58 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.sql.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.border.*; -import org.compiere.apps.*; -import org.compiere.grid.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Component; +import java.awt.Cursor; +import java.awt.Dimension; +import java.awt.Font; +import java.awt.Frame; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; +import java.beans.VetoableChangeListener; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.logging.Level; + +import javax.swing.BorderFactory; +import javax.swing.ImageIcon; +import javax.swing.JDialog; +import javax.swing.JLabel; +import javax.swing.JTable; +import javax.swing.JToolBar; +import javax.swing.border.TitledBorder; + +import org.compiere.apps.ADialog; +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.apps.StatusBar; +import org.compiere.grid.GridController; +import org.compiere.model.DataStatusEvent; +import org.compiere.model.DataStatusListener; +import org.compiere.model.GridField; +import org.compiere.model.GridTab; +import org.compiere.model.GridWindow; +import org.compiere.model.GridWindowVO; +import org.compiere.model.MAccount; +import org.compiere.model.MAccountLookup; +import org.compiere.model.MAcctSchema; +import org.compiere.model.MAcctSchemaElement; +import org.compiere.model.MQuery; +import org.compiere.swing.CButton; +import org.compiere.swing.CDialog; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Dialog to enter Account Info diff --git a/client/src/org/compiere/grid/ed/VAssignment.java b/client/src/org/compiere/grid/ed/VAssignment.java index 72257ccb0d..28c8eb40b9 100644 --- a/client/src/org/compiere/grid/ed/VAssignment.java +++ b/client/src/org/compiere/grid/ed/VAssignment.java @@ -16,19 +16,40 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.sql.*; -import java.text.*; -import javax.swing.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Component; +import java.awt.Dimension; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.text.DateFormat; +import java.text.NumberFormat; +import java.util.logging.Level; + +import javax.swing.JComponent; +import javax.swing.JPopupMenu; +import javax.swing.JTextField; +import javax.swing.LookAndFeel; +import javax.swing.SwingUtilities; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.search.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import java.util.logging.*; -import org.compiere.util.*; +import org.compiere.apps.search.InfoSchedule; +import org.compiere.model.GridField; +import org.compiere.model.MResourceAssignment; +import org.compiere.swing.CButton; +import org.compiere.swing.CMenuItem; +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; /** * Resource Assignment Entry diff --git a/client/src/org/compiere/grid/ed/VAssignmentDialog.java b/client/src/org/compiere/grid/ed/VAssignmentDialog.java index bd55f09b5f..5494b6b16b 100644 --- a/client/src/org/compiere/grid/ed/VAssignmentDialog.java +++ b/client/src/org/compiere/grid/ed/VAssignmentDialog.java @@ -16,18 +16,43 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.math.*; -import java.sql.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import org.compiere.apps.*; -import org.compiere.apps.search.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Frame; +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.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Timestamp; +import java.util.Arrays; +import java.util.HashMap; +import java.util.logging.Level; + +import javax.swing.JButton; +import javax.swing.WindowConstants; + +import org.compiere.apps.ADialog; +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.apps.search.InfoSchedule; +import org.compiere.model.MResourceAssignment; +import org.compiere.model.MRole; +import org.compiere.model.MUOMConversion; +import org.compiere.swing.CDialog; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CTextField; +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; +import org.compiere.util.TimeUtil; /** * Resource Assignment Dialog diff --git a/client/src/org/compiere/grid/ed/VBPartner.java b/client/src/org/compiere/grid/ed/VBPartner.java index edf6a4c755..712aa1ed4a 100644 --- a/client/src/org/compiere/grid/ed/VBPartner.java +++ b/client/src/org/compiere/grid/ed/VBPartner.java @@ -16,16 +16,37 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.util.logging.*; -import javax.swing.*; +import java.awt.BorderLayout; +import java.awt.Frame; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.util.logging.Level; + +import javax.swing.Box; +import javax.swing.JComboBox; +import javax.swing.JComponent; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ADialog; +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.model.MBPartner; +import org.compiere.model.MBPartnerLocation; +import org.compiere.model.MLocation; +import org.compiere.model.MLocationLookup; +import org.compiere.model.MRole; +import org.compiere.model.MUser; +import org.compiere.swing.CDialog; +import org.compiere.swing.CLabel; +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; /** * Business Partner Editor. diff --git a/client/src/org/compiere/grid/ed/VBinary.java b/client/src/org/compiere/grid/ed/VBinary.java index 17426c420f..099c940063 100644 --- a/client/src/org/compiere/grid/ed/VBinary.java +++ b/client/src/org/compiere/grid/ed/VBinary.java @@ -16,13 +16,21 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.io.*; -import java.util.logging.*; -import javax.swing.*; -import org.compiere.util.*; +import java.awt.Color; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.util.logging.Level; + +import javax.swing.JButton; +import javax.swing.JFileChooser; + +import org.compiere.util.CLogger; /** * Binary Editor. diff --git a/client/src/org/compiere/grid/ed/VButton.java b/client/src/org/compiere/grid/ed/VButton.java index d5c33d1286..13db7c52ea 100644 --- a/client/src/org/compiere/grid/ed/VButton.java +++ b/client/src/org/compiere/grid/ed/VButton.java @@ -16,15 +16,25 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.sql.*; -import java.util.*; -import java.util.logging.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.Color; +import java.awt.event.ActionListener; +import java.beans.PropertyChangeEvent; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.HashMap; +import java.util.logging.Level; + +import org.compiere.model.GridField; +import org.compiere.model.MLookup; +import org.compiere.model.MLookupFactory; +import org.compiere.swing.CButton; +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; +import org.compiere.util.NamePair; /** * General Button. diff --git a/client/src/org/compiere/grid/ed/VCellEditor.java b/client/src/org/compiere/grid/ed/VCellEditor.java index 41cd786f47..4419ebb886 100644 --- a/client/src/org/compiere/grid/ed/VCellEditor.java +++ b/client/src/org/compiere/grid/ed/VCellEditor.java @@ -16,16 +16,25 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.util.*; -import javax.swing.*; -import javax.swing.table.*; +import java.awt.Component; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.VetoableChangeListener; +import java.util.EventObject; + +import javax.swing.AbstractCellEditor; +import javax.swing.BorderFactory; +import javax.swing.JComboBox; +import javax.swing.JTable; +import javax.swing.UIManager; +import javax.swing.table.TableCellEditor; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.model.*; -import org.compiere.util.*; +import org.compiere.model.GridField; +import org.compiere.model.GridTable; +import org.compiere.util.CLogger; /** * Cell Editor. diff --git a/client/src/org/compiere/grid/ed/VCheckBox.java b/client/src/org/compiere/grid/ed/VCheckBox.java index e6bf4b2b30..b52d5273eb 100644 --- a/client/src/org/compiere/grid/ed/VCheckBox.java +++ b/client/src/org/compiere/grid/ed/VCheckBox.java @@ -16,11 +16,16 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.event.*; -import java.beans.*; -import javax.swing.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; + +import javax.swing.JLabel; + +import org.compiere.swing.CCheckBox; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Checkbox Control diff --git a/client/src/org/compiere/grid/ed/VColor.java b/client/src/org/compiere/grid/ed/VColor.java index 370bd8145b..0306cbcaf5 100644 --- a/client/src/org/compiere/grid/ed/VColor.java +++ b/client/src/org/compiere/grid/ed/VColor.java @@ -16,18 +16,27 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.math.*; -import java.sql.*; -import java.util.logging.*; -import javax.swing.*; +import java.awt.Color; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.beans.PropertyChangeEvent; +import java.math.BigDecimal; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.logging.Level; -import org.compiere.model.*; -import org.compiere.plaf.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import javax.swing.JFrame; + +import org.compiere.model.GridField; +import org.compiere.model.GridTab; +import org.compiere.plaf.CompiereColor; +import org.compiere.plaf.CompiereLookAndFeel; +import org.compiere.swing.CButton; +import org.compiere.swing.ColorEditor; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.Env; /** * Color Editor. diff --git a/client/src/org/compiere/grid/ed/VComboBox.java b/client/src/org/compiere/grid/ed/VComboBox.java index 263aa8d458..1f1202fa95 100644 --- a/client/src/org/compiere/grid/ed/VComboBox.java +++ b/client/src/org/compiere/grid/ed/VComboBox.java @@ -16,11 +16,15 @@ *****************************************************************************/ package org.compiere.grid.ed; -import javax.swing.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import java.util.logging.*; -import org.compiere.util.*; +import java.util.logging.Level; + +import javax.swing.ComboBoxModel; + +import org.compiere.model.MLocator; +import org.compiere.swing.CComboBox; +import org.compiere.util.CLogger; +import org.compiere.util.KeyNamePair; +import org.compiere.util.NamePair; /** * Combobox with KeyNamePair/ValueNamePair or Locator. diff --git a/client/src/org/compiere/grid/ed/VDate.java b/client/src/org/compiere/grid/ed/VDate.java index 2a3e3c1379..8668ca95be 100644 --- a/client/src/org/compiere/grid/ed/VDate.java +++ b/client/src/org/compiere/grid/ed/VDate.java @@ -16,20 +16,43 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.sql.*; -import java.text.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.text.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Component; +import java.awt.Container; +import java.awt.Dimension; +import java.awt.Frame; +import java.awt.Insets; +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.awt.event.KeyListener; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; +import java.sql.Timestamp; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.logging.Level; + +import javax.swing.JComponent; +import javax.swing.JPopupMenu; +import javax.swing.JTextField; +import javax.swing.LookAndFeel; +import javax.swing.SwingUtilities; +import javax.swing.text.Document; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.AEnv; +import org.compiere.model.GridField; +import org.compiere.model.MRole; +import org.compiere.swing.CButton; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; /** * Date Edit. diff --git a/client/src/org/compiere/grid/ed/VEditor.java b/client/src/org/compiere/grid/ed/VEditor.java index 5e7318968c..34b089ef78 100644 --- a/client/src/org/compiere/grid/ed/VEditor.java +++ b/client/src/org/compiere/grid/ed/VEditor.java @@ -16,13 +16,16 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import javax.swing.border.*; +import java.awt.Color; +import java.awt.Font; +import java.awt.event.ActionListener; +import java.beans.PropertyChangeListener; +import java.beans.VetoableChangeListener; -import org.compiere.model.*; -import org.compiere.swing.*; +import javax.swing.border.Border; + +import org.compiere.model.GridField; +import org.compiere.swing.CEditor; /** * Editor Interface for single Row Editors (also used as TableCellEditors). diff --git a/client/src/org/compiere/grid/ed/VFile.java b/client/src/org/compiere/grid/ed/VFile.java index 47f137ecf0..c6d746f1e4 100644 --- a/client/src/org/compiere/grid/ed/VFile.java +++ b/client/src/org/compiere/grid/ed/VFile.java @@ -16,17 +16,31 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.io.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Dimension; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; +import java.io.File; -import javax.swing.*; +import javax.swing.JComponent; +import javax.swing.JFileChooser; +import javax.swing.LookAndFeel; -import org.compiere.model.*; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.model.GridField; +import org.compiere.swing.CButton; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogMgt; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * File/Path Selection diff --git a/client/src/org/compiere/grid/ed/VHeaderRenderer.java b/client/src/org/compiere/grid/ed/VHeaderRenderer.java index b0edc83293..8a37e046f2 100644 --- a/client/src/org/compiere/grid/ed/VHeaderRenderer.java +++ b/client/src/org/compiere/grid/ed/VHeaderRenderer.java @@ -16,11 +16,22 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import javax.swing.*; -import javax.swing.table.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.Component; +import java.awt.Dimension; +import java.awt.Insets; + +import javax.swing.Icon; +import javax.swing.JComponent; +import javax.swing.JLabel; +import javax.swing.JTable; +import javax.swing.SwingConstants; +import javax.swing.UIManager; +import javax.swing.table.TableCellRenderer; + +import org.compiere.swing.CButton; +import org.compiere.swing.CTable; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; /** * Table Header Renderer based on Display Type for aligmnet diff --git a/client/src/org/compiere/grid/ed/VImage.java b/client/src/org/compiere/grid/ed/VImage.java index eb1e94edc3..ceed9f67f9 100644 --- a/client/src/org/compiere/grid/ed/VImage.java +++ b/client/src/org/compiere/grid/ed/VImage.java @@ -16,12 +16,17 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import javax.swing.*; -import org.compiere.model.*; -import org.compiere.util.*; +import java.awt.Color; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; + +import javax.swing.JButton; + +import org.compiere.model.MImage; +import org.compiere.util.CLogger; +import org.compiere.util.Env; /** * Image Display of AD_Iamge_ID diff --git a/client/src/org/compiere/grid/ed/VImageDialog.java b/client/src/org/compiere/grid/ed/VImageDialog.java index d5aa37c04d..b9560fc255 100644 --- a/client/src/org/compiere/grid/ed/VImageDialog.java +++ b/client/src/org/compiere/grid/ed/VImageDialog.java @@ -16,15 +16,32 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.io.*; -import java.util.logging.*; -import javax.swing.*; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Cursor; +import java.awt.Frame; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.util.logging.Level; + +import javax.swing.BorderFactory; +import javax.swing.ImageIcon; +import javax.swing.JFileChooser; +import javax.swing.SwingConstants; + +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.model.MImage; +import org.compiere.swing.CButton; +import org.compiere.swing.CDialog; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Image Dialog diff --git a/client/src/org/compiere/grid/ed/VLine.java b/client/src/org/compiere/grid/ed/VLine.java index a635c5a44a..93202f1e7d 100644 --- a/client/src/org/compiere/grid/ed/VLine.java +++ b/client/src/org/compiere/grid/ed/VLine.java @@ -16,11 +16,15 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import javax.swing.border.*; +import java.awt.Color; +import java.awt.Component; +import java.awt.Font; +import java.awt.Graphics; + +import javax.swing.border.AbstractBorder; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.util.*; +import org.compiere.util.Language; /** * Horizontal Line with Text diff --git a/client/src/org/compiere/grid/ed/VLocation.java b/client/src/org/compiere/grid/ed/VLocation.java index 8474769f6e..d81a3c46bf 100644 --- a/client/src/org/compiere/grid/ed/VLocation.java +++ b/client/src/org/compiere/grid/ed/VLocation.java @@ -16,16 +16,34 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import javax.swing.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Component; +import java.awt.Dimension; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; +import java.util.logging.Level; + +import javax.swing.JComponent; +import javax.swing.JPopupMenu; +import javax.swing.JTextField; +import javax.swing.LookAndFeel; +import javax.swing.SwingUtilities; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.model.*; -import org.compiere.swing.*; -import java.util.logging.*; -import org.compiere.util.*; +import org.compiere.model.GridField; +import org.compiere.model.GridTab; +import org.compiere.model.MLocation; +import org.compiere.model.MLocationLookup; +import org.compiere.swing.CButton; +import org.compiere.swing.CMenuItem; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Location Control (Address) diff --git a/client/src/org/compiere/grid/ed/VLocationDialog.java b/client/src/org/compiere/grid/ed/VLocationDialog.java index 6ca9ba95ae..3fcdb7e281 100644 --- a/client/src/org/compiere/grid/ed/VLocationDialog.java +++ b/client/src/org/compiere/grid/ed/VLocationDialog.java @@ -16,18 +16,42 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Frame; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.util.HashMap; +import java.util.Iterator; +import java.util.Set; +import java.util.StringTokenizer; +import java.util.logging.Level; -import com.akunagroup.uk.postcode.*; -import org.adempiere.model.*; +import javax.swing.Box; +import javax.swing.JComponent; +import javax.swing.JLabel; +import javax.swing.JOptionPane; +import javax.swing.SwingConstants; + +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.model.MCountry; +import org.compiere.model.MLocation; +import org.compiere.model.MRegion; +import org.compiere.swing.CButton; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CDialog; +import org.compiere.swing.CLabel; +import org.compiere.swing.CPanel; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; + +import com.akunagroup.uk.postcode.AddressLookupInterface; +import com.akunagroup.uk.postcode.Postcode; /** * Dialog to enter Location Info (Address) diff --git a/client/src/org/compiere/grid/ed/VLocatorDialog.java b/client/src/org/compiere/grid/ed/VLocatorDialog.java index 33bc58762c..6de61c7c9a 100644 --- a/client/src/org/compiere/grid/ed/VLocatorDialog.java +++ b/client/src/org/compiere/grid/ed/VLocatorDialog.java @@ -16,17 +16,40 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.sql.*; -import java.util.logging.*; -import javax.swing.*; +import java.awt.BorderLayout; +import java.awt.Frame; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.logging.Level; + +import javax.swing.JCheckBox; +import javax.swing.JDialog; +import javax.swing.JLabel; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ADialog; +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.model.MLocator; +import org.compiere.model.MLocatorLookup; +import org.compiere.model.MRole; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CDialog; +import org.compiere.swing.CPanel; +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; /** * Dialog to enter Warehouse Locator Info diff --git a/client/src/org/compiere/grid/ed/VMemo.java b/client/src/org/compiere/grid/ed/VMemo.java index 3d9d33ced0..295b1691dd 100644 --- a/client/src/org/compiere/grid/ed/VMemo.java +++ b/client/src/org/compiere/grid/ed/VMemo.java @@ -16,15 +16,32 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import javax.swing.*; +import java.awt.Component; +import java.awt.Container; +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.awt.event.KeyListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; + +import javax.swing.InputVerifier; +import javax.swing.JComponent; +import javax.swing.JPopupMenu; +import javax.swing.LookAndFeel; +import javax.swing.SwingUtilities; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ScriptEditor; +import org.compiere.swing.CMenuItem; +import org.compiere.swing.CTextArea; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Text Control (JTextArea embedded in JScrollPane) diff --git a/client/src/org/compiere/grid/ed/VNumber.java b/client/src/org/compiere/grid/ed/VNumber.java index c9c6af1800..fe4b2f1c79 100644 --- a/client/src/org/compiere/grid/ed/VNumber.java +++ b/client/src/org/compiere/grid/ed/VNumber.java @@ -16,18 +16,42 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.math.*; -import java.text.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.text.*; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.AWTEvent; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Container; +import java.awt.Dimension; +import java.awt.EventQueue; +import java.awt.Frame; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.FocusEvent; +import java.awt.event.FocusListener; +import java.awt.event.InputEvent; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; +import java.math.BigDecimal; +import java.text.DecimalFormat; +import java.text.ParseException; +import java.util.logging.Level; + +import javax.swing.JComponent; +import javax.swing.JTextField; +import javax.swing.LookAndFeel; +import javax.swing.text.Document; + +import org.compiere.apps.AEnv; +import org.compiere.model.GridField; +import org.compiere.model.MRole; +import org.compiere.swing.CButton; +import org.compiere.swing.CComboBox; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; /** * Number Control diff --git a/client/src/org/compiere/grid/ed/VOvrCaret.java b/client/src/org/compiere/grid/ed/VOvrCaret.java index d41e0327d0..5e8879e8c6 100644 --- a/client/src/org/compiere/grid/ed/VOvrCaret.java +++ b/client/src/org/compiere/grid/ed/VOvrCaret.java @@ -16,9 +16,14 @@ *****************************************************************************/ package org.compiere.grid.ed; -import javax.swing.plaf.*; -import javax.swing.text.*; -import java.awt.*; +import java.awt.Color; +import java.awt.Graphics; +import java.awt.Rectangle; + +import javax.swing.plaf.TextUI; +import javax.swing.text.BadLocationException; +import javax.swing.text.DefaultCaret; +import javax.swing.text.Position; /** * Overwrite Caret diff --git a/client/src/org/compiere/grid/ed/VPassword.java b/client/src/org/compiere/grid/ed/VPassword.java index d67196428a..4bb024700a 100644 --- a/client/src/org/compiere/grid/ed/VPassword.java +++ b/client/src/org/compiere/grid/ed/VPassword.java @@ -16,12 +16,16 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.event.*; -import java.beans.*; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.swing.*; -import org.compiere.model.*; +import org.compiere.model.GridField; +import org.compiere.swing.CPassword; /** * Data Binding: diff --git a/client/src/org/compiere/grid/ed/VRowIDEditor.java b/client/src/org/compiere/grid/ed/VRowIDEditor.java index fa76baf5b6..006d215543 100644 --- a/client/src/org/compiere/grid/ed/VRowIDEditor.java +++ b/client/src/org/compiere/grid/ed/VRowIDEditor.java @@ -16,11 +16,17 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.util.*; -import javax.swing.*; -import javax.swing.table.*; -import org.compiere.util.*; +import java.awt.Component; +import java.awt.Insets; +import java.util.EventObject; + +import javax.swing.AbstractCellEditor; +import javax.swing.JCheckBox; +import javax.swing.JLabel; +import javax.swing.JTable; +import javax.swing.table.TableCellEditor; + +import org.compiere.util.CLogger; /** * RowID Cell Editor providing Selection diff --git a/client/src/org/compiere/grid/ed/VRowIDRenderer.java b/client/src/org/compiere/grid/ed/VRowIDRenderer.java index 57451a5f6c..7654b95ea2 100644 --- a/client/src/org/compiere/grid/ed/VRowIDRenderer.java +++ b/client/src/org/compiere/grid/ed/VRowIDRenderer.java @@ -16,9 +16,12 @@ *****************************************************************************/ package org.compiere.grid.ed; -import javax.swing.table.*; -import java.awt.*; -import javax.swing.*; +import java.awt.Component; + +import javax.swing.JButton; +import javax.swing.JCheckBox; +import javax.swing.JTable; +import javax.swing.table.TableCellRenderer; /** * Renderer for RowID Column diff --git a/client/src/org/compiere/grid/ed/VString.java b/client/src/org/compiere/grid/ed/VString.java index 84b93ba071..2a3613b917 100644 --- a/client/src/org/compiere/grid/ed/VString.java +++ b/client/src/org/compiere/grid/ed/VString.java @@ -16,16 +16,32 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import javax.swing.*; +import java.awt.Color; +import java.awt.Component; +import java.awt.Font; +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.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; + +import javax.swing.JPopupMenu; +import javax.swing.SwingUtilities; import javax.swing.event.CaretListener; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.model.GridField; +import org.compiere.model.MRole; +import org.compiere.model.Obscure; +import org.compiere.swing.CMenuItem; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Data Binding: diff --git a/client/src/org/compiere/grid/ed/VStringBeanInfo.java b/client/src/org/compiere/grid/ed/VStringBeanInfo.java index 468ab2c022..b75b9136db 100644 --- a/client/src/org/compiere/grid/ed/VStringBeanInfo.java +++ b/client/src/org/compiere/grid/ed/VStringBeanInfo.java @@ -16,7 +16,11 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.beans.*; +import java.beans.BeanInfo; +import java.beans.IntrospectionException; +import java.beans.Introspector; +import java.beans.PropertyDescriptor; +import java.beans.SimpleBeanInfo; /** * Generated diff --git a/client/src/org/compiere/grid/ed/VText.java b/client/src/org/compiere/grid/ed/VText.java index a6ea7bde6c..34adffbff4 100644 --- a/client/src/org/compiere/grid/ed/VText.java +++ b/client/src/org/compiere/grid/ed/VText.java @@ -16,15 +16,27 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import javax.swing.*; +import java.awt.Component; +import java.awt.Container; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; + +import javax.swing.JPopupMenu; +import javax.swing.LookAndFeel; +import javax.swing.SwingUtilities; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ScriptEditor; +import org.compiere.swing.CMenuItem; +import org.compiere.swing.CTextArea; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Text Control (JTextArea embedded in JScrollPane) diff --git a/client/src/org/compiere/grid/ed/VTextBeanInfo.java b/client/src/org/compiere/grid/ed/VTextBeanInfo.java index f67a6fe4d6..14a4585c11 100644 --- a/client/src/org/compiere/grid/ed/VTextBeanInfo.java +++ b/client/src/org/compiere/grid/ed/VTextBeanInfo.java @@ -16,7 +16,11 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.beans.*; +import java.beans.BeanInfo; +import java.beans.IntrospectionException; +import java.beans.Introspector; +import java.beans.PropertyDescriptor; +import java.beans.SimpleBeanInfo; /** * Generated diff --git a/client/src/org/compiere/grid/ed/VTextLong.java b/client/src/org/compiere/grid/ed/VTextLong.java index a776367110..b76e3c2a53 100644 --- a/client/src/org/compiere/grid/ed/VTextLong.java +++ b/client/src/org/compiere/grid/ed/VTextLong.java @@ -16,14 +16,29 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import javax.swing.*; +import java.awt.Component; +import java.awt.Container; +import java.awt.Dimension; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; + +import javax.swing.JFrame; +import javax.swing.JPopupMenu; +import javax.swing.LookAndFeel; +import javax.swing.SwingUtilities; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.swing.CMenuItem; +import org.compiere.swing.CTextPane; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * Long Text (CBLOB) Editor diff --git a/client/src/org/compiere/grid/ed/VURL.java b/client/src/org/compiere/grid/ed/VURL.java index 56413d931c..a12e1f3cfc 100644 --- a/client/src/org/compiere/grid/ed/VURL.java +++ b/client/src/org/compiere/grid/ed/VURL.java @@ -16,17 +16,38 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.beans.*; -import java.net.*; -import javax.swing.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Component; +import java.awt.Dimension; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.FocusEvent; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; +import java.beans.PropertyChangeEvent; +import java.beans.PropertyVetoException; +import java.net.URL; + +import javax.swing.JComponent; +import javax.swing.JPopupMenu; +import javax.swing.JTextField; +import javax.swing.LookAndFeel; +import javax.swing.SwingUtilities; import org.adempiere.plaf.AdempierePLAF; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ADialog; +import org.compiere.model.GridField; +import org.compiere.model.MRole; +import org.compiere.swing.CButton; +import org.compiere.swing.CMenuItem; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogger; +import org.compiere.util.Env; +import org.compiere.util.Msg; /** * URL Editor diff --git a/client/src/org/compiere/grid/ed/ValuePreference.java b/client/src/org/compiere/grid/ed/ValuePreference.java index 3fc8ff57ed..cbf6101ba2 100644 --- a/client/src/org/compiere/grid/ed/ValuePreference.java +++ b/client/src/org/compiere/grid/ed/ValuePreference.java @@ -16,16 +16,43 @@ *****************************************************************************/ package org.compiere.grid.ed; -import java.awt.*; -import java.awt.event.*; -import java.util.*; -import java.util.logging.*; -import javax.swing.*; -import javax.swing.border.*; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import java.awt.BorderLayout; +import java.awt.Color; +import java.awt.Frame; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.util.Properties; +import java.util.logging.Level; + +import javax.swing.BorderFactory; +import javax.swing.Icon; +import javax.swing.ImageIcon; +import javax.swing.JButton; +import javax.swing.JDialog; +import javax.swing.JPopupMenu; +import javax.swing.JScrollPane; +import javax.swing.JTable; +import javax.swing.border.TitledBorder; + +import org.compiere.apps.ADialog; +import org.compiere.apps.AEnv; +import org.compiere.apps.ConfirmPanel; +import org.compiere.model.GridField; +import org.compiere.model.MRole; +import org.compiere.swing.CDialog; +import org.compiere.swing.CLabel; +import org.compiere.swing.CMenuItem; +import org.compiere.swing.CPanel; +import org.compiere.swing.CTextField; +import org.compiere.util.CLogMgt; +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; /** * Maintain Value Preferences. diff --git a/client/src/org/compiere/grid/tree/VTreeCellRenderer.java b/client/src/org/compiere/grid/tree/VTreeCellRenderer.java index 61df2d1e94..03ef1b7f9b 100644 --- a/client/src/org/compiere/grid/tree/VTreeCellRenderer.java +++ b/client/src/org/compiere/grid/tree/VTreeCellRenderer.java @@ -16,11 +16,13 @@ *****************************************************************************/ package org.compiere.grid.tree; -import javax.swing.tree.*; -import java.awt.*; -import javax.swing.*; +import java.awt.Component; -import org.compiere.model.*; +import javax.swing.Icon; +import javax.swing.JTree; +import javax.swing.tree.DefaultTreeCellRenderer; + +import org.compiere.model.MTreeNode; /** * Tree Cell Renderer to context sensitive display Icon diff --git a/client/src/org/compiere/grid/tree/VTreePanel.java b/client/src/org/compiere/grid/tree/VTreePanel.java index 726be39255..caad230aaf 100644 --- a/client/src/org/compiere/grid/tree/VTreePanel.java +++ b/client/src/org/compiere/grid/tree/VTreePanel.java @@ -17,26 +17,79 @@ package org.compiere.grid.tree; -import java.awt.*; -import java.awt.datatransfer.*; -import java.awt.dnd.*; -import java.awt.event.*; +import java.awt.BorderLayout; +import java.awt.Container; +import java.awt.Cursor; +import java.awt.Dimension; +import java.awt.Graphics; +import java.awt.Insets; +import java.awt.Point; +import java.awt.Rectangle; +import java.awt.datatransfer.StringSelection; +import java.awt.dnd.DnDConstants; +import java.awt.dnd.DragGestureEvent; +import java.awt.dnd.DragGestureListener; +import java.awt.dnd.DragGestureRecognizer; +import java.awt.dnd.DragSource; +import java.awt.dnd.DragSourceDragEvent; +import java.awt.dnd.DragSourceDropEvent; +import java.awt.dnd.DragSourceEvent; +import java.awt.dnd.DragSourceListener; +import java.awt.dnd.DropTarget; +import java.awt.dnd.DropTargetDragEvent; +import java.awt.dnd.DropTargetDropEvent; +import java.awt.dnd.DropTargetEvent; +import java.awt.dnd.DropTargetListener; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; -import java.util.*; -import java.util.List; -import java.util.logging.*; -import javax.swing.*; +import java.util.ArrayList; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.Map; +import java.util.logging.Level; + +import javax.swing.BorderFactory; +import javax.swing.JButton; +import javax.swing.JCheckBox; +import javax.swing.JComponent; +import javax.swing.JLabel; +import javax.swing.JMenuItem; +import javax.swing.JPopupMenu; +import javax.swing.JScrollPane; +import javax.swing.JSplitPane; +import javax.swing.JToolBar; +import javax.swing.JTree; +import javax.swing.SwingUtilities; +import javax.swing.UIManager; import javax.swing.plaf.SplitPaneUI; import javax.swing.plaf.basic.BasicSplitPaneUI; -import javax.swing.tree.*; +import javax.swing.tree.DefaultTreeModel; +import javax.swing.tree.DefaultTreeSelectionModel; +import javax.swing.tree.TreePath; import org.adempiere.plaf.AdempierePLAF; import org.adempiere.plaf.AdempiereTaskPaneUI; -import org.compiere.apps.*; -import org.compiere.model.*; -import org.compiere.swing.*; -import org.compiere.util.*; +import org.compiere.apps.ADialog; +import org.compiere.model.MTree; +import org.compiere.model.MTreeNode; +import org.compiere.swing.CButton; +import org.compiere.swing.CCheckBox; +import org.compiere.swing.CLabel; +import org.compiere.swing.CMenuItem; +import org.compiere.swing.CPanel; +import org.compiere.swing.CTextField; +import org.compiere.swing.ShadowBorder; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.Env; +import org.compiere.util.Msg; +import org.compiere.util.Trx; import org.jdesktop.swingx.JXTaskPane; import org.jdesktop.swingx.JXTaskPaneContainer;