diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-13 17:05:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-20 11:45:28 +0200 |
commit | 8c9fdc4a963fd55da59a93c979071f53b84fbc24 (patch) | |
tree | e913f69cee6ec9e3e2072f73d58088ae74d2260d /wizards | |
parent | 34352e7f1b0fe55da4d1d43921674344ae6deafc (diff) |
java: remove modifiers implied by the context
found by PMD
Change-Id: I04cbf986ddbcffff987784f381b8a9f52f1b3f31
Diffstat (limited to 'wizards')
19 files changed, 140 insertions, 145 deletions
diff --git a/wizards/com/sun/star/wizards/common/ConfigNode.java b/wizards/com/sun/star/wizards/common/ConfigNode.java index 7bb08aa89741..69cd96fc071f 100644 --- a/wizards/com/sun/star/wizards/common/ConfigNode.java +++ b/wizards/com/sun/star/wizards/common/ConfigNode.java @@ -35,9 +35,9 @@ public interface ConfigNode * to be used in a tree like way, reading objects and subobjects and so on, * it might be practical to be able to pass an extra parameter, for a free use. */ - public void readConfiguration(Object configurationView, Object param); + void readConfiguration(Object configurationView, Object param); - public void writeConfiguration(Object configurationView, Object param); + void writeConfiguration(Object configurationView, Object param); - public void setRoot(Object root); + void setRoot(Object root); } diff --git a/wizards/com/sun/star/wizards/common/IRenderer.java b/wizards/com/sun/star/wizards/common/IRenderer.java index c4513ea75ab1..c704ed6f49df 100644 --- a/wizards/com/sun/star/wizards/common/IRenderer.java +++ b/wizards/com/sun/star/wizards/common/IRenderer.java @@ -26,5 +26,5 @@ package com.sun.star.wizards.common; public interface IRenderer { - public String render(Object object); + String render(Object object); } 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 6f6cf053a8d0..0c770cd37bf9 100644 --- a/wizards/com/sun/star/wizards/common/UCB.java +++ b/wizards/com/sun/star/wizards/common/UCB.java @@ -240,9 +240,9 @@ public class UCB XContentProvider.class,ucb).queryContent(id); } - private static interface Verifier + private 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 04852ae5c80e..58b005db90d8 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/IReportBuilderLayouter.java b/wizards/com/sun/star/wizards/report/IReportBuilderLayouter.java index 6ccb7c5db9f3..8f1446f0e1fc 100644 --- a/wizards/com/sun/star/wizards/report/IReportBuilderLayouter.java +++ b/wizards/com/sun/star/wizards/report/IReportBuilderLayouter.java @@ -29,78 +29,78 @@ public interface IReportBuilderLayouter * This name identifies the layout in the internal access list. * @return the internal layout name. */ - public String getName(); + String getName(); /** * Get the localized name of the layout, which is shown in the layout page of the report wizard. * This name comes out of the resource and will be translate in different languages. * @return localized name of the layout. */ - public String getLocalizedName(); + String getLocalizedName(); /** * For Landscape give nOrientation == com.sun.star.wizards.report.ReportLayouter.SOOPTLANDSCAPE * All other numbers are interpreted as portrait format. */ - public void setPageOrientation(int nOrientation); + void setPageOrientation(int nOrientation); /** * dispose the layouter */ - public void dispose(); + void dispose(); /** * Set the table name of the report * This is the name to the database table. * @param _nType something of com.sun.star.sdb.CommandType */ - public void setTableName(int _nType, String TableName); + void setTableName(int _nType, String TableName); /** * Insert the field names, these are the field names out of a given datebase table */ - public void insertFieldNames(final String[] FieldNames); + void insertFieldNames(final String[] FieldNames); /** * Insert the field type (Varchar, int, ...) as internal an int representation. */ - public void insertFieldTypes(int[] FieldTypes); + void insertFieldTypes(int[] FieldTypes); /** * Insert the field width in count of chars as given in the database. */ - public void insertFieldWidths(int[] FieldWidths); + void insertFieldWidths(int[] FieldWidths); /** * Insert the titles of the field names. This names are free formed */ - public void insertFieldTitles(String[] _aFieldTitles); + void insertFieldTitles(String[] _aFieldTitles); /** * Insert the names of the groups, the group names are names out of the field names. * * If a group name is given here, it will not shown in the fields/titles, but must be in the field string list. */ - public void insertGroupNames(String[] _aGroupFieldNames); + void insertGroupNames(String[] _aGroupFieldNames); /** * Insert the names of the groups which should be used as sorting, the group names are names out of the field names. * * If a group name is given here, it will not shown in the fields/titles, but must be in the field string list. */ - public void insertSortingNames(String[][] _aSortFieldNames); + void insertSortingNames(String[][] _aSortFieldNames); /** * This method redraws the whole layout with all its content */ - public void layout(); + void layout(); /** * Initialize the current Layouter with data's out of an other Layouter. * * This Method copies the internal fields, groups and titles */ - public void initializeData(IReportBuilderLayouter aOtherLayouter); + void initializeData(IReportBuilderLayouter aOtherLayouter); - public void loadAndSetBackgroundTemplate(String LayoutTemplatePath); + void loadAndSetBackgroundTemplate(String LayoutTemplatePath); } 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/ButtonList.java b/wizards/com/sun/star/wizards/ui/ButtonList.java index 81d4766535dc..fee21ebc229a 100644 --- a/wizards/com/sun/star/wizards/ui/ButtonList.java +++ b/wizards/com/sun/star/wizards/ui/ButtonList.java @@ -568,14 +568,14 @@ public class ButtonList implements XItemEventBroadcaster, XActionListener } - 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/ImageList.java b/wizards/com/sun/star/wizards/ui/ImageList.java index f8cb5021eea3..f77a2845acaf 100644 --- a/wizards/com/sun/star/wizards/ui/ImageList.java +++ b/wizards/com/sun/star/wizards/ui/ImageList.java @@ -788,14 +788,14 @@ public class ImageList implements XItemEventBroadcaster, ListDataListener }; } - private static interface IImageRenderer extends IRenderer + private 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/UIConsts.java b/wizards/com/sun/star/wizards/ui/UIConsts.java index 058b7852e56f..948b7251b7e0 100644 --- a/wizards/com/sun/star/wizards/ui/UIConsts.java +++ b/wizards/com/sun/star/wizards/ui/UIConsts.java @@ -21,55 +21,55 @@ package com.sun.star.wizards.ui; public interface UIConsts { - public static final int RID_COMMON = 500; - public static final int RID_DB_COMMON = 1000; - public static final int RID_FORM = 2200; - public static final int RID_QUERY = 2300; - public static final int RID_REPORT = 2400; - public static final int RID_TABLE = 2600; - public static final int RID_IMG_FORM = 1100; - public static final Integer INVISIBLESTEP = 99; - public static final String INFOIMAGEURL = "private:resource/dbu/image/19205"; - public static final String INFOIMAGEURL_HC = "private:resource/dbu/image/19230"; + int RID_COMMON = 500; + int RID_DB_COMMON = 1000; + int RID_FORM = 2200; + int RID_QUERY = 2300; + int RID_REPORT = 2400; + int RID_TABLE = 2600; + int RID_IMG_FORM = 1100; + Integer INVISIBLESTEP = 99; + String INFOIMAGEURL = "private:resource/dbu/image/19205"; + String INFOIMAGEURL_HC = "private:resource/dbu/image/19230"; /** * The tabindex of the navigation buttons in a wizard must be assigned a very * high tabindex because on every step their taborder must appear at the end */ - public static final short SOFIRSTWIZARDNAVITABINDEX = 30000; - public static final Integer INTEGER_12 = 12; + short SOFIRSTWIZARDNAVITABINDEX = 30000; + Integer INTEGER_12 = 12; /**Steps of the QueryWizard * */ - public static final int SOGROUPSELECTIONPAGE = 5; - public static final int SOGROUPFILTERPAGE = 6; - public static final int SOTITLESPAGE = 7; - public static final Integer[] INTEGERS = new Integer[] + int SOGROUPSELECTIONPAGE = 5; + int SOGROUPFILTERPAGE = 6; + int SOTITLESPAGE = 7; + Integer[] INTEGERS = new Integer[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; - class CONTROLTYPE + public interface CONTROLTYPE { - public static final int BUTTON = 1; - public static final int IMAGECONTROL = 2; - public static final int LISTBOX = 3; - public static final int COMBOBOX = 4; - public static final int CHECKBOX = 5; - public static final int RADIOBUTTON = 6; - public static final int DATEFIELD = 7; - public static final int EDITCONTROL = 8; - public static final int FIXEDLINE = 10; - public static final int FIXEDTEXT = 11; - public static final int FORMATTEDFIELD = 12; - public static final int HYPERTEXT = 14; - public static final int NUMERICFIELD = 15; - public static final int PATTERNFIELD = 16; - public static final int PROGRESSBAR = 17; - public static final int ROADMAP = 18; - public static final int SCROLLBAR = 19; - public static final int TIMEFIELD = 20; - public static final int CURRENCYFIELD = 21; - public static final int UNKNOWN = -1; + int BUTTON = 1; + int IMAGECONTROL = 2; + int LISTBOX = 3; + int COMBOBOX = 4; + int CHECKBOX = 5; + int RADIOBUTTON = 6; + int DATEFIELD = 7; + int EDITCONTROL = 8; + int FIXEDLINE = 10; + int FIXEDTEXT = 11; + int FORMATTEDFIELD = 12; + int HYPERTEXT = 14; + int NUMERICFIELD = 15; + int PATTERNFIELD = 16; + int PROGRESSBAR = 17; + int ROADMAP = 18; + int SCROLLBAR = 19; + int TIMEFIELD = 20; + int CURRENCYFIELD = 21; + int UNKNOWN = -1; } } diff --git a/wizards/com/sun/star/wizards/ui/XCompletion.java b/wizards/com/sun/star/wizards/ui/XCompletion.java index fbcfd5670269..0b763484ac7e 100644 --- a/wizards/com/sun/star/wizards/ui/XCompletion.java +++ b/wizards/com/sun/star/wizards/ui/XCompletion.java @@ -20,11 +20,8 @@ package com.sun.star.wizards.ui; public interface XCompletion { - public void setcompleted(int _ndialogpage, boolean _biscompleted); - - public boolean iscompleted(int _ndialogpage); - - + void setcompleted(int _ndialogpage, boolean _biscompleted); + boolean iscompleted(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/DataAware.java b/wizards/com/sun/star/wizards/ui/event/DataAware.java index 185cd3cb1a94..2b7b1966a0cb 100644 --- a/wizards/com/sun/star/wizards/ui/event/DataAware.java +++ b/wizards/com/sun/star/wizards/ui/event/DataAware.java @@ -116,7 +116,7 @@ public abstract class DataAware { } public interface Listener { - public void eventPerformed(Object event); + void eventPerformed(Object event); } /** @@ -163,13 +163,13 @@ public abstract class DataAware { * @param target the object to get the value from. * @return the value from the given object. */ - public Object get(Object target); + Object get(Object target); /** * sets a value to the given object. * @param value the value to set to the object. * @param target the object to set the value to. */ - public void set(Object value, Object target); + void set(Object value, Object target); /** * checks if this Value object can handle * the given object type as a target. @@ -177,7 +177,7 @@ public abstract class DataAware { * @return true if the given class is acceptable for * the Value object. False if not. */ - public boolean isAssignable(Class<?> type); + boolean isAssignable(Class<?> type); } /** diff --git a/wizards/com/sun/star/wizards/ui/event/EventNames.java b/wizards/com/sun/star/wizards/ui/event/EventNames.java index 0cf0f17ef5fb..31cd25cc7815 100644 --- a/wizards/com/sun/star/wizards/ui/event/EventNames.java +++ b/wizards/com/sun/star/wizards/ui/event/EventNames.java @@ -21,19 +21,19 @@ public interface EventNames { //common listener events - public static final String EVENT_ACTION_PERFORMED = "APR"; - public static final String EVENT_ITEM_CHANGED = "ICH"; - public static final String EVENT_TEXT_CHANGED = "TCH"; //window events (XWindow) - public static final String EVENT_WINDOW_RESIZED = "WRE"; - public static final String EVENT_WINDOW_MOVED = "WMO"; - public static final String EVENT_WINDOW_SHOWN = "WSH"; - public static final String EVENT_WINDOW_HIDDEN = "WHI"; //focus events (XWindow) - public static final String EVENT_FOCUS_GAINED = "FGA"; - public static final String EVENT_FOCUS_LOST = "FLO"; //keyboard events - public static final String EVENT_KEY_PRESSED = "KPR"; - public static final String EVENT_KEY_RELEASED = "KRE"; //mouse events - public static final String EVENT_MOUSE_PRESSED = "MPR"; + String EVENT_ACTION_PERFORMED = "APR"; + String EVENT_ITEM_CHANGED = "ICH"; + String EVENT_TEXT_CHANGED = "TCH"; //window events (XWindow) + String EVENT_WINDOW_RESIZED = "WRE"; + String EVENT_WINDOW_MOVED = "WMO"; + String EVENT_WINDOW_SHOWN = "WSH"; + String EVENT_WINDOW_HIDDEN = "WHI"; //focus events (XWindow) + String EVENT_FOCUS_GAINED = "FGA"; + String EVENT_FOCUS_LOST = "FLO"; //keyboard events + String EVENT_KEY_PRESSED = "KPR"; + String EVENT_KEY_RELEASED = "KRE"; //mouse events + String EVENT_MOUSE_PRESSED = "MPR"; - public static final String EVENT_MOUSE_ENTERED = "MEN"; - public static final String EVENT_MOUSE_EXITED = "MEX"; //other events + String EVENT_MOUSE_ENTERED = "MEN"; + String EVENT_MOUSE_EXITED = "MEX"; //other events } diff --git a/wizards/com/sun/star/wizards/ui/event/ListModelBinder.java b/wizards/com/sun/star/wizards/ui/event/ListModelBinder.java index 5ecc1c8c9a89..4ad1cff82884 100644 --- a/wizards/com/sun/star/wizards/ui/event/ListModelBinder.java +++ b/wizards/com/sun/star/wizards/ui/event/ListModelBinder.java @@ -134,10 +134,9 @@ public class ListModelBinder implements ListDataListener remove((short) lde.getIndex0(), (short) lde.getIndex1()); } - private static interface Renderer + private 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); } |