diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-09 11:25:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-09 11:14:56 +0000 |
commit | b5df54c5bcaa376117832e39f63a379e7b8ba201 (patch) | |
tree | c123ef229bcf9bfbf5167bf7942002bff10d6053 /wizards | |
parent | a3db4959b07d2454fba7774f04c7658ae4fba783 (diff) |
java: add some @Override annotations
Change-Id: I291db1dff5ab3ce40fda6f822a0e3ff1e6ef36c1
Reviewed-on: https://gerrit.libreoffice.org/19855
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'wizards')
27 files changed, 65 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java b/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java index 60ec7eb6aed0..72778d5edcbe 100644 --- a/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java +++ b/wizards/com/sun/star/wizards/common/PlaceholderTextElement.java @@ -38,6 +38,7 @@ public class PlaceholderTextElement extends TextElement xmsf = xmsf_; } + @Override public void write(Object textRange) { super.write(textRange); diff --git a/wizards/com/sun/star/wizards/common/TextElement.java b/wizards/com/sun/star/wizards/common/TextElement.java index 08afd2dbe511..a8ee641e1d77 100644 --- a/wizards/com/sun/star/wizards/common/TextElement.java +++ b/wizards/com/sun/star/wizards/common/TextElement.java @@ -37,6 +37,7 @@ public class TextElement extends ParaStyled text = text_; } + @Override public void write(Object textRange) { UnoRuntime.queryInterface(XTextRange.class, textRange).setString(text); diff --git a/wizards/com/sun/star/wizards/db/RecordParser.java b/wizards/com/sun/star/wizards/db/RecordParser.java index 21be84a664a1..c06566874cef 100644 --- a/wizards/com/sun/star/wizards/db/RecordParser.java +++ b/wizards/com/sun/star/wizards/db/RecordParser.java @@ -232,6 +232,7 @@ public class RecordParser extends QueryMetaData return true; } + @Override public void dispose() { if (xRowSetComponent != null) diff --git a/wizards/com/sun/star/wizards/db/TableDescriptor.java b/wizards/com/sun/star/wizards/db/TableDescriptor.java index 2db69f52c31c..c2ce80cf3d07 100644 --- a/wizards/com/sun/star/wizards/db/TableDescriptor.java +++ b/wizards/com/sun/star/wizards/db/TableDescriptor.java @@ -95,6 +95,7 @@ public class TableDescriptor extends CommandMetaData implements XContainerListen } } + @Override public boolean getConnection(PropertyValue[] _curPropertyValue) { if (super.getConnection(_curPropertyValue)) diff --git a/wizards/com/sun/star/wizards/document/TimeStampControl.java b/wizards/com/sun/star/wizards/document/TimeStampControl.java index 555e16492a5e..bd4bd8a7493e 100644 --- a/wizards/com/sun/star/wizards/document/TimeStampControl.java +++ b/wizards/com/sun/star/wizards/document/TimeStampControl.java @@ -85,17 +85,20 @@ public class TimeStampControl extends DatabaseControl oTimeControl = new DatabaseControl(_oGridControl, _curfieldcolumn, DataType.TIME, _curfieldcolumn.getFieldTitle() + PropertyNames.SPACE + sTimeAppendix); } + @Override public void setPropertyValue(String _sPropertyName, Object _aPropertyValue) throws Exception { oDateControl.setPropertyValue(_sPropertyName, _aPropertyValue); oTimeControl.setPropertyValue(_sPropertyName, _aPropertyValue); } + @Override public int getPreferredWidth() { return nDBWidth; } + @Override public int getControlType() { return FormHandler.SODATETIMECONTROL; diff --git a/wizards/com/sun/star/wizards/form/CallFormWizard.java b/wizards/com/sun/star/wizards/form/CallFormWizard.java index 5aedc274dff1..297ce5775455 100644 --- a/wizards/com/sun/star/wizards/form/CallFormWizard.java +++ b/wizards/com/sun/star/wizards/form/CallFormWizard.java @@ -126,6 +126,7 @@ public class CallFormWizard return booleanSupportsService; } + @Override public byte[] getImplementationId() { return new byte[0]; @@ -144,6 +145,7 @@ public class CallFormWizard * @return Sequence of all types (usually interface types) provided by the * service. */ + @Override public Type[] getTypes() { Type[] typeReturn = diff --git a/wizards/com/sun/star/wizards/form/FieldLinker.java b/wizards/com/sun/star/wizards/form/FieldLinker.java index 2a0c3d3d313d..3384f0283912 100644 --- a/wizards/com/sun/star/wizards/form/FieldLinker.java +++ b/wizards/com/sun/star/wizards/form/FieldLinker.java @@ -48,6 +48,7 @@ public class FieldLinker extends DBLimitedFieldSelection super(_CurUnoDialog, iStep, iCompPosY, _firsthelpid); } + @Override protected void insertControlGroup(int i) { try @@ -154,6 +155,7 @@ public class FieldLinker extends DBLimitedFieldSelection } } + @Override protected void enableNextControlRow(int curindex) { boolean bSlaveField = lstSlaveFields[curindex].getSelectedItemPos() > 0; @@ -169,6 +171,7 @@ public class FieldLinker extends DBLimitedFieldSelection } } + @Override protected int getMaxSelIndex() { int MaxSelIndex = -1; @@ -182,6 +185,7 @@ public class FieldLinker extends DBLimitedFieldSelection return MaxSelIndex; } + @Override protected void toggleControlRow(int i, boolean bDoEnable) { if (i < rowcount) @@ -198,6 +202,7 @@ public class FieldLinker extends DBLimitedFieldSelection } } + @Override protected void updateFromNextControlRow(int curindex) { short iNextMasterItemPos = lstMasterFields[curindex + 1].getSelectedItemPos(); diff --git a/wizards/com/sun/star/wizards/form/FormWizard.java b/wizards/com/sun/star/wizards/form/FormWizard.java index 5247f61aac0b..106d3ccf9ac6 100644 --- a/wizards/com/sun/star/wizards/form/FormWizard.java +++ b/wizards/com/sun/star/wizards/form/FormWizard.java @@ -93,6 +93,7 @@ public class FormWizard extends DatabaseObjectWizard } // @Override + @Override protected void enterStep(int nOldStep, int nNewStep) { try @@ -167,6 +168,7 @@ public class FormWizard extends DatabaseObjectWizard } // @Override + @Override protected void leaveStep(int nOldStep, int nNewStep) { switch (nOldStep) @@ -270,6 +272,7 @@ public class FormWizard extends DatabaseObjectWizard } // @Override + @Override public boolean finishWizard() { int ncurStep = getCurrentStep(); @@ -302,6 +305,7 @@ public class FormWizard extends DatabaseObjectWizard } // @Override + @Override public void cancelWizard() { m_success = false; diff --git a/wizards/com/sun/star/wizards/query/QueryWizard.java b/wizards/com/sun/star/wizards/query/QueryWizard.java index a067ffbcb3eb..1a76ca7a4d5f 100644 --- a/wizards/com/sun/star/wizards/query/QueryWizard.java +++ b/wizards/com/sun/star/wizards/query/QueryWizard.java @@ -252,6 +252,7 @@ public class QueryWizard extends DatabaseObjectWizard } } + @Override public boolean finishWizard() { int ncurStep = getCurrentStep(); @@ -269,6 +270,7 @@ public class QueryWizard extends DatabaseObjectWizard return false; } + @Override protected void enterStep(int nOldStep, int nNewStep) { try @@ -316,6 +318,7 @@ public class QueryWizard extends DatabaseObjectWizard } } + @Override protected void leaveStep(int nOldStep, int nNewStep) { switch (nOldStep) diff --git a/wizards/com/sun/star/wizards/report/CallReportWizard.java b/wizards/com/sun/star/wizards/report/CallReportWizard.java index 47e2a53b2938..08ca4bf89f4d 100644 --- a/wizards/com/sun/star/wizards/report/CallReportWizard.java +++ b/wizards/com/sun/star/wizards/report/CallReportWizard.java @@ -158,6 +158,7 @@ public class CallReportWizard return booleanSupportsService; } + @Override public byte[] getImplementationId() { return new byte[0]; @@ -176,6 +177,7 @@ public class CallReportWizard * @return Sequence of all types (usually interface types) provided by the * service. */ + @Override public Type[] getTypes() { Type[] typeReturn = diff --git a/wizards/com/sun/star/wizards/report/GroupFieldHandler.java b/wizards/com/sun/star/wizards/report/GroupFieldHandler.java index 16197483acc6..3130fbe84671 100644 --- a/wizards/com/sun/star/wizards/report/GroupFieldHandler.java +++ b/wizards/com/sun/star/wizards/report/GroupFieldHandler.java @@ -115,6 +115,7 @@ public class GroupFieldHandler extends FieldSelection CurDBMetaData.GroupFieldNames = GroupFieldNames; } // @Override + @Override protected void toggleListboxButtons(short iFieldsSelIndex, short iSelFieldsSelIndex) { super.toggleListboxButtons(iFieldsSelIndex, iSelFieldsSelIndex); @@ -125,6 +126,7 @@ public class GroupFieldHandler extends FieldSelection } } + @Override public void selectFields(boolean bMoveAll) { int iSelCount = xSelectedFieldsListBox.getItemCount(); diff --git a/wizards/com/sun/star/wizards/report/ReportWizard.java b/wizards/com/sun/star/wizards/report/ReportWizard.java index 469680e38b53..6a2acb29fe6f 100644 --- a/wizards/com/sun/star/wizards/report/ReportWizard.java +++ b/wizards/com/sun/star/wizards/report/ReportWizard.java @@ -114,6 +114,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener } } + @Override protected void enterStep(int nOldStep, int nNewStep) { if ((nOldStep >= SOTEMPLATEPAGE) && (nNewStep < SOTEMPLATEPAGE)) @@ -157,6 +158,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener } } + @Override protected void leaveStep(int nOldStep, int nNewStep) { @@ -325,6 +327,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener enableNavigationButtons(false, false, false); } + @Override public boolean finishWizard() { final int ncurStep = getCurrentStep(); @@ -344,6 +347,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener return false; } + @Override public void cancelWizard() { xDialog.endExecute(); @@ -602,6 +606,7 @@ public class ReportWizard extends DatabaseObjectWizard implements XTextListener } } + @Override public void disposing(EventObject EventObject) { } diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarSingleColumn.java b/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarSingleColumn.java index ac166083dd9b..d553d24d7600 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarSingleColumn.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarSingleColumn.java @@ -41,6 +41,7 @@ public class ColumnarSingleColumn extends ReportBuilderLayouter return getResource().getResText(UIConsts.RID_REPORT + 81); } + @Override protected void insertDetailFields() { copyDetailProperties(); @@ -82,6 +83,7 @@ public class ColumnarSingleColumn extends ReportBuilderLayouter doNotBreakInTable(xSection); } + @Override protected void insertDetailFieldTitles(int lastGroupPostion) { // we won't extra field titles diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarThreeColumns.java b/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarThreeColumns.java index 82281f548be4..e12d87087ada 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarThreeColumns.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarThreeColumns.java @@ -29,16 +29,19 @@ public class ColumnarThreeColumns extends ColumnarTwoColumns super(_xDefinitionAccess, _aResource); } + @Override public String getName() { return "ColumnarThreeColumnsLayoutOfData"; } + @Override public String getLocalizedName() { return getResource().getResText(UIConsts.RID_REPORT + 83); } + @Override protected void insertDetailFields() { insertDetailFields(3); diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarTwoColumns.java b/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarTwoColumns.java index e75eefc21359..2d5b618e7abd 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarTwoColumns.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/ColumnarTwoColumns.java @@ -41,6 +41,7 @@ public class ColumnarTwoColumns extends ReportBuilderLayouter return getResource().getResText(UIConsts.RID_REPORT + 82); } + @Override protected void insertDetailFields() { insertDetailFields(2); @@ -114,6 +115,7 @@ public class ColumnarTwoColumns extends ReportBuilderLayouter doNotBreakInTable(xSection); } + @Override protected void insertDetailFieldTitles(int lastGroupPostion) { // we won't extra field titles diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsAbove.java b/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsAbove.java index fb1687a578a4..8ae01e978542 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsAbove.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsAbove.java @@ -31,16 +31,19 @@ public class InBlocksLabelsAbove extends ColumnarTwoColumns super(_xDefinitionAccess, _aResource); } + @Override public String getName() { return "InBlocksLabelsAboveLayoutOfData"; } + @Override public String getLocalizedName() { return getResource().getResText(UIConsts.RID_REPORT + 85); } + @Override protected void insertDetailFields() { copyDetailProperties(); @@ -137,6 +140,7 @@ public class InBlocksLabelsAbove extends ColumnarTwoColumns doNotBreakInTable(xSection); } + @Override protected void insertDetailFieldTitles(int lastGroupPostion) { // we won't extra field titles diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsLeft.java b/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsLeft.java index f7fef368ab02..5fea096e9989 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsLeft.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/InBlocksLabelsLeft.java @@ -32,16 +32,19 @@ public class InBlocksLabelsLeft extends ColumnarTwoColumns super(_xDefinitionAccess, _aResource); } + @Override public String getName() { return "InBlocksLabelsLeftLayoutOfData"; } + @Override public String getLocalizedName() { return getResource().getResText(UIConsts.RID_REPORT + 84); } + @Override protected void insertDetailFields() { copyDetailProperties(); @@ -108,6 +111,7 @@ public class InBlocksLabelsLeft extends ColumnarTwoColumns doNotBreakInTable(xSection); } + @Override protected void insertDetailFieldTitles(int lastGroupPostion) { // we won't extra field titles diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionEmptyObject.java b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionEmptyObject.java index 27c30f85feb5..f8f03c4c0483 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionEmptyObject.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionEmptyObject.java @@ -32,6 +32,7 @@ public class SectionEmptyObject extends SectionObject return new SectionEmptyObject(); } + @Override public FontDescriptor getFontDescriptor() { return null; diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java index 8ee85ffc4d8b..8a4027033603 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionLabel.java @@ -36,6 +36,7 @@ public class SectionLabel extends SectionObject /** * Return the current FontDescriptor */ + @Override public FontDescriptor getFontDescriptor() { FontDescriptor a = null; diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java index 46a42a0bd2a9..bc7be4e88462 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/SectionTextField.java @@ -34,6 +34,7 @@ public class SectionTextField extends SectionObject return new SectionTextField(_aFormattedField); } + @Override public FontDescriptor getFontDescriptor() { FontDescriptor a = null; diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/Tabular.java b/wizards/com/sun/star/wizards/reportbuilder/layout/Tabular.java index fe9f4db8f6e6..ed676f1aa3c6 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/Tabular.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/Tabular.java @@ -44,6 +44,7 @@ public class Tabular extends ReportBuilderLayouter return getResource().getResText(UIConsts.RID_REPORT + 80); } + @Override protected void insertDetailFields() { copyDetailProperties(); @@ -76,6 +77,7 @@ public class Tabular extends ReportBuilderLayouter xSection.setHeight(nHeight); } + @Override protected void insertDetailFieldTitles(int lastGroupPostion) { final String[] aFieldTitleNames = getFieldTitleNames(); diff --git a/wizards/com/sun/star/wizards/table/CallTableWizard.java b/wizards/com/sun/star/wizards/table/CallTableWizard.java index 365f70e3eb44..1a437b53ee9d 100644 --- a/wizards/com/sun/star/wizards/table/CallTableWizard.java +++ b/wizards/com/sun/star/wizards/table/CallTableWizard.java @@ -131,6 +131,7 @@ public class CallTableWizard return booleanSupportsService; } + @Override public byte[] getImplementationId() { return new byte[0]; @@ -149,6 +150,7 @@ public class CallTableWizard * @return Sequence of all types (usually interface types) provided by the * service. */ + @Override public Type[] getTypes() { Type[] typeReturn = diff --git a/wizards/com/sun/star/wizards/table/ScenarioSelector.java b/wizards/com/sun/star/wizards/table/ScenarioSelector.java index 6cd094c13bc6..f0a41de42812 100644 --- a/wizards/com/sun/star/wizards/table/ScenarioSelector.java +++ b/wizards/com/sun/star/wizards/table/ScenarioSelector.java @@ -197,6 +197,7 @@ public class ScenarioSelector extends FieldSelection implements XItemListener, X super.initialize(oCGTable.getFieldNames(bcolumnnameislimited, imaxcolumnchars), true); } + @Override public String[] getSelectedFieldNames() { String[] displayfieldnames = super.getSelectedFieldNames(); diff --git a/wizards/com/sun/star/wizards/table/TableWizard.java b/wizards/com/sun/star/wizards/table/TableWizard.java index 60632764a3e4..f23647d2f185 100644 --- a/wizards/com/sun/star/wizards/table/TableWizard.java +++ b/wizards/com/sun/star/wizards/table/TableWizard.java @@ -82,6 +82,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener } } + @Override protected void leaveStep(int nOldStep, int nNewStep) { switch (nOldStep) @@ -104,6 +105,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener } } + @Override protected void enterStep(int nOldStep, int nNewStep) { switch (nNewStep) @@ -255,6 +257,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener return bIsSuccessfull; } + @Override public boolean finishWizard() { super.switchToStep(super.getCurrentStep(), SOFINALPAGE); @@ -311,6 +314,7 @@ public class TableWizard extends DatabaseObjectWizard implements XTextListener } } + @Override public void cancelWizard() { xDialog.endExecute(); diff --git a/wizards/com/sun/star/wizards/ui/AggregateComponent.java b/wizards/com/sun/star/wizards/ui/AggregateComponent.java index 584ab57846a7..2b4646dc2c68 100644 --- a/wizards/com/sun/star/wizards/ui/AggregateComponent.java +++ b/wizards/com/sun/star/wizards/ui/AggregateComponent.java @@ -175,6 +175,7 @@ public class AggregateComponent extends ControlScroller } } + @Override protected void insertControlGroup(int i, int ypos) { if (i == 0) @@ -197,6 +198,7 @@ public class AggregateComponent extends ControlScroller ControlRowVector.add(oControlRow); } + @Override protected void setControlGroupVisible(int _index, boolean _bIsVisible) { ControlRow oControlRow = ControlRowVector.get(_index); @@ -411,6 +413,7 @@ public class AggregateComponent extends ControlScroller CurUnoDialog.repaintDialogStep(); } + @Override protected void initializeScrollFields() { ControlRow curControlRow; diff --git a/wizards/com/sun/star/wizards/ui/TitlesComponent.java b/wizards/com/sun/star/wizards/ui/TitlesComponent.java index 1041568fb26e..b9003f60d28b 100644 --- a/wizards/com/sun/star/wizards/ui/TitlesComponent.java +++ b/wizards/com/sun/star/wizards/ui/TitlesComponent.java @@ -56,6 +56,7 @@ public class TitlesComponent extends ControlScroller }); } + @Override protected void insertControlGroup(int i, int ypos) { iLabelPosX = iCompPosX + iRelLabelPosXDist; @@ -64,6 +65,7 @@ public class TitlesComponent extends ControlScroller } + @Override protected void setControlGroupVisible(int _index, boolean _bIsVisible) { CurUnoDialog.setControlVisible(getColumnName(_index), _bIsVisible); @@ -125,6 +127,7 @@ public class TitlesComponent extends ControlScroller return SOTITLEPREFIX + Integer.toString(_index + 1); } + @Override protected void initializeScrollFields() { for (int i = 0; i < fieldnames.length; i++) diff --git a/wizards/com/sun/star/wizards/ui/WizardDialog.java b/wizards/com/sun/star/wizards/ui/WizardDialog.java index 915bf4446fc0..93633d6f11a3 100644 --- a/wizards/com/sun/star/wizards/ui/WizardDialog.java +++ b/wizards/com/sun/star/wizards/ui/WizardDialog.java @@ -75,6 +75,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL oWizardResource.getResText(UIConsts.RID_DB_COMMON + 33); } + @Override public Resource getResource() { return oWizardResource; @@ -201,6 +202,7 @@ public abstract class WizardDialog extends UnoDialog2 implements VetoableChangeL XControl xRoadmapControl = this.xDlgContainer.getControl("rdmNavi"); XItemEventBroadcaster xRoadmapBroadcaster = UnoRuntime.queryInterface(XItemEventBroadcaster.class, xRoadmapControl); xRoadmapBroadcaster.addItemListener(new XItemListenerAdapter() { + @Override public void itemStateChanged(com.sun.star.awt.ItemEvent itemEvent) { try { |