From e589ede6fdc3f0f3f70be950bdd85d996eb19eca Mon Sep 17 00:00:00 2001 From: Michael Koch Date: Sun, 2 Mar 2003 14:01:40 +0000 Subject: 2003-03-02 Michael Koch * 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 --- .../awt/ContainerOrderFocusTraversalPolicy.java | 54 +++++++++++++++++++++- 1 file changed, 52 insertions(+), 2 deletions(-) (limited to 'libjava/java/awt/ContainerOrderFocusTraversalPolicy.java') 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; } -- cgit v1.1