private void doActionPerformed() {
   GeoNumberValue animSpeed =
       app.getKernel().getAlgebraProcessor().evaluateToNumeric(tfAnimSpeed.getText(), false);
   if (animSpeed != null) {
     model.applySpeedChanges(animSpeed);
   }
 }
  public AnimationSpeedPanelW(AnimationSpeedModel m, final AppW app) {
    super(app.getLocalization(), app.getLocalization().getMenu("AnimationSpeed"));
    this.app = app;
    model = m;
    model.setListener(this);
    setModel(model);
    modeLabel = new Label();

    InputPanelW inputPanel = new InputPanelW(null, app, -1, false);
    tfAnimSpeed = inputPanel.getTextComponent();
    FlowPanel mainPanel = new FlowPanel();
    FlowPanel speedPanel = new FlowPanel();
    FlowPanel repeatPanel = new FlowPanel();
    speedPanel.setStyleName("optionsPanel rows");
    repeatPanel.setStyleName("optionsPanel rows");
    speedPanel.add(getLabel());
    speedPanel.add(tfAnimSpeed);
    repeatPanel.add(modeLabel);
    repeatPanel.add(getListBox());
    // mainPanel.add(LayoutUtil.panelRow(speedPanel, repeatPanel));
    mainPanel.add(LayoutUtilW.panelRowVertical(getLabel(), tfAnimSpeed));
    mainPanel.add(LayoutUtilW.panelRowVertical(modeLabel, getListBox()));
    setWidget(mainPanel);

    tfAnimSpeed.addKeyHandler(
        new KeyHandler() {

          public void keyReleased(KeyEvent e) {
            if (e.isEnterKey()) {
              doActionPerformed();
            }
          }
        });

    tfAnimSpeed.enableGGBKeyboard();

    tfAnimSpeed.addFocusListener(
        new FocusListenerW(this) {

          @Override
          protected void wrapFocusGained() {}

          @Override
          protected void wrapFocusLost() {
            doActionPerformed();
          }
        });
    tfAnimSpeed.requestToShowSymbolButton();
  }
 public void setPartOfSliderPanel() {
   model.setShowSliders(true);
 }