@Override
  public void onTab(Component component, PreviewEvent pe) {
    if (!isManaged()) return;

    if (!pe.isShiftKey() && forwardIfOverride(component)) {
      pe.stopEvent();
      return;
    } else if (pe.isShiftKey() && previousIfOverride(component)) {
      pe.stopEvent();
      return;
    }
  }
Beispiel #2
0
 public void onEscape(Component component, PreviewEvent pe) {
   if (!isManaged()) return;
   Widget p = component.getParent();
   if (p != null) {
     pe.stopEvent();
     if (p instanceof TabItem) {
       stepOut(((TabItem) p).getTabPanel());
     } else {
       stepOut(component);
     }
   }
 }