summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-07-01 13:59:45 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-07-01 13:59:45 +0000
commit8c7df0144c25e7397dda970a7c4ef123a9dac9c6 (patch)
tree2fb3bb774f5424b666155d54465a47054085f1bd /accessibility
parent4aa07a182b0fd962ca69a2079882bea339a558b8 (diff)
INTEGRATION: CWS juabrc7 (1.7.4); FILE MERGED
2003/07/01 06:51:41 obr 1.7.4.1: #i16159# Container need to implement requestFocusInWindow as well
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/bridge/org/openoffice/java/accessibility/Component.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/accessibility/bridge/org/openoffice/java/accessibility/Component.java b/accessibility/bridge/org/openoffice/java/accessibility/Component.java
index b5b65e4d40e2..ed0ac64126ec 100644
--- a/accessibility/bridge/org/openoffice/java/accessibility/Component.java
+++ b/accessibility/bridge/org/openoffice/java/accessibility/Component.java
@@ -2,9 +2,9 @@
*
* $RCSfile: Component.java,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: rt $ $Date: 2003-06-12 07:59:28 $
+ * last change: $Author: vg $ $Date: 2003-07-01 14:59:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -133,6 +133,12 @@ public abstract class Component extends java.awt.Component {
public void removeNotify() {
}
+ /*
+ * Fake the java focus handling. This is necessary to keep OOo focus
+ * in sync with the java focus. See java.awt.DefaultKeyboardFocusManager
+ * for implementation details.
+ **/
+
/** Requests focus for this object */
public void requestFocus() {
}
@@ -143,10 +149,12 @@ public abstract class Component extends java.awt.Component {
return true;
}
+ /** Requests the focus for this object in the containing window */
public boolean requestFocusInWindow() {
return requestFocusInWindow(false);
}
+ /** Requests the focus for this object in the containing window */
protected boolean requestFocusInWindow(boolean temporary) {
if (isFocusable() && isVisible()) {
getEventQueue().postEvent(new java.awt.event.FocusEvent(this, java.awt.event.FocusEvent.FOCUS_GAINED, temporary));