summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-08 12:44:57 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 08:49:23 +0200
commit68cd011c907d00493bf2bfde531c1e244819596b (patch)
tree0225318c908b00faaa701a19aaf7aa567c3582a0 /forms
parent70f56bc22fe952c75ec714e05e1bb5296491a36a (diff)
java: reduce scope, make some methods private
found by UCDetector Change-Id: Ib1425edde146193a65c242dc159b7e3fbf0e4a2e
Diffstat (limited to 'forms')
-rw-r--r--forms/qa/complex/forms/CheckOGroupBoxModel.java2
-rw-r--r--forms/qa/integration/forms/DocumentHelper.java6
-rw-r--r--forms/qa/integration/forms/DocumentViewHelper.java4
-rw-r--r--forms/qa/org/openoffice/xforms/Instance.java4
4 files changed, 8 insertions, 8 deletions
diff --git a/forms/qa/complex/forms/CheckOGroupBoxModel.java b/forms/qa/complex/forms/CheckOGroupBoxModel.java
index c5274625e44a..987af1367e85 100644
--- a/forms/qa/complex/forms/CheckOGroupBoxModel.java
+++ b/forms/qa/complex/forms/CheckOGroupBoxModel.java
@@ -174,7 +174,7 @@ public class CheckOGroupBoxModel
{
}
- public boolean wasListenerCalled()
+ private boolean wasListenerCalled()
{
return propertiesChanged;
}
diff --git a/forms/qa/integration/forms/DocumentHelper.java b/forms/qa/integration/forms/DocumentHelper.java
index 1be009962751..cbbb73d7385b 100644
--- a/forms/qa/integration/forms/DocumentHelper.java
+++ b/forms/qa/integration/forms/DocumentHelper.java
@@ -65,7 +65,7 @@ public class DocumentHelper
}
/* ------------------------------------------------------------------ */
- protected static XComponent implLoadAsComponent( XMultiServiceFactory orb, String documentOrFactoryURL, final PropertyValue[] i_args ) throws com.sun.star.uno.Exception
+ private static XComponent implLoadAsComponent( XMultiServiceFactory orb, String documentOrFactoryURL, final PropertyValue[] i_args ) throws com.sun.star.uno.Exception
{
XComponentLoader aLoader = UnoRuntime.queryInterface(
XComponentLoader.class,
@@ -205,7 +205,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
@@ -296,7 +296,7 @@ public class DocumentHelper
/* ------------------------------------------------------------------ */
/** classifies a document
*/
- public DocumentType classify( )
+ private DocumentType classify( )
{
XServiceInfo xSI = UnoRuntime.queryInterface(
XServiceInfo.class, m_documentComponent );
diff --git a/forms/qa/integration/forms/DocumentViewHelper.java b/forms/qa/integration/forms/DocumentViewHelper.java
index 59b7fa02ec60..b2b06cad3990 100644
--- a/forms/qa/integration/forms/DocumentViewHelper.java
+++ b/forms/qa/integration/forms/DocumentViewHelper.java
@@ -87,7 +87,7 @@ public 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;
@@ -169,7 +169,7 @@ public class DocumentViewHelper
/* ------------------------------------------------------------------ */
/** retrieves the form controller for a given logical form
*/
- public XFormController getFormController( XForm _form )
+ private XFormController getFormController( XForm _form )
{
XFormLayerAccess formLayerAccess = query( XFormLayerAccess.class );
return formLayerAccess.getFormController( _form );
diff --git a/forms/qa/org/openoffice/xforms/Instance.java b/forms/qa/org/openoffice/xforms/Instance.java
index e1e9bd809418..e9614bb5c0e7 100644
--- a/forms/qa/org/openoffice/xforms/Instance.java
+++ b/forms/qa/org/openoffice/xforms/Instance.java
@@ -73,7 +73,7 @@ public class Instance
* @return
* the node of the newly created element
*/
- public XNode createElement( XNode _parentElement, String _elementName, String _initialNodeValue ) throws DOMException
+ private XNode createElement( XNode _parentElement, String _elementName, String _initialNodeValue ) throws DOMException
{
XNode node = _parentElement.appendChild(
m_model.getUIHelper().createElement( _parentElement, _elementName )
@@ -100,7 +100,7 @@ public class Instance
* @param _elementName
* the name of the to-be-removed child
*/
- public XNode removeNode( XNode _parentElement, String _elementName ) throws DOMException
+ private XNode removeNode( XNode _parentElement, String _elementName ) throws DOMException
{
XNodeList nodes = _parentElement.getChildNodes();
for ( int i=0; i<nodes.getLength(); ++i )