diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-15 14:24:30 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-16 08:15:46 +0200 |
commit | 48633151ff104e867bae6fcd403a2c8d4a87b509 (patch) | |
tree | 8c53c832406734f6772600d8f5cc893eb17f7331 /wizards | |
parent | 4b5cb7ef35648eb33d14f40a7f4cc1b47aea53a4 (diff) |
java: methods in interfaces are implicitly public
Change-Id: I543fe5b8890668f60d6528a2a7ae6d099d5b4945
Diffstat (limited to 'wizards')
13 files changed, 68 insertions, 70 deletions
diff --git a/wizards/com/sun/star/wizards/common/Indexable.java b/wizards/com/sun/star/wizards/common/Indexable.java index b20fd174c7f6..d838c35bbe07 100644 --- a/wizards/com/sun/star/wizards/common/Indexable.java +++ b/wizards/com/sun/star/wizards/common/Indexable.java @@ -25,6 +25,6 @@ package com.sun.star.wizards.common; public interface Indexable { - public int getIndex(); + int getIndex(); } diff --git a/wizards/com/sun/star/wizards/common/UCB.java b/wizards/com/sun/star/wizards/common/UCB.java index ecd3e4ff4b04..717ba779f5b2 100644 --- a/wizards/com/sun/star/wizards/common/UCB.java +++ b/wizards/com/sun/star/wizards/common/UCB.java @@ -240,9 +240,8 @@ public class UCB XContentProvider.class,ucb).queryContent(id); } - public static interface Verifier + public interface Verifier { - - public boolean verify(Object object); + boolean verify(Object object); } } diff --git a/wizards/com/sun/star/wizards/common/XMLProvider.java b/wizards/com/sun/star/wizards/common/XMLProvider.java index 063cb7a620a5..287e861ee714 100644 --- a/wizards/com/sun/star/wizards/common/XMLProvider.java +++ b/wizards/com/sun/star/wizards/common/XMLProvider.java @@ -28,5 +28,5 @@ import org.w3c.dom.Node; public interface XMLProvider { - public Node createDOM(Node parent); + Node createDOM(Node parent); } diff --git a/wizards/com/sun/star/wizards/db/QueryMetaData.java b/wizards/com/sun/star/wizards/db/QueryMetaData.java index a098eea1484b..c3befda70a70 100644 --- a/wizards/com/sun/star/wizards/db/QueryMetaData.java +++ b/wizards/com/sun/star/wizards/db/QueryMetaData.java @@ -41,11 +41,10 @@ public class QueryMetaData extends CommandMetaData }; public int Type = QueryType.SODETAILQUERY; - public static interface QueryType + public interface QueryType { - - final static int SOSUMMARYQUERY = 0; - final static int SODETAILQUERY = 1; + int SOSUMMARYQUERY = 0; + int SODETAILQUERY = 1; } public QueryMetaData(XMultiServiceFactory xMSF, Locale CharLocale, NumberFormatter oNumberFormatter) diff --git a/wizards/com/sun/star/wizards/report/IReportDefinitionReadAccess.java b/wizards/com/sun/star/wizards/report/IReportDefinitionReadAccess.java index 3038e4a1b22d..aa81c48984ec 100644 --- a/wizards/com/sun/star/wizards/report/IReportDefinitionReadAccess.java +++ b/wizards/com/sun/star/wizards/report/IReportDefinitionReadAccess.java @@ -32,17 +32,17 @@ public interface IReportDefinitionReadAccess * Gives access to a ReportDefinition, if initialized. * @return a ReportDefinition or null. */ - public XReportDefinition getReportDefinition(); /* should throw NullPointerException but does not. */ + XReportDefinition getReportDefinition(); /* should throw NullPointerException but does not. */ /** * This ServiceFactory is the 'global' Service Factory, which knows all and every thing in the program. * @return the global service factory of the program */ - public XMultiServiceFactory getGlobalMSF(); + XMultiServiceFactory getGlobalMSF(); /** * Returns the file path to the default report definition, we need this name for early initialisation */ - public String getDefaultHeaderLayout(); + String getDefaultHeaderLayout(); } diff --git a/wizards/com/sun/star/wizards/report/IReportDocument.java b/wizards/com/sun/star/wizards/report/IReportDocument.java index 662d3ff838bd..0c124a2c7a22 100644 --- a/wizards/com/sun/star/wizards/report/IReportDocument.java +++ b/wizards/com/sun/star/wizards/report/IReportDocument.java @@ -33,7 +33,7 @@ public interface IReportDocument // initialisation - public void initialize( + void initialize( final XDatabaseDocumentUI i_documentUI, final Resource i_resource ); @@ -44,22 +44,22 @@ public interface IReportDocument /** * Gives access to the DB Values */ - public com.sun.star.wizards.db.RecordParser getRecordParser(); + com.sun.star.wizards.db.RecordParser getRecordParser(); /** * Give access to the parent document * It is a document in the old Wizard * It is a Report Builder in the new Wizard */ - public com.sun.star.awt.XWindowPeer getWizardParent(); + com.sun.star.awt.XWindowPeer getWizardParent(); /** * * @return the Frame of the document Window or Report Builder Window */ - public com.sun.star.frame.XFrame getFrame(); + com.sun.star.frame.XFrame getFrame(); - public XComponent getComponent(); + XComponent getComponent(); // First step: After entering the table name, select fields @@ -67,17 +67,17 @@ public interface IReportDocument /** * Is called after first step, set Tablename and the fields, which should occur in the Report. */ - public void initializeFieldColumns(final int _aType, final String TableName, final String[] FieldNames); + void initializeFieldColumns(final int _aType, final String TableName, final String[] FieldNames); /** * Empties the report document */ - public void clearDocument(); + void clearDocument(); /** * Empties the report document, if we called back, don't remove Grouping/Sorting */ - public void removeTextTableAndTextSection(); + void removeTextTableAndTextSection(); // Second step: Label field titles @@ -85,7 +85,7 @@ public interface IReportDocument /** * Set new names for the titles */ - public void setFieldTitles(final String[] sFieldTitles); + void setFieldTitles(final String[] sFieldTitles); /** * Change a the name of the 'title' of one field. @@ -93,7 +93,7 @@ public interface IReportDocument * element title of a given element name. * This is only used as a preview */ - public void liveupdate_changeUserFieldContent(final String FieldName, final String TitleName); + void liveupdate_changeUserFieldContent(final String FieldName, final String TitleName); // Third step: Grouping @@ -102,52 +102,52 @@ public interface IReportDocument /** * Called by press ('greater then') add a group to the group list */ - public boolean liveupdate_addGroupNametoDocument(String[] GroupNames, String CurGroupTitle, ArrayList<String> GroupFieldVector, ArrayList<String> ReportPath, int iSelCount); + boolean liveupdate_addGroupNametoDocument(String[] GroupNames, String CurGroupTitle, ArrayList<String> GroupFieldVector, ArrayList<String> ReportPath, int iSelCount); - public void refreshGroupFields(String[] _sNewNames); + void refreshGroupFields(String[] _sNewNames); /** * Called by press ('less then') Removes an already set Groupname out of the list */ - public void liveupdate_removeGroupName(String[] NewSelGroupNames, String CurGroupTitle, java.util.ArrayList<String> GroupFieldVector); + void liveupdate_removeGroupName(String[] NewSelGroupNames, String CurGroupTitle, java.util.ArrayList<String> GroupFieldVector); /** * set the list how to group */ - public void setGrouping(String[] aGroupList); + void setGrouping(String[] aGroupList); // Fourth step: Sorting /** * Set the list how to sort */ - public void setSorting(String[][] aSort); + void setSorting(String[][] aSort); // Fivth step: Templates / Layout /* Template Page */ - public void setPageOrientation(int nOrientation) throws com.sun.star.lang.IllegalArgumentException; + void setPageOrientation(int nOrientation) throws com.sun.star.lang.IllegalArgumentException; - public int getDefaultPageOrientation(); + int getDefaultPageOrientation(); - public ArrayList<String> getReportPath(); + ArrayList<String> getReportPath(); - public String getLayoutPath(); + String getLayoutPath(); - public String getContentPath(); + String getContentPath(); /** * Called if a new Layout is selected */ - public void liveupdate_changeLayoutTemplate(String LayoutTemplatePath/*, String BitmapPath*/); + void liveupdate_changeLayoutTemplate(String LayoutTemplatePath/*, String BitmapPath*/); /** * Called if a new Template is selected */ - public void liveupdate_changeContentTemplate(String ContentTemplatePath); + void liveupdate_changeContentTemplate(String ContentTemplatePath); - public void layout_selectFirstPage(); + void layout_selectFirstPage(); - public void layout_setupRecordSection(String TemplateName); + void layout_setupRecordSection(String TemplateName); // finishing @@ -157,63 +157,63 @@ public interface IReportDocument * Set the Title into the document from the 'Create Report Page' * BUG: The Title is empty after create Report. */ - public void liveupdate_updateReportTitle(String _sTitleName); + void liveupdate_updateReportTitle(String _sTitleName); /** * Store the document by the given name */ - public void store(String Name, int OpenMode) throws com.sun.star.uno.Exception; + void store(String Name, int OpenMode) throws com.sun.star.uno.Exception; /** * The current report is added to the DB View under the given name * * TODO: add Name to this functionality */ - public void addReportToDBView(); + void addReportToDBView(); - public void importReportData(ReportWizard aWizard); + void importReportData(ReportWizard aWizard); /** * Create the final Report document */ - public void createAndOpenReportDocument( + void createAndOpenReportDocument( final String Name, final boolean _bAsTemplate, final boolean _bOpenInDesign ); - public void dispose(); + void dispose(); // Garbage dump /* DataImport */ // ??? // ??? - public boolean reconnectToDatabase(XMultiServiceFactory xMSF, PropertyValue[] Properties); + boolean reconnectToDatabase(XMultiServiceFactory xMSF, PropertyValue[] Properties); // ??? - public void insertDatabaseDatatoReportDocument(XMultiServiceFactory xMSF); + void insertDatabaseDatatoReportDocument(XMultiServiceFactory xMSF); // ??? /** * set a internal variable to stop a maybe longer DB access. */ - public void StopProcess(); // cancel + void StopProcess(); // cancel /** * Returns a string list of layouts. */ - public String[][] getDataLayout(); + String[][] getDataLayout(); /** * Returns a string list of header layouts */ - public String[][] getHeaderLayout(); + String[][] getHeaderLayout(); - public void setCommandType(int CommandType); + void setCommandType(int CommandType); - public void setCommand(String Command); + void setCommand(String Command); /** * check internal invariants */ - public void checkInvariants() throws java.lang.Exception; + void checkInvariants() throws java.lang.Exception; } diff --git a/wizards/com/sun/star/wizards/ui/ImageList.java b/wizards/com/sun/star/wizards/ui/ImageList.java index 7005479415d6..050653bb1989 100644 --- a/wizards/com/sun/star/wizards/ui/ImageList.java +++ b/wizards/com/sun/star/wizards/ui/ImageList.java @@ -790,14 +790,14 @@ public class ImageList implements XItemEventBroadcaster, ListDataListener }; } - public static interface IImageRenderer extends IRenderer + public interface IImageRenderer extends IRenderer { /** * @return two resource ids for an image referenced in the imaglist resourcefile of the * wizards project; The second one of them is designed to be used for High Contrast Mode. */ - public Object[] getImageUrls(Object listItem); + Object[] getImageUrls(Object listItem); } private static class SimpleCounterRenderer implements IRenderer diff --git a/wizards/com/sun/star/wizards/ui/XCommandSelectionListener.java b/wizards/com/sun/star/wizards/ui/XCommandSelectionListener.java index 2731e0ba513e..c666d0e1bd98 100644 --- a/wizards/com/sun/star/wizards/ui/XCommandSelectionListener.java +++ b/wizards/com/sun/star/wizards/ui/XCommandSelectionListener.java @@ -20,5 +20,5 @@ package com.sun.star.wizards.ui; public interface XCommandSelectionListener { - public void CommandSelected(String CommandName); + void CommandSelected(String CommandName); } diff --git a/wizards/com/sun/star/wizards/ui/XCompletion.java b/wizards/com/sun/star/wizards/ui/XCompletion.java index af444f72cc16..6239d2621316 100644 --- a/wizards/com/sun/star/wizards/ui/XCompletion.java +++ b/wizards/com/sun/star/wizards/ui/XCompletion.java @@ -20,11 +20,11 @@ package com.sun.star.wizards.ui; public interface XCompletion { - public void setcompleted(int _ndialogpage, boolean _biscompleted); + void setcompleted(int _ndialogpage, boolean _biscompleted); - public boolean iscompleted(int _ndialogpage); + boolean iscompleted(int _ndialogpage); - public void setmodified(int _ndialogpage, Object ooldValue, Object onewValue); + void setmodified(int _ndialogpage, Object ooldValue, Object onewValue); - public boolean ismodified(int _ndialogpage); + boolean ismodified(int _ndialogpage); } diff --git a/wizards/com/sun/star/wizards/ui/XFieldSelectionListener.java b/wizards/com/sun/star/wizards/ui/XFieldSelectionListener.java index 3e0c0fe042f2..a0c3714b22af 100644 --- a/wizards/com/sun/star/wizards/ui/XFieldSelectionListener.java +++ b/wizards/com/sun/star/wizards/ui/XFieldSelectionListener.java @@ -21,15 +21,15 @@ package com.sun.star.wizards.ui; public interface XFieldSelectionListener { - public void shiftFromLeftToRight(String[] SelItems, String[] NewItems); + void shiftFromLeftToRight(String[] SelItems, String[] NewItems); - public void shiftFromRightToLeft(String[] OldSelItems, String[] NewItems); + void shiftFromRightToLeft(String[] OldSelItems, String[] NewItems); - public void moveItemUp(String Selitem); + void moveItemUp(String Selitem); - public void moveItemDown(String Selitem); + void moveItemDown(String Selitem); - public void setID(String sIncSuffix); + void setID(String sIncSuffix); - public int getID(); + int getID(); } diff --git a/wizards/com/sun/star/wizards/ui/XPathSelectionListener.java b/wizards/com/sun/star/wizards/ui/XPathSelectionListener.java index 248b46b03983..6a9d4ad9e7af 100644 --- a/wizards/com/sun/star/wizards/ui/XPathSelectionListener.java +++ b/wizards/com/sun/star/wizards/ui/XPathSelectionListener.java @@ -21,5 +21,5 @@ package com.sun.star.wizards.ui; public interface XPathSelectionListener { - public void validatePath(); + void validatePath(); } diff --git a/wizards/com/sun/star/wizards/ui/event/ListModelBinder.java b/wizards/com/sun/star/wizards/ui/event/ListModelBinder.java index 31d8ed5fe2a8..d2b4b98f149a 100644 --- a/wizards/com/sun/star/wizards/ui/event/ListModelBinder.java +++ b/wizards/com/sun/star/wizards/ui/event/ListModelBinder.java @@ -134,10 +134,10 @@ public class ListModelBinder implements ListDataListener remove((short) lde.getIndex0(), (short) lde.getIndex1()); } - public static interface Renderer + public interface Renderer { - public String render(Object item); + String render(Object item); } public static void fillList(Object list, Object[] items, Renderer renderer) diff --git a/wizards/com/sun/star/wizards/ui/event/TaskListener.java b/wizards/com/sun/star/wizards/ui/event/TaskListener.java index bb2292b95dd9..61c8b2bfd0d0 100644 --- a/wizards/com/sun/star/wizards/ui/event/TaskListener.java +++ b/wizards/com/sun/star/wizards/ui/event/TaskListener.java @@ -22,14 +22,14 @@ import java.util.EventListener; public interface TaskListener extends EventListener { - public void taskStarted(TaskEvent te); + void taskStarted(TaskEvent te); - public void taskFinished(TaskEvent te); + void taskFinished(TaskEvent te); /** * is called when the status of the task has advanced. */ - public void taskStatusChanged(TaskEvent te); + void taskStatusChanged(TaskEvent te); - public void subtaskNameChanged(TaskEvent te); + void subtaskNameChanged(TaskEvent te); } |