summaryrefslogtreecommitdiff
path: root/odk/examples/java/EmbedDocument/EmbeddedObject
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-08 11:36:04 +0200
committerNoel Grandin <noel@peralex.com>2014-08-13 08:49:22 +0200
commitda677dfd59c2b551f3335ee0a5d5dfb33f9869c5 (patch)
tree9aa09066c95935117bf405b119ed9f89f448a54d /odk/examples/java/EmbedDocument/EmbeddedObject
parent14d1a11ec4a7ed0deeac522403248536e8d23f57 (diff)
java: reduce scope, make fields private
found by UCDetector Change-Id: I7f97e15667159cf8ee776e8f32fdcdec8ec00ed6
Diffstat (limited to 'odk/examples/java/EmbedDocument/EmbeddedObject')
-rw-r--r--odk/examples/java/EmbedDocument/EmbeddedObject/EditorFrame.java8
-rw-r--r--odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java32
2 files changed, 20 insertions, 20 deletions
diff --git a/odk/examples/java/EmbedDocument/EmbeddedObject/EditorFrame.java b/odk/examples/java/EmbedDocument/EmbeddedObject/EditorFrame.java
index d30175f2b1bc..f923b15ab9fc 100644
--- a/odk/examples/java/EmbedDocument/EmbeddedObject/EditorFrame.java
+++ b/odk/examples/java/EmbedDocument/EmbeddedObject/EditorFrame.java
@@ -26,11 +26,11 @@ import javax.imageio.ImageIO;
public class EditorFrame extends JFrame
{
- OwnEmbeddedObject m_aEmbObj;
- JTextArea m_aTextArea;
- BufferedImage m_aBufImage;
+ private OwnEmbeddedObject m_aEmbObj;
+ private JTextArea m_aTextArea;
+ private BufferedImage m_aBufImage;
- WindowListener m_aCloser = new WindowAdapter()
+ private WindowListener m_aCloser = new WindowAdapter()
{
@Override
public void windowClosing( WindowEvent e )
diff --git a/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java b/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java
index d84531dcb6d3..059526184202 100644
--- a/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java
+++ b/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java
@@ -40,30 +40,30 @@ public final class OwnEmbeddedObject extends WeakBase
implements com.sun.star.embed.XEmbedPersist,
com.sun.star.embed.XEmbeddedObject
{
- protected final XComponentContext m_xContext;
- protected final byte[] m_aClassID;
+ private final XComponentContext m_xContext;
+ private final byte[] m_aClassID;
- protected boolean m_bDisposed = false;
- protected int m_nObjectState = -1;
+ private boolean m_bDisposed = false;
+ private int m_nObjectState = -1;
- protected com.sun.star.embed.XStorage m_xParentStorage;
- protected com.sun.star.embed.XStorage m_xOwnStorage;
- protected String m_aEntryName;
+ private com.sun.star.embed.XStorage m_xParentStorage;
+ private com.sun.star.embed.XStorage m_xOwnStorage;
+ private String m_aEntryName;
- protected com.sun.star.embed.XStorage m_xNewParentStorage;
- protected com.sun.star.embed.XStorage m_xNewOwnStorage;
- protected String m_aNewEntryName;
- protected boolean m_bWaitSaveCompleted = false;
+ private com.sun.star.embed.XStorage m_xNewParentStorage;
+ private com.sun.star.embed.XStorage m_xNewOwnStorage;
+ private String m_aNewEntryName;
+ private boolean m_bWaitSaveCompleted = false;
- protected EditorFrame m_aEditorFrame;
+ private EditorFrame m_aEditorFrame;
- protected ArrayList<Object> m_aListeners;
+ private ArrayList<Object> m_aListeners;
- com.sun.star.embed.VerbDescriptor[] m_pOwnVerbs;
+ private com.sun.star.embed.VerbDescriptor[] m_pOwnVerbs;
- com.sun.star.embed.XEmbeddedClient m_xClient;
+ private com.sun.star.embed.XEmbeddedClient m_xClient;
- Dimension m_aObjSize;
+ private Dimension m_aObjSize;
protected ArrayList<Object> GetListeners()