![JAR search and dependency download from the Maven repository](/logo.png)
com.extjs.gxt.ui.client.aria.HeaderHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxt Show documentation
Show all versions of gxt Show documentation
Rich Internet Application Framework for GWT
/*
* Ext GWT 2.2.0 - Ext for GWT
* Copyright(c) 2007-2010, Ext JS, LLC.
* [email protected]
*
* http://extjs.com/license
*/
package com.extjs.gxt.ui.client.aria;
import com.extjs.gxt.ui.client.event.PreviewEvent;
import com.extjs.gxt.ui.client.widget.Component;
import com.extjs.gxt.ui.client.widget.Header;
public class HeaderHandler extends FocusHandler {
@Override
public boolean canHandleKeyPress(Component component, PreviewEvent pe) {
return component instanceof Header;
}
@Override
public void onTab(Component component, PreviewEvent pe) {
if (!isManaged()) return;
pe.stopEvent();
Header head = (Header)component.getParent().getParent();
int index = head.indexOf(component);
if (index == head.getToolCount() - 1) {
stepInto(head.getParent(), pe, true);
return;
}
super.onTab(component, pe);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy