summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/OfficeDev
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-06 08:55:09 +0200
committerNoel Grandin <noel@peralex.com>2014-08-12 09:41:28 +0200
commit0477e6c39b7ce8b7f6560fbf222c19fe4f358dc8 (patch)
tree218eba20dd23c6a865cf01aa7532bf1261a69bc8 /odk/examples/DevelopersGuide/OfficeDev
parente2e55a7c49079dfd896da6515b98d451e4c8735b (diff)
java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev')
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java1
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java5
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java1
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java1
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Hyph.java1
-rw-r--r--odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java1
6 files changed, 10 insertions, 0 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
index b72f30ac755c..66481a697583 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java
@@ -300,6 +300,7 @@ public class DocumentView extends JFrame
/**
* Overridden so we can react for window closing of this view.
*/
+ @Override
protected void processWindowEvent(WindowEvent aEvent)
{
if (aEvent.getID()!=WindowEvent.WINDOW_CLOSING)
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java
index ed900c7eb0f4..712abb91fcc3 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java
@@ -79,6 +79,7 @@ public class NativeView extends java.awt.Canvas
* can be called more than ones - but call native code one times only
* and safe the handle and the system type on our members maHandle/maSystem!
*/
+ @Override
public void setVisible(boolean bState)
{
getHWND();
@@ -91,16 +92,19 @@ public class NativeView extends java.awt.Canvas
* (e.g. JSplitPane) we must provide some information about our
* preferred/minimum and maximum size.
*/
+ @Override
public Dimension getPreferredSize()
{
return new Dimension(500,300);
}
+ @Override
public Dimension getMaximumSize()
{
return new Dimension(1024,768);
}
+ @Override
public Dimension getMinimumSize()
{
return new Dimension(100,100);
@@ -116,6 +120,7 @@ public class NativeView extends java.awt.Canvas
* May the remote window is already plugged. In such case we
* shouldn't paint it over.
*/
+ @Override
public void paint(Graphics aGraphic)
{
if(maHandle==null)
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java
index b21905505c89..af70c10cadc1 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java
@@ -122,6 +122,7 @@ class OnewayExecutor extends Thread
* give him all necessary parameters.
* After that we die by ourselves ...
*/
+ @Override
public void run()
{
if (m_rLink==null)
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
index e91eeefb9cde..d03496dbb8b3 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java
@@ -190,6 +190,7 @@ public class ViewContainer extends Thread
* on shutdown. We inform all current registered listener and
* views. They should deinitialize her internal things then.
*/
+ @Override
public void run()
{
synchronized(this)
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Hyph.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Hyph.java
index a8a3e2375e80..a0e22a5e6516 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Hyph.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Hyph.java
@@ -49,6 +49,7 @@ public class PropChgHelper_Hyph extends PropChgHelper
// XPropertyChangeListener
+ @Override
public void propertyChange( PropertyChangeEvent aEvt )
throws com.sun.star.uno.RuntimeException
{
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java
index e87df4ad26f1..16d93269ad97 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java
@@ -49,6 +49,7 @@ public class PropChgHelper_Spell extends PropChgHelper
// XPropertyChangeListener
+ @Override
public void propertyChange( PropertyChangeEvent aEvt )
throws com.sun.star.uno.RuntimeException
{