aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/Container.java
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2004-01-17 00:01:59 +0000
committerTom Tromey <tromey@gcc.gnu.org>2004-01-17 00:01:59 +0000
commitd440f6424f307cd67843b27c9109211d1f51dcd1 (patch)
treed70377c3900dec30dd487833dcdbd8c011557fc2 /libjava/java/awt/Container.java
parentb54a271561e04b37b5584033ee64920600fc0e8d (diff)
downloadgcc-d440f6424f307cd67843b27c9109211d1f51dcd1.zip
gcc-d440f6424f307cd67843b27c9109211d1f51dcd1.tar.gz
gcc-d440f6424f307cd67843b27c9109211d1f51dcd1.tar.bz2
* java/awt/Container.java: Typo and indentation fixes.
From-SVN: r76004
Diffstat (limited to 'libjava/java/awt/Container.java')
-rw-r--r--libjava/java/awt/Container.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/libjava/java/awt/Container.java b/libjava/java/awt/Container.java
index a42d293..caf1134 100644
--- a/libjava/java/awt/Container.java
+++ b/libjava/java/awt/Container.java
@@ -1,5 +1,5 @@
/* Container.java -- parent container class in AWT
- Copyright (C) 1999, 2000, 2002, 2003 Free Software Foundation
+ Copyright (C) 1999, 2000, 2002, 2003, 2004 Free Software Foundation
This file is part of GNU Classpath.
@@ -1516,7 +1516,7 @@ public class Container extends Component
(ACCESSIBLE_CHILD_PROPERTY, e.getChild(), null);
}
} // class AccessibleContainerHandler
- } // class AccessibleAWTPanel
+ } // class AccessibleAWTContainer
} // class Container
/**
@@ -1562,26 +1562,26 @@ class LightweightDispatcher implements Serializable
Component candidate = mouseEventTarget;
boolean candidate_is_container_with_children =
- ((candidate != null)
- && (candidate instanceof Container)
- && (((Container)candidate).getComponentCount () > 0));
+ ((candidate != null)
+ && (candidate instanceof Container)
+ && (((Container)candidate).getComponentCount () > 0));
boolean candidate_does_not_contain_point =
- ((candidate != null)
- && (! candidate.contains (x - candidate.getX (),
+ ((candidate != null)
+ && (! candidate.contains (x - candidate.getX (),
y - candidate.getY ())));
if (candidate == null
|| candidate_is_container_with_children
|| candidate_does_not_contain_point)
- {
+ {
// Try to reacquire.
candidate = nativeContainer.findComponentAt (x, y);
- }
+ }
if (mouseEventTarget != null
&& mouseEventTarget != candidate)
- {
+ {
int nx = x - mouseEventTarget.getX ();
int ny = y - mouseEventTarget.getY ();
MouseEvent exited = new MouseEvent (mouseEventTarget,
@@ -1594,15 +1594,15 @@ class LightweightDispatcher implements Serializable
me.getButton ());
mouseEventTarget.dispatchEvent (exited);
mouseEventTarget = null;
- }
+ }
if (candidate != null)
- {
+ {
// Possibly set new state.
if (candidate.isLightweight()
&& candidate != nativeContainer
&& candidate != mouseEventTarget)
- {
+ {
mouseEventTarget = candidate;
@@ -1620,16 +1620,16 @@ class LightweightDispatcher implements Serializable
me.getButton ());
mouseEventTarget.dispatchEvent (entered);
}
- }
+ }
}
boolean handleEvent (AWTEvent e)
{
if ((eventMask & e.getID ()) == 0)
- return false;
+ return false;
if (e instanceof MouseEvent)
- {
+ {
MouseEvent me = (MouseEvent) e;
acquireComponentForMouseEvent (me);
@@ -1640,11 +1640,11 @@ class LightweightDispatcher implements Serializable
mouseEventTarget.dispatchEvent (me);
me.setSource (oldSource);
}
- }
+ }
else if (e instanceof KeyEvent && focus != null)
- {
+ {
focus.processKeyEvent ((KeyEvent) e);
- }
+ }
return e.isConsumed();
}