diff options
author | Michael Koch <konqueror@gmx.de> | 2003-03-02 14:01:40 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-03-02 14:01:40 +0000 |
commit | e589ede6fdc3f0f3f70be950bdd85d996eb19eca (patch) | |
tree | 9009d19b2288a0d97ad1295a9a9cf0e04c193766 /libjava/java/awt/ContainerOrderFocusTraversalPolicy.java | |
parent | 37db829b936aa6483eff60a7522e34ad6dcecb79 (diff) | |
download | gcc-e589ede6fdc3f0f3f70be950bdd85d996eb19eca.zip gcc-e589ede6fdc3f0f3f70be950bdd85d996eb19eca.tar.gz gcc-e589ede6fdc3f0f3f70be950bdd85d996eb19eca.tar.bz2 |
2003-03-02 Michael Koch <konqueror@gmx.de>
* java/awt/Component.java
(eventTypeEnabled): New method.
(dispatchEventImpl): Moved checks for event to eventTypeEnabled.
* java/awt/Container.java
(changeSupport): New member variable.
(addPropertyChangeListener): New methods.
* java/awt/ContainerOrderFocusTraversalPolicy.java
(ContainerOrderFocusTraversalPolicy): Added comment.
(getComponentAfter): Throw exception, documentation added.
(getComponentBefore): Throw exception, documentation added.
(getFirstComponent): Throw exception, documentation added.
(getLastComponent): Throw exception, documentation added.
(getDefaultComponent): Throw exception, documentation added.
* java/awt/EventQueue.java: Reindented.
* java/awt/FocusTraversalPolicy.java:
(FocusTraversalPolicy): Added comment.
(getComponentAfter): Documentation added.
(getComponentBefore): Documentation added.
(getFirstComponent): Documentation added.
(getLastComponent): Documentation added.
(getDefaultComponent): Documentation added.
(getInitialComponent): Documentation added.
* java/awt/ScrollPane.java
(wheelScrollingEnabled): New member variable.
(ScrollPane): Initialize wheelScollingEnabled.
(eventTypeEnabled): New method.
(isWheelScrollingEnabled): New method.
(setWheelScrollingEnabled): New method.
From-SVN: r63663
Diffstat (limited to 'libjava/java/awt/ContainerOrderFocusTraversalPolicy.java')
-rw-r--r-- | libjava/java/awt/ContainerOrderFocusTraversalPolicy.java | 54 |
1 files changed, 52 insertions, 2 deletions
diff --git a/libjava/java/awt/ContainerOrderFocusTraversalPolicy.java b/libjava/java/awt/ContainerOrderFocusTraversalPolicy.java index 71267a5..1042939 100644 --- a/libjava/java/awt/ContainerOrderFocusTraversalPolicy.java +++ b/libjava/java/awt/ContainerOrderFocusTraversalPolicy.java @@ -41,11 +41,15 @@ package java.awt; import java.io.Serializable; /** - * STUB CLASS ONLY + * @author Michael Koch + * @since 1.4 */ public class ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy implements Serializable { + /** + * Compatible to JDK 1.4+ + */ static final long serialVersionUID = 486933713763926351L; private boolean implicitDownCycleTraversal = true; @@ -55,31 +59,77 @@ public class ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy */ public ContainerOrderFocusTraversalPolicy() { - throw new Error("not implemented"); + // Nothing to do here } + /** + * Returns the Component that should receive the focus after current. + * root must be a focus cycle root of current. + * + * @exception IllegalArgumentException If root is not a focus cycle + * root of current, or if either root or current is null. + */ public Component getComponentAfter(Container root, Component current) { + if (root == null + || current == null) + throw new IllegalArgumentException (); + return null; } + /** + * Returns the Component that should receive the focus before current. + * root must be a focus cycle root of current. + * + * @exception IllegalArgumentException If root is not a focus cycle + * root of current, or if either root or current is null. + */ public Component getComponentBefore(Container root, Component current) { + if (root == null + || current == null) + throw new IllegalArgumentException (); + return null; } + /** + * Returns the first Component of root that should receive the focus. + * + * @exception IllegalArgumentException If root is null. + */ public Component getFirstComponent(Container root) { + if (root == null) + throw new IllegalArgumentException (); + return null; } + /** + * Returns the last Component of root that should receive the focus. + * + * @exception IllegalArgumentException If root is null. + */ public Component getLastComponent(Container root) { + if (root == null) + throw new IllegalArgumentException (); + return null; } + /** + * Returns the default Component of root that should receive the focus. + * + * @exception IllegalArgumentException If root is null. + */ public Component getDefaultComponent(Container root) { + if (root == null) + throw new IllegalArgumentException (); + return null; } |