Exemplo n.º 1
0
  public void setLabels() {
    lblShow.setText(app.getLocalization().getPlain("Show"));
    showAuxiliaryObjects.setText(app.getLocalization().getPlain("AuxiliaryObjects"));

    lblSortMode.setText(app.getLocalization().getPlain("SortBy"));
    lblDescriptionMode.setText(app.getLocalization().getMenu("AlgebraDescriptions"));
    updateSortMode();
    updateDescription();
  }
Exemplo n.º 2
0
  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();
  }
Exemplo n.º 3
0
 @Override
 public void setLabels() {
   super.setLabels();
   Localization loc = app.getLocalization();
   getLabel().setText(loc.getPlain("AnimationSpeed") + ":");
   modeLabel.setText(loc.getPlain("Repeat") + ": ");
 }
Exemplo n.º 4
0
  /**
   * *************************************** Constructs a ComboStatPanel
   *
   * @param daView daView
   */
  public DataDisplayPanelW(DataAnalysisViewW daView) {

    this.app = daView.getApp();
    this.loc = (LocalizationW) app.getLocalization();
    daModel = daView.getModel();
    setModel(new DataDisplayModel(daModel, this));
    this.daView = daView;
    this.sample = new GeoNumeric(app.getKernel().getConstruction());

    // create the GUI
    createGUI();
  }
Exemplo n.º 5
0
  private void createSymbolTable() {

    Localization loc = app.getLocalization();

    String[][] map = TableSymbols.basicSymbolsMap(loc);

    String[] icons = TableSymbols.basicSymbols(loc, map);
    String[] iconshelp = TableSymbols.basicSymbolsToolTips(loc, map);

    symbolTable = new SymbolTableW(icons, iconshelp);
    add(symbolTable);
    symbolTable.addClickHandler(this);
  }
Exemplo n.º 6
0
 public void setLabels() {
   Localization loc = app.getLocalization();
   redoButton.setTitle(loc.getMenu("Redo"));
   undoButton.setTitle(loc.getMenu("Undo"));
 }