Example #1
0
  @Override
  public void focusLost(View v, Element el) {
    super.focusLost(v, el);
    if (v != focusedView) {
      return;
    }
    focusedView = null;
    GeoGebraFrameW.useDataParamBorder(getArticleElement(), frame);

    // if it is there in focusGained, why not put it here?
    this.getGlobalKeyDispatcher().setFocused(false);
  }
Example #2
0
  @Override
  public void focusGained(View v, Element el) {
    super.focusGained(v, el);
    focusedView = v;
    GeoGebraFrameW.useFocusedBorder(getArticleElement(), frame);

    // we really need to set it to true
    switch (v.getViewID()) {
      case App.VIEW_ALGEBRA:
      case App.VIEW_EUCLIDIAN:
      case App.VIEW_EUCLIDIAN2:
        this.getGlobalKeyDispatcher().setFocusedIfNotTab();
        break;
      default:
        if (App.isView3D(v.getViewID())
            || ((v.getViewID() >= App.VIEW_EUCLIDIAN_FOR_PLANE_START)
                && (v.getViewID() <= App.VIEW_EUCLIDIAN_FOR_PLANE_END))) {
          this.getGlobalKeyDispatcher().setFocusedIfNotTab();
        }
    }
  }
Example #3
0
 @Override
 public void updateContentPane() {
   super.updateContentPane();
   frame.setApplication(this);
   frame.refreshKeyboard();
 }