diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-03 14:49:28 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-06 11:45:51 +0200 |
commit | e527a340051b55a6f05d05f397d82ec797165163 (patch) | |
tree | 21e81a60ed0402b0f4e33685917b184b5b1bb32b /odk | |
parent | 587c59fbc931b12f4d63d077a78bcaa43ffbf83d (diff) |
Java cleanup, convert more Vector to ArrayList
Change-Id: Icb807382eaf50f515f2c9dfada0c061414baed33
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/DevelopersGuide/Forms/SalesFilter.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/SalesFilter.java b/odk/examples/DevelopersGuide/Forms/SalesFilter.java index 33053db662ca..932cf5c93981 100644 --- a/odk/examples/DevelopersGuide/Forms/SalesFilter.java +++ b/odk/examples/DevelopersGuide/Forms/SalesFilter.java @@ -57,13 +57,13 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis private boolean m_bSettingDate; private boolean m_bAdjustingFilterList; private short m_nPreviousFilterIndex; - private java.util.Vector m_aFilterDates; + private java.util.ArrayList m_aFilterDates; /* ------------------------------------------------------------------ */ public SalesFilter( DocumentHelper aDocument, XPropertySet xSalesForm, XPropertySet xFilterListBox, XPropertySet xManualFilterEdit, XPropertySet xStartFilterButton ) { - m_aFilterDates = new java.util.Vector(); + m_aFilterDates = new java.util.ArrayList(); m_bSettingsDirty = false; m_bSettingDate = false; m_bAdjustingFilterList = false; @@ -311,7 +311,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis m_aDocument.getCurrentView().grabControlFocus( m_xManualFilter ); m_bSettingDate = true; - Object aSelectedDateLimit = m_aFilterDates.elementAt( m_nPreviousFilterIndex ); + Object aSelectedDateLimit = m_aFilterDates.get( m_nPreviousFilterIndex ); if ( null != aSelectedDateLimit ) { // translate this date into one the AWT Toolkit understands @@ -374,7 +374,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis { if ( !isManualFilter( (short)i ) ) // do not compare with the manual filter { - GregorianCalendar aCheckCal = getCalendarObject( (java.util.Date)m_aFilterDates.elementAt( i ) ); + GregorianCalendar aCheckCal = getCalendarObject( (java.util.Date)m_aFilterDates.get( i ) ); if ( equalDate( aDateCal, aCheckCal ) ) return (short)i; } @@ -386,7 +386,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis // the first (and thus oldes) user defined item aFilterItems.remove( 6 ); // keep our date vector synchron - m_aFilterDates.removeElementAt( 6 ); + m_aFilterDates.remove( 6 ); } // add the current user defined filter |