FileDocCategorySizeDatePackage
DelegatingDefaultFocusManager.javaAPI DocJava SE 5 API5518Fri Aug 26 14:57:54 BST 2005javax.swing

DelegatingDefaultFocusManager

public final class DelegatingDefaultFocusManager extends DefaultFocusManager
Provides a javax.swing.DefaultFocusManager view onto an arbitrary java.awt.KeyboardFocusManager. We subclass DefaultFocusManager instead of FocusManager because it seems more backward-compatible. It is likely that some pre-1.4 code assumes that the object returned by FocusManager.getCurrentManager is an instance of DefaultFocusManager unless set explicitly.

Fields Summary
private final KeyboardFocusManager
delegate
Constructors Summary
DelegatingDefaultFocusManager(KeyboardFocusManager delegate)

	this.delegate = delegate;
        setDefaultFocusTraversalPolicy(gluePolicy);
    
Methods Summary
public voidaddKeyEventDispatcher(java.awt.KeyEventDispatcher dispatcher)

	delegate.addKeyEventDispatcher(dispatcher);
    
public voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)

	delegate.addPropertyChangeListener(listener);
    
public voidaddPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)

	delegate.addPropertyChangeListener(propertyName, listener);
    
public voidaddVetoableChangeListener(java.beans.VetoableChangeListener listener)

	delegate.addVetoableChangeListener(listener);
    
public voidaddVetoableChangeListener(java.lang.String propertyName, java.beans.VetoableChangeListener listener)

	delegate.addVetoableChangeListener(propertyName, listener);
    
public voidclearGlobalFocusOwner()

	delegate.clearGlobalFocusOwner();
    
public booleandispatchEvent(java.awt.AWTEvent e)

	return delegate.dispatchEvent(e);
    
public booleandispatchKeyEvent(java.awt.event.KeyEvent e)

	return delegate.dispatchKeyEvent(e);
    
public voiddownFocusCycle(java.awt.Container aContainer)

	delegate.downFocusCycle(aContainer);
    
public voidfocusNextComponent(java.awt.Component aComponent)

	delegate.focusNextComponent(aComponent);
    
public voidfocusPreviousComponent(java.awt.Component aComponent)

	delegate.focusPreviousComponent(aComponent);
    
public java.awt.WindowgetActiveWindow()

	return delegate.getActiveWindow();
    
public java.awt.ContainergetCurrentFocusCycleRoot()

	return delegate.getCurrentFocusCycleRoot();
    
public java.util.SetgetDefaultFocusTraversalKeys(int id)

	return delegate.getDefaultFocusTraversalKeys(id);
    
public java.awt.FocusTraversalPolicygetDefaultFocusTraversalPolicy()

	return delegate.getDefaultFocusTraversalPolicy();
    
java.awt.KeyboardFocusManagergetDelegate()

        return delegate;
    
public java.awt.ComponentgetFocusOwner()

	return delegate.getFocusOwner();
    
public java.awt.WindowgetFocusedWindow()

	return delegate.getFocusedWindow();
    
public java.awt.ComponentgetPermanentFocusOwner()

	return delegate.getPermanentFocusOwner();
    
public voidprocessKeyEvent(java.awt.Component focusedComponent, java.awt.event.KeyEvent e)

	delegate.processKeyEvent(focusedComponent, e);
    
public voidremoveKeyEventDispatcher(java.awt.KeyEventDispatcher dispatcher)

	delegate.removeKeyEventDispatcher(dispatcher);
    
public voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)

	delegate.removePropertyChangeListener(listener);
    
public voidremovePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)

	delegate.removePropertyChangeListener(propertyName, listener);
    
public voidremoveVetoableChangeListener(java.beans.VetoableChangeListener listener)

	delegate.removeVetoableChangeListener(listener);
    
public voidremoveVetoableChangeListener(java.lang.String propertyName, java.beans.VetoableChangeListener listener)

	delegate.removeVetoableChangeListener(propertyName, listener);
    
public voidsetDefaultFocusTraversalKeys(int id, java.util.Set keystrokes)

	delegate.setDefaultFocusTraversalKeys(id, keystrokes);
    
public voidsetDefaultFocusTraversalPolicy(java.awt.FocusTraversalPolicy defaultPolicy)

        if (delegate != null) {
            // Will be null when invoked from supers constructor.
            delegate.setDefaultFocusTraversalPolicy(defaultPolicy);
        }
    
public voidsetGlobalCurrentFocusCycleRoot(java.awt.Container newFocusCycleRoot)

	delegate.setGlobalCurrentFocusCycleRoot(newFocusCycleRoot);
    
public voidupFocusCycle(java.awt.Component aComponent)

	delegate.upFocusCycle(aComponent);