All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.extjs.gxt.ui.client.aria.DualListFieldHandler Maven / Gradle / Ivy

There is a newer version: 2.3.1-gwt22
Show newest version
/*
 * Sencha GXT 2.3.1 - Sencha for GWT
 * Copyright(c) 2007-2013, Sencha, Inc.
 * [email protected]
 * 
 * http://www.sencha.com/products/gxt/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.form.DualListField;
import com.extjs.gxt.ui.client.widget.form.ListField;

public class DualListFieldHandler extends FocusHandler {

  @SuppressWarnings("rawtypes")
  @Override
  public boolean canHandleKeyPress(Component component, PreviewEvent pe) {
    if (component.getParent() instanceof ListField) {
      ListField lf = (ListField) component.getParent();
      Component p = (Component) lf.getParent();
      return p != null && p.getParent() instanceof DualListField;

    }
    return component instanceof DualListField;
  }

  @Override
  public void onTab(Component component, PreviewEvent pe) {

  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy