diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-06 08:55:09 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-12 09:41:28 +0200 |
commit | 0477e6c39b7ce8b7f6560fbf222c19fe4f358dc8 (patch) | |
tree | 218eba20dd23c6a865cf01aa7532bf1261a69bc8 /odk/examples/DevelopersGuide/Forms | |
parent | e2e55a7c49079dfd896da6515b98d451e4c8735b (diff) |
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'odk/examples/DevelopersGuide/Forms')
8 files changed, 14 insertions, 0 deletions
diff --git a/odk/examples/DevelopersGuide/Forms/ControlLock.java b/odk/examples/DevelopersGuide/Forms/ControlLock.java index efce0c990462..b917039bf242 100644 --- a/odk/examples/DevelopersGuide/Forms/ControlLock.java +++ b/odk/examples/DevelopersGuide/Forms/ControlLock.java @@ -60,6 +60,7 @@ class LockControlModels extends ComponentTreeTraversal } /* ------------------------------------------------------------------ */ + @Override protected boolean shouldStepInto( XIndexContainer xContainer ) throws com.sun.star.uno.Exception { if ( !super.shouldStepInto( xContainer ) ) @@ -75,6 +76,7 @@ class LockControlModels extends ComponentTreeTraversal } /* ------------------------------------------------------------------ */ + @Override public void handle( Object aFormComponent ) throws com.sun.star.uno.Exception { // entering this nesting level diff --git a/odk/examples/DevelopersGuide/Forms/ControlValidation.java b/odk/examples/DevelopersGuide/Forms/ControlValidation.java index ea92c1c3ca8f..0ef0702eba20 100644 --- a/odk/examples/DevelopersGuide/Forms/ControlValidation.java +++ b/odk/examples/DevelopersGuide/Forms/ControlValidation.java @@ -29,6 +29,7 @@ public class ControlValidation extends DocumentBasedExample /* ------------------------------------------------------------------ */ /* public test methods */ /* ------------------------------------------------------------------ */ + @Override protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception { super.prepareDocument(); diff --git a/odk/examples/DevelopersGuide/Forms/DataAwareness.java b/odk/examples/DevelopersGuide/Forms/DataAwareness.java index 749c8c900195..494591853f72 100644 --- a/odk/examples/DevelopersGuide/Forms/DataAwareness.java +++ b/odk/examples/DevelopersGuide/Forms/DataAwareness.java @@ -73,6 +73,7 @@ class PrintComponentTree extends ComponentTreeTraversal m_sPrefix = new String(); } + @Override public void handle( Object aFormComponent ) throws com.sun.star.uno.Exception { // the name of the child @@ -117,6 +118,7 @@ class RevokeButtons extends ComponentTreeTraversal m_aOperator = aOperator; } + @Override public void handle( Object aFormComponent ) throws com.sun.star.uno.Exception { // check if it's a button @@ -343,6 +345,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan /* ------------------------------------------------------------------ */ // XEventListener overridables /* ------------------------------------------------------------------ */ + @Override public void disposing( EventObject aEvent ) { // simply disambiguate @@ -681,6 +684,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan /* ------------------------------------------------------------------ */ /** creates our sample document */ + @Override protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception { super.prepareDocument(); @@ -887,6 +891,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan } /* ------------------------------------------------------------------ */ + @Override protected void onFormsAlive() { m_aOperator.onFormsAlive(); @@ -895,6 +900,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan /* ------------------------------------------------------------------ */ /** performs any cleanup before exiting the program */ + @Override protected void cleanUp( ) throws java.lang.Exception { // remove the listeners at the buttons diff --git a/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java b/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java index 0a4e46e48e3b..e349892d3ea9 100644 --- a/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java +++ b/odk/examples/DevelopersGuide/Forms/HsqlDatabase.java @@ -219,6 +219,7 @@ public class HsqlDatabase return new RowSet( m_context, getDocumentURL(), _commandType, _command ); } + @Override protected void finalize() throws Throwable { closeAndDelete(); diff --git a/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java b/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java index e3555b308a0c..8baca5dca0d5 100644 --- a/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java +++ b/odk/examples/DevelopersGuide/Forms/SpreadsheetValueBinding.java @@ -35,6 +35,7 @@ public class SpreadsheetValueBinding extends DocumentBasedExample } /* ------------------------------------------------------------------ */ + @Override protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception { super.prepareDocument(); diff --git a/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java b/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java index 4b9fc6b84cdf..3b47da5ebc86 100644 --- a/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java +++ b/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java @@ -127,6 +127,7 @@ public class TableCellTextBinding /** runs the thread */ + @Override public void run() { try diff --git a/odk/examples/DevelopersGuide/Forms/ValueBinding.java b/odk/examples/DevelopersGuide/Forms/ValueBinding.java index 3cf649cce543..e86e6bc72372 100644 --- a/odk/examples/DevelopersGuide/Forms/ValueBinding.java +++ b/odk/examples/DevelopersGuide/Forms/ValueBinding.java @@ -35,6 +35,7 @@ public class ValueBinding extends DocumentBasedExample } /* ------------------------------------------------------------------ */ + @Override protected void prepareDocument() throws com.sun.star.uno.Exception, java.lang.Exception { super.prepareDocument(); diff --git a/odk/examples/DevelopersGuide/Forms/WaitForInput.java b/odk/examples/DevelopersGuide/Forms/WaitForInput.java index bb5674fb07e9..55284d04ba15 100644 --- a/odk/examples/DevelopersGuide/Forms/WaitForInput.java +++ b/odk/examples/DevelopersGuide/Forms/WaitForInput.java @@ -31,6 +31,7 @@ class WaitForInput extends java.lang.Thread return m_bDone; } + @Override public void run() { try |