You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by tk...@apache.org on 2002/04/22 23:14:23 UTC
cvs commit: xml-batik/sources/org/apache/batik/bridge BridgeEventSupport.java FocusManager.java
tkormann 02/04/22 14:14:23
Modified: sources/org/apache/batik/bridge BridgeEventSupport.java
FocusManager.java
Log:
code cleanup
Revision Changes Path
1.32 +6 -20 xml-batik/sources/org/apache/batik/bridge/BridgeEventSupport.java
Index: BridgeEventSupport.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/BridgeEventSupport.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- BridgeEventSupport.java 22 Apr 2002 17:08:55 -0000 1.31
+++ BridgeEventSupport.java 22 Apr 2002 21:14:23 -0000 1.32
@@ -66,7 +66,7 @@
*
* @author <a href="mailto:cjolif@ilog.fr>Christophe Jolif</a>
* @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
- * @version $Id: BridgeEventSupport.java,v 1.31 2002/04/22 17:08:55 tkormann Exp $
+ * @version $Id: BridgeEventSupport.java,v 1.32 2002/04/22 21:14:23 tkormann Exp $
*/
public class BridgeEventSupport implements SVGConstants {
@@ -95,8 +95,8 @@
protected static class GVTUnloadListener implements EventListener {
- private EventDispatcher dispatcher;
- private Listener listener;
+ protected EventDispatcher dispatcher;
+ protected Listener listener;
public GVTUnloadListener(EventDispatcher dispatcher,
Listener listener) {
@@ -115,9 +115,9 @@
*/
protected static class Listener implements GraphicsNodeMouseListener {
- private BridgeContext context;
- private UserAgent ua;
- private Element lastTargetElement;
+ protected BridgeContext context;
+ protected UserAgent ua;
+ protected Element lastTargetElement;
public Listener(BridgeContext ctx, UserAgent u) {
context = ctx;
@@ -262,20 +262,6 @@
} finally {
lastTargetElement = targetElement;
}
- }
-
- /**
- * Dispatches a DOM UIEvent according to the specified
- * parameters.
- *
- * @param eventType the event type
- * @param evt the GVT GraphicsNodeMouseEvent
- * @param cancelable true means the event is cancelable
- */
- protected void dispatchUIEvent(String eventType,
- GraphicsNodeMouseEvent evt,
- boolean cancelable) {
-
}
/**
1.3 +4 -3 xml-batik/sources/org/apache/batik/bridge/FocusManager.java
Index: FocusManager.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/FocusManager.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- FocusManager.java 22 Apr 2002 20:58:00 -0000 1.2
+++ FocusManager.java 22 Apr 2002 21:14:23 -0000 1.3
@@ -19,11 +19,10 @@
import org.w3c.dom.events.MouseEvent;
/**
- * A class that manages focus on elements. Users of this class needs
- * to attached this EventListener with the 'mouseover' event type.
+ * A class that manages focus on elements.
*
* @author <a href="mailto:Thierry.Kormann@sophia.inria.fr">Thierry Kormann</a>
- * @version $Id: FocusManager.java,v 1.2 2002/04/22 20:58:00 tkormann Exp $
+ * @version $Id: FocusManager.java,v 1.3 2002/04/22 21:14:23 tkormann Exp $
*/
public class FocusManager {
@@ -104,6 +103,8 @@
target.removeEventListener("mouseout", mouseoutListener, true);
target.removeEventListener("DOMFocusIn", domFocusInListener, true);
target.removeEventListener("DOMFocusOut", domFocusOutListener, true);
+ lastFocusEventTarget = null;
+ document = null;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org