Kaydet (Commit) 48633151 authored tarafından Noel Grandin's avatar Noel Grandin

java: methods in interfaces are implicitly public

Change-Id: I543fe5b8890668f60d6528a2a7ae6d099d5b4945
üst 4b5cb7ef
...@@ -25,6 +25,6 @@ package com.sun.star.wizards.common; ...@@ -25,6 +25,6 @@ package com.sun.star.wizards.common;
public interface Indexable { public interface Indexable {
public int getIndex(); int getIndex();
} }
...@@ -240,9 +240,8 @@ public class UCB ...@@ -240,9 +240,8 @@ public class UCB
XContentProvider.class,ucb).queryContent(id); XContentProvider.class,ucb).queryContent(id);
} }
public static interface Verifier public interface Verifier
{ {
boolean verify(Object object);
public boolean verify(Object object);
} }
} }
...@@ -28,5 +28,5 @@ import org.w3c.dom.Node; ...@@ -28,5 +28,5 @@ import org.w3c.dom.Node;
public interface XMLProvider public interface XMLProvider
{ {
public Node createDOM(Node parent); Node createDOM(Node parent);
} }
...@@ -41,11 +41,10 @@ public class QueryMetaData extends CommandMetaData ...@@ -41,11 +41,10 @@ public class QueryMetaData extends CommandMetaData
}; };
public int Type = QueryType.SODETAILQUERY; public int Type = QueryType.SODETAILQUERY;
public static interface QueryType public interface QueryType
{ {
int SOSUMMARYQUERY = 0;
final static int SOSUMMARYQUERY = 0; int SODETAILQUERY = 1;
final static int SODETAILQUERY = 1;
} }
public QueryMetaData(XMultiServiceFactory xMSF, Locale CharLocale, NumberFormatter oNumberFormatter) public QueryMetaData(XMultiServiceFactory xMSF, Locale CharLocale, NumberFormatter oNumberFormatter)
......
...@@ -32,17 +32,17 @@ public interface IReportDefinitionReadAccess ...@@ -32,17 +32,17 @@ public interface IReportDefinitionReadAccess
* Gives access to a ReportDefinition, if initialized. * Gives access to a ReportDefinition, if initialized.
* @return a ReportDefinition or null. * @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. * This ServiceFactory is the 'global' Service Factory, which knows all and every thing in the program.
* @return the global service factory of 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 * Returns the file path to the default report definition, we need this name for early initialisation
*/ */
public String getDefaultHeaderLayout(); String getDefaultHeaderLayout();
} }
...@@ -33,7 +33,7 @@ public interface IReportDocument ...@@ -33,7 +33,7 @@ public interface IReportDocument
// initialisation // initialisation
public void initialize( void initialize(
final XDatabaseDocumentUI i_documentUI, final XDatabaseDocumentUI i_documentUI,
final Resource i_resource final Resource i_resource
); );
...@@ -44,22 +44,22 @@ public interface IReportDocument ...@@ -44,22 +44,22 @@ public interface IReportDocument
/** /**
* Gives access to the DB Values * 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 * Give access to the parent document
* It is a document in the old Wizard * It is a document in the old Wizard
* It is a Report Builder in the new 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 * @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 // First step: After entering the table name, select fields
...@@ -67,17 +67,17 @@ public interface IReportDocument ...@@ -67,17 +67,17 @@ public interface IReportDocument
/** /**
* Is called after first step, set Tablename and the fields, which should occur in the Report. * 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 * Empties the report document
*/ */
public void clearDocument(); void clearDocument();
/** /**
* Empties the report document, if we called back, don't remove Grouping/Sorting * Empties the report document, if we called back, don't remove Grouping/Sorting
*/ */
public void removeTextTableAndTextSection(); void removeTextTableAndTextSection();
// Second step: Label field titles // Second step: Label field titles
...@@ -85,7 +85,7 @@ public interface IReportDocument ...@@ -85,7 +85,7 @@ public interface IReportDocument
/** /**
* Set new names for the titles * 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. * Change a the name of the 'title' of one field.
...@@ -93,7 +93,7 @@ public interface IReportDocument ...@@ -93,7 +93,7 @@ public interface IReportDocument
* element title of a given element name. * element title of a given element name.
* This is only used as a preview * 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 // Third step: Grouping
...@@ -102,52 +102,52 @@ public interface IReportDocument ...@@ -102,52 +102,52 @@ public interface IReportDocument
/** /**
* Called by press ('greater then') add a group to the group list * 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 * 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 * set the list how to group
*/ */
public void setGrouping(String[] aGroupList); void setGrouping(String[] aGroupList);
// Fourth step: Sorting // Fourth step: Sorting
/** /**
* Set the list how to sort * Set the list how to sort
*/ */
public void setSorting(String[][] aSort); void setSorting(String[][] aSort);
// Fivth step: Templates / Layout // Fivth step: Templates / Layout
/* Template Page */ /* 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 * 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 * 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 // finishing
...@@ -157,63 +157,63 @@ public interface IReportDocument ...@@ -157,63 +157,63 @@ public interface IReportDocument
* Set the Title into the document from the 'Create Report Page' * Set the Title into the document from the 'Create Report Page'
* BUG: The Title is empty after create Report. * 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 * 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 * The current report is added to the DB View under the given name
* *
* TODO: add Name to this functionality * 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 * Create the final Report document
*/ */
public void createAndOpenReportDocument( void createAndOpenReportDocument(
final String Name, final String Name,
final boolean _bAsTemplate, final boolean _bAsTemplate,
final boolean _bOpenInDesign final boolean _bOpenInDesign
); );
public void dispose(); void dispose();
// Garbage dump // Garbage dump
/* DataImport */ /* 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. * set a internal variable to stop a maybe longer DB access.
*/ */
public void StopProcess(); // cancel void StopProcess(); // cancel
/** /**
* Returns a string list of layouts. * Returns a string list of layouts.
*/ */
public String[][] getDataLayout(); String[][] getDataLayout();
/** /**
* Returns a string list of header layouts * 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 * check internal invariants
*/ */
public void checkInvariants() throws java.lang.Exception; void checkInvariants() throws java.lang.Exception;
} }
...@@ -790,14 +790,14 @@ public class ImageList implements XItemEventBroadcaster, ListDataListener ...@@ -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 * @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. * 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 private static class SimpleCounterRenderer implements IRenderer
......
...@@ -20,5 +20,5 @@ package com.sun.star.wizards.ui; ...@@ -20,5 +20,5 @@ package com.sun.star.wizards.ui;
public interface XCommandSelectionListener public interface XCommandSelectionListener
{ {
public void CommandSelected(String CommandName); void CommandSelected(String CommandName);
} }
...@@ -20,11 +20,11 @@ package com.sun.star.wizards.ui; ...@@ -20,11 +20,11 @@ package com.sun.star.wizards.ui;
public interface XCompletion 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);
} }
...@@ -21,15 +21,15 @@ package com.sun.star.wizards.ui; ...@@ -21,15 +21,15 @@ package com.sun.star.wizards.ui;
public interface XFieldSelectionListener 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();
} }
...@@ -21,5 +21,5 @@ package com.sun.star.wizards.ui; ...@@ -21,5 +21,5 @@ package com.sun.star.wizards.ui;
public interface XPathSelectionListener public interface XPathSelectionListener
{ {
public void validatePath(); void validatePath();
} }
...@@ -134,10 +134,10 @@ public class ListModelBinder implements ListDataListener ...@@ -134,10 +134,10 @@ public class ListModelBinder implements ListDataListener
remove((short) lde.getIndex0(), (short) lde.getIndex1()); 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) public static void fillList(Object list, Object[] items, Renderer renderer)
......
...@@ -22,14 +22,14 @@ import java.util.EventListener; ...@@ -22,14 +22,14 @@ import java.util.EventListener;
public interface TaskListener extends 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. * 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);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment