summaryrefslogtreecommitdiff
path: root/reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java
diff options
context:
space:
mode:
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java')
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java23
1 files changed, 12 insertions, 11 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java b/reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java
index 19b041715acf..2c8b9d9f8786 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/StarFunctionCategory.java
@@ -41,10 +41,10 @@ import org.pentaho.reporting.libraries.formula.DefaultFormulaContext;
import org.pentaho.reporting.libraries.formula.function.FunctionCategory;
import org.pentaho.reporting.libraries.formula.function.FunctionRegistry;
-
public final class StarFunctionCategory extends WeakBase
- implements com.sun.star.report.meta.XFunctionCategory
+ implements com.sun.star.report.meta.XFunctionCategory
{
+
private final XComponentContext m_xContext;
private final PropertySetMixin m_prophlp;
// attributes
@@ -55,7 +55,7 @@ public final class StarFunctionCategory extends WeakBase
private final DefaultFormulaContext defaultContext;
private final Locale defaultLocale;
- public StarFunctionCategory( DefaultFormulaContext defaultContext,final XComponentContext context,final FunctionRegistry functionRegistry,final int _number,final FunctionCategory category )
+ public StarFunctionCategory(DefaultFormulaContext defaultContext, final XComponentContext context, final FunctionRegistry functionRegistry, final int _number, final FunctionCategory category)
{
this.defaultContext = defaultContext;
m_xContext = context;
@@ -68,7 +68,7 @@ public final class StarFunctionCategory extends WeakBase
category.getDisplayName(defaultContext.getLocalizationContext().getLocale());
locale = defaultContext.getLocalizationContext().getLocale();
}
- catch(MissingResourceException e)
+ catch (MissingResourceException e)
{
locale = Locale.ENGLISH;
}
@@ -80,8 +80,8 @@ public final class StarFunctionCategory extends WeakBase
// of the PropertySetMixin helper for further information.
// Ensure that your attributes are initialized correctly!
m_prophlp = new PropertySetMixin(m_xContext, this,
- new Type(com.sun.star.report.meta.XFunctionCategory.class), null);
- };
+ new Type(com.sun.star.report.meta.XFunctionCategory.class), null);
+ }
// com.sun.star.beans.XPropertySet:
public com.sun.star.beans.XPropertySetInfo getPropertySetInfo()
@@ -89,7 +89,7 @@ public final class StarFunctionCategory extends WeakBase
return m_prophlp.getPropertySetInfo();
}
- public void setPropertyValue(String aPropertyName, Object aValue) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.beans.PropertyVetoException, com.sun.star.lang.IllegalArgumentException,com.sun.star.lang.WrappedTargetException
+ public void setPropertyValue(String aPropertyName, Object aValue) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.beans.PropertyVetoException, com.sun.star.lang.IllegalArgumentException, com.sun.star.lang.WrappedTargetException
{
m_prophlp.setPropertyValue(aPropertyName, aValue);
}
@@ -117,7 +117,7 @@ public final class StarFunctionCategory extends WeakBase
public void removeVetoableChangeListener(String aPropertyName, com.sun.star.beans.XVetoableChangeListener xListener) throws com.sun.star.beans.UnknownPropertyException, com.sun.star.lang.WrappedTargetException
{
m_prophlp.removeVetoableChangeListener(aPropertyName, xListener);
- }
+ }
// com.sun.star.container.XElementAccess:
public com.sun.star.uno.Type getElementType()
@@ -154,9 +154,10 @@ public final class StarFunctionCategory extends WeakBase
public com.sun.star.report.meta.XFunctionDescription getFunction(int position) throws com.sun.star.lang.IndexOutOfBoundsException, com.sun.star.lang.WrappedTargetException
{
- if ( position >= functions.length )
+ if (position >= functions.length)
+ {
throw new IndexOutOfBoundsException();
- return new StarFunctionDescription(defaultContext,m_xContext,this,functionRegistry.getMetaData(functions[position]));
+ }
+ return new StarFunctionDescription(defaultContext, m_xContext, this, functionRegistry.getMetaData(functions[position]));
}
-
}