diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-08 12:44:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-13 08:49:23 +0200 |
commit | 68cd011c907d00493bf2bfde531c1e244819596b (patch) | |
tree | 0225318c908b00faaa701a19aaf7aa567c3582a0 /odk/examples/DevelopersGuide/Forms/SalesFilter.java | |
parent | 70f56bc22fe952c75ec714e05e1bb5296491a36a (diff) |
java: reduce scope, make some methods private
found by UCDetector
Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
Diffstat (limited to 'odk/examples/DevelopersGuide/Forms/SalesFilter.java')
-rw-r--r-- | odk/examples/DevelopersGuide/Forms/SalesFilter.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/SalesFilter.java b/odk/examples/DevelopersGuide/Forms/SalesFilter.java index 6aae1a05f6aa..aad8b13b106b 100644 --- a/odk/examples/DevelopersGuide/Forms/SalesFilter.java +++ b/odk/examples/DevelopersGuide/Forms/SalesFilter.java @@ -121,7 +121,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis = helper ================================================================== */ /* ------------------------------------------------------------------ */ - protected void initFilterDates() + private void initFilterDates() { m_aFilterDates.clear(); java.util.Date aNowAndHere = new java.util.Date(); @@ -162,7 +162,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis /** translates a date from the AWT Toolkit format to a java.util.date, or vice versa. */ - protected Object translateDate( Object aDate ) throws java.lang.Exception + private Object translateDate( Object aDate ) throws java.lang.Exception { Object aReturn = null; @@ -201,7 +201,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis /** translates the given date into the ODBC date notation, which then can be used for setting a filter at a row set */ - protected String getOdbcDate( Object aDate ) throws java.lang.Exception + private String getOdbcDate( Object aDate ) throws java.lang.Exception { String sOdbcDate = ""; if ( null != aDate ) @@ -235,7 +235,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis } /* ------------------------------------------------------------------ */ - protected void updateApplyButton() + private void updateApplyButton() { try { @@ -251,7 +251,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis /* ------------------------------------------------------------------ */ /** creates a normalized calendar object from the given java.util.Date */ - protected GregorianCalendar getCalendarObject( java.util.Date aDate ) + private GregorianCalendar getCalendarObject( java.util.Date aDate ) { // the date part GregorianCalendar aReturn = null; @@ -270,7 +270,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis } /* ------------------------------------------------------------------ */ - final protected short getCurrentSelectedFilter( ) throws com.sun.star.uno.Exception + final private short getCurrentSelectedFilter( ) throws com.sun.star.uno.Exception { short[] aSelected = (short[])m_xFilterList.getPropertyValue( "SelectedItems" ); if ( 0 < aSelected.length ) @@ -282,13 +282,13 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis /** checks if the given filter index referes to the "<other>" entry which allows the user to manually enter a date */ - final protected boolean isManualFilter( short nFilterIndex ) + final private boolean isManualFilter( short nFilterIndex ) { return ( 5 == nFilterIndex ); } /* ------------------------------------------------------------------ */ - protected void updateFilterControl() + private void updateFilterControl() { try { @@ -336,7 +336,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis seems to always return false, as well as . Thus here is a method which compare two calendars, restricted to their date part</p> */ - protected boolean equalDate( Calendar aLHS, Calendar aRHS ) + private boolean equalDate( Calendar aLHS, Calendar aRHS ) { if ( ( null == aLHS ) != ( null == aRHS ) ) // only one of them is null @@ -356,7 +356,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis @return the index of the newly added date filter in the filter list */ - protected short addCurrentFilter( ) throws java.lang.Exception + private short addCurrentFilter( ) throws java.lang.Exception { // the current string items String[] aOldFilterItems = (String[])m_xFilterList.getPropertyValue( "StringItemList" ); @@ -405,7 +405,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis } /* ------------------------------------------------------------------ */ - protected void executeCurrentFilter() + private void executeCurrentFilter() { try { |