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
This commit is contained in:
committed by
Michael Koch
parent
37db829b93
commit
e589ede6fd
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user