summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Forms
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Forms')
-rw-r--r--odk/examples/DevelopersGuide/Forms/ControlLock.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java2
-rw-r--r--odk/examples/DevelopersGuide/Forms/DocumentHelper.java4
-rw-r--r--odk/examples/DevelopersGuide/Forms/DocumentViewHelper.java6
-rw-r--r--odk/examples/DevelopersGuide/Forms/FLTools.java4
-rw-r--r--odk/examples/DevelopersGuide/Forms/HsqlDatabase.java6
-rw-r--r--odk/examples/DevelopersGuide/Forms/KeyGenerator.java8
-rw-r--r--odk/examples/DevelopersGuide/Forms/SalesFilter.java22
8 files changed, 27 insertions, 27 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/ControlLock.java b/odk/examples/DevelopersGuide/Forms/ControlLock.java
index 665eecc8d9a1..2663cd52f00f 100644
--- a/odk/examples/DevelopersGuide/Forms/ControlLock.java
+++ b/odk/examples/DevelopersGuide/Forms/ControlLock.java
@@ -130,7 +130,7 @@ class ControlLock implements XRowSetListener
/* ------------------------------------------------------------------ */
/** updates the locks on the affected controls
*/
- protected void updateLocks( )
+ private void updateLocks( )
{
try
{
diff --git a/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java b/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
index fbb1933387aa..b59e5d482456 100644
--- a/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
+++ b/odk/examples/DevelopersGuide/Forms/DocumentBasedExample.java
@@ -115,7 +115,7 @@ public abstract class DocumentBasedExample implements com.sun.star.lang.XEventLi
/* ------------------------------------------------------------------ */
/** collect the RuntimeArguments
*/
- protected void collectParameters(String argv[])
+ private void collectParameters(String argv[])
{
// not interested in. Derived classes may want to use it.
}
diff --git a/odk/examples/DevelopersGuide/Forms/DocumentHelper.java b/odk/examples/DevelopersGuide/Forms/DocumentHelper.java
index 6b9518631396..ec772949cfc4 100644
--- a/odk/examples/DevelopersGuide/Forms/DocumentHelper.java
+++ b/odk/examples/DevelopersGuide/Forms/DocumentHelper.java
@@ -120,7 +120,7 @@ public class DocumentHelper
The initial name of the form. May be null, in this case the default (which
is an implementation detail) applies.
*/
- protected XIndexContainer createSubForm( XIndexContainer xParentContainer, String sInitialName )
+ private XIndexContainer createSubForm( XIndexContainer xParentContainer, String sInitialName )
throws com.sun.star.uno.Exception
{
// create a new form
@@ -196,7 +196,7 @@ public class DocumentHelper
/* ------------------------------------------------------------------ */
/** returns a URL which can be used to create a document of a certain type
*/
- public static String getDocumentFactoryURL( DocumentType eType )
+ private static String getDocumentFactoryURL( DocumentType eType )
{
if ( eType == DocumentType.WRITER )
return "private:factory/swriter";
diff --git a/odk/examples/DevelopersGuide/Forms/DocumentViewHelper.java b/odk/examples/DevelopersGuide/Forms/DocumentViewHelper.java
index ca4f437530f8..75948937b448 100644
--- a/odk/examples/DevelopersGuide/Forms/DocumentViewHelper.java
+++ b/odk/examples/DevelopersGuide/Forms/DocumentViewHelper.java
@@ -69,7 +69,7 @@ class DocumentViewHelper
@param aInterfaceClass
the class of the interface which shall be returned
*/
- public <T> T get( Class<T> aInterfaceClass )
+ private <T> T get( Class<T> aInterfaceClass )
{
return UnoRuntime.queryInterface( aInterfaceClass, m_controller );
}
@@ -83,7 +83,7 @@ class DocumentViewHelper
@return
the dispatcher for the URL in question
*/
- public XDispatch getDispatcher( URL[] aURL ) throws java.lang.Exception
+ private XDispatch getDispatcher( URL[] aURL ) throws java.lang.Exception
{
XDispatch xReturn = null;
@@ -130,7 +130,7 @@ class DocumentViewHelper
@return
the control tied to the model
*/
- public XControl getFormControl( XControlModel xModel ) throws com.sun.star.uno.Exception
+ private XControl getFormControl( XControlModel xModel ) throws com.sun.star.uno.Exception
{
// the current view of the document
XControlAccess xCtrlAcc = get( XControlAccess.class );
diff --git a/odk/examples/DevelopersGuide/Forms/FLTools.java b/odk/examples/DevelopersGuide/Forms/FLTools.java
index e04500aa43d6..614d72790d27 100644
--- a/odk/examples/DevelopersGuide/Forms/FLTools.java
+++ b/odk/examples/DevelopersGuide/Forms/FLTools.java
@@ -76,7 +76,7 @@ public class FLTools
/* ------------------------------------------------------------------ */
/** returns the name of the given form component
*/
- public static String getName( Object aFormComponent )
+ private static String getName( Object aFormComponent )
{
XNamed xNamed = UnoRuntime.queryInterface( XNamed.class,
aFormComponent );
@@ -159,7 +159,7 @@ public class FLTools
/* ------------------------------------------------------------------ */
/** retrieves the parent of the given object
*/
- static <T> T getParent( Object aComponent, Class<T> aInterfaceClass )
+ private static <T> T getParent( Object aComponent, Class<T> aInterfaceClass )
{
XChild xAsChild = UnoRuntime.queryInterface( XChild.class, aComponent );
diff --git a/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java b/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java
index 5c15718706a7..29593b04cbae 100644
--- a/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java
+++ b/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java
@@ -98,7 +98,7 @@ public class HsqlDatabase
* the ownership of the connection, so you don't need to (and should not) dispose/close it.
*
*/
- public XConnection defaultConnection() throws SQLException
+ private XConnection defaultConnection() throws SQLException
{
if ( m_connection != null )
return m_connection;
@@ -131,7 +131,7 @@ public class HsqlDatabase
* Any CloseVetoExceptions fired by third parties are ignored, and any reference to the
* database document is released.
*/
- public void close()
+ private void close()
{
// close connection
XCloseable closeConn = UnoRuntime.queryInterface( XCloseable.class,
@@ -166,7 +166,7 @@ public class HsqlDatabase
/** closes the document, and deletes the underlying file
*/
- public void closeAndDelete()
+ private void closeAndDelete()
{
close();
diff --git a/odk/examples/DevelopersGuide/Forms/KeyGenerator.java b/odk/examples/DevelopersGuide/Forms/KeyGenerator.java
index 440fc4406c1b..2e00c842ce81 100644
--- a/odk/examples/DevelopersGuide/Forms/KeyGenerator.java
+++ b/odk/examples/DevelopersGuide/Forms/KeyGenerator.java
@@ -54,7 +54,7 @@ class UniqueColumnValue
themself are based on one table.<br/>
Everything else (especially forms based on queries) is not yet implemented.</p>
*/
- protected String extractTableName( XPropertySet xForm ) throws com.sun.star.uno.Exception
+ private String extractTableName( XPropertySet xForm ) throws com.sun.star.uno.Exception
{
String sReturn;
@@ -99,7 +99,7 @@ class UniqueColumnValue
a String which can be used as statement to retrieve a unique value for the given column.
The result set resulting from such a execution contains the value in it's first column.
*/
- protected String composeUniqueyKeyStatement( XPropertySet xForm, String sFieldName ) throws com.sun.star.uno.Exception
+ private String composeUniqueyKeyStatement( XPropertySet xForm, String sFieldName ) throws com.sun.star.uno.Exception
{
String sStatement = new String( "SELECT MAX( " );
sStatement += sFieldName;
@@ -123,7 +123,7 @@ class UniqueColumnValue
@param sFieldName
the name of the column
*/
- protected int generatePrimaryKey( XPropertySet xForm, String sFieldName ) throws com.sun.star.uno.Exception
+ private int generatePrimaryKey( XPropertySet xForm, String sFieldName ) throws com.sun.star.uno.Exception
{
// get the current connection of the form
XConnection xConn = UnoRuntime.queryInterface(
@@ -202,7 +202,7 @@ class KeyGeneratorForReset extends UniqueColumnValue implements XResetListener
/** sets the focus to the first control which is no fixed text, and not the
one we're defaulting
*/
- public void defaultNewRecordFocus( XPropertySet xForm ) throws com.sun.star.uno.Exception
+ private void defaultNewRecordFocus( XPropertySet xForm ) throws com.sun.star.uno.Exception
{
XIndexAccess xFormAsContainer = UnoRuntime.queryInterface(
XIndexAccess.class, xForm );
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
{