Ignore:
Timestamp:
09/23/13 18:54:07 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • add SimultorProviders? hierarchy
  • start Framsticks server over SSH
  • FJF compatible with Framsticks 4.0rc3
  • reading and writing of standard.expt
  • a proof-of-concept implementation of StandardExperiment?

CHANGELOG:
Optionally return FreeAccess? from registry.

Add SimulatorRange?.

StandardExperiment? with genotypes circulation.

Automate registration around StandardState?.

More improvements to StandardExperiment?.

Skeleton version of StandardExperiment?.

Test saving of StandardState?.

Standard experiment state is being loaded.

More development towards StandardState? reading.

Work on reading standard experiment state.

Add classes for standard experiment.

Update example standard.expt

Add FreeAccess? and FreeObject?.

Made compatible with version 4.0rc3

Change deserialization policy.

Improve SSH support.

Working running simulator over SSH.

Fix joining bug in Experiment.

Working version of SimulatorRunner?.

Add more SimulatorProviders?.

Working PrimeExperimentTest? with 4.0rc3

Add references to deserialization.

Add OpaqueObject? and it's serialization.

Add deserialization of dictionaries.

Partial implementation of deserialization.

Add more tests for deserialization.

Prepare tests for deserialization.

Add proper result to prime experiment test.

Minor fixes to simulators providers.

Draft version of SimulatorProvider?.

Add SimulatorProvider? interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/gui/controls/TextFieldControl.java

    r101 r107  
    33import com.framsticks.gui.Gui;
    44import com.framsticks.params.PrimitiveParam;
    5 import com.framsticks.util.lang.Strings;
    65
    76import javax.swing.*;
     7import javax.swing.text.JTextComponent;
     8
    89import java.awt.*;
    910
    1011@SuppressWarnings("serial")
    11 public class TextFieldControl extends TextControl {
     12public class TextFieldControl extends TextOnlyControl {
    1213
    1314
    14         private static final Color CORRECT_COLOR = new Color(180, 255, 215);
    1515        private static final Color WRONG_COLOR = new Color(255, 180, 215);
    1616
    1717        protected final JTextField textField;
     18        private final Color correctColor;
    1819
    1920        @Override
    2021        protected boolean notifyOfChange() {
    2122                boolean result = super.notifyOfChange();
    22                 textField.setBackground(result ? CORRECT_COLOR : WRONG_COLOR);
     23                textField.setBackground(result ? correctColor : WRONG_COLOR);
    2324                return result;
    2425        }
     
    2829                textField = new JTextField();
    2930                textField.setName("value");
     31                correctColor = textField.getBackground();
    3032
    3133                textField.setMinimumSize(new Dimension(0, Control.LINE_HEIGHT));
     
    3739        }
    3840
    39         @Override
    40         public void pushValueToUserInterfaceImpl(Object text) {
    41                 textField.setText(Strings.toStringNullProof(text));
    42         }
    4341
    4442        @Override
    45         public Object pullValueFromUserInterface() {
    46                 return textField.getText();
     43        protected JTextComponent getTextComponent() {
     44                return textField;
    4745        }
    4846
Note: See TracChangeset for help on using the changeset viewer.