Ignore:
Timestamp:
09/10/13 21:11:41 (11 years ago)
Author:
psniegowski
Message:

HIGHLIGHTS:

  • import refactorization: move Tree, Path, etc.

from core to structure package

  • initial serialization implementation
  • improve PrimeExperiment? test
  • many organizational changes and convenience improvements

CHANGELOG:
Make registry in AbstractTree? final.

Move most classes from core to structure package.

Minor changes.

Switch names of Future and FutureHandler?.

Rename ExceptionResultHandler? to ExceptionHandler?.

Rename ExceptionHandler? to ExceptionDispatcherHandler?.

Fix bug in ParamCandidate? cache.

Add missing synchronization to the BufferedDispatcher?.

Develop @Serialized support.

Rework serialization further.

Add serialization/deserialization interface to ValueParam?.

Move getStorageType and isNumeric from Param down to params hierarchy.

Minor changes.

Improve param type induction.

Add TestSerializedClass? for testing new serialization.

Add info files gor GenePool? and Population.

Add standard.expt exemplary netfile.

Add type name field to PropertiesObject?.

Use PropertiesObject? for PropertiesAccess? instead of ordinary map.

Hide getFramsClass is several more places.

More unification accross FramsClass?, Access and Path.

Add ParamCollection?.

Simplify interface for getting params from FramsClass?, Access
or Path.

Make Access.call() interface variadic.

Add arguments(args) convenience wrapper around new Object[] {args}.

Upgrade to apache.commons.lang version 3.1

Minor improvement with Response constructors.

Develop proper result printing in ClientAtServer?.

Add experimentNetsave to PrimeExperiment?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/main/src/main/java/com/framsticks/gui/tree/TreeNode.java

    r101 r105  
    88import org.apache.logging.log4j.Logger;
    99
    10 import com.framsticks.core.Node;
    11 import com.framsticks.core.Path;
    12 import com.framsticks.core.SideNoteKey;
    13 import com.framsticks.core.Tree;
    1410import com.framsticks.gui.Frame;
    1511import com.framsticks.gui.ImageProvider;
     
    1915import com.framsticks.params.CompositeParam;
    2016import com.framsticks.params.EventListener;
    21 import com.framsticks.params.FramsClass;
    2217import com.framsticks.params.ValueParam;
    2318import com.framsticks.params.types.EventParam;
    2419import com.framsticks.params.types.ObjectParam;
    2520import com.framsticks.params.types.StringParam;
     21import com.framsticks.structure.Node;
     22import com.framsticks.structure.Path;
     23import com.framsticks.structure.SideNoteKey;
     24import com.framsticks.structure.Tree;
    2625import com.framsticks.util.FramsticksException;
    27 import com.framsticks.util.dispatching.FutureHandler;
     26import com.framsticks.util.dispatching.Future;
    2827import com.framsticks.util.lang.Casting;
    2928import com.framsticks.util.lang.Containers;
    3029import com.framsticks.util.swing.TooltipConstructor;
    3130
    32 import static com.framsticks.core.TreeOperations.*;
     31import static com.framsticks.structure.TreeOperations.*;
    3332
    3433public class TreeNode extends AbstractNode {
     
    6968                if (path.getTop().getParam() instanceof ObjectParam) {
    7069                        Access access = bindAccess(path);
    71                         FramsClass framsClass = access.getFramsClass();
    72                         for (EventParam eventParam : Containers.filterInstanceof(framsClass.getParamEntries(), EventParam.class)) {
     70                        for (EventParam eventParam : Containers.filterInstanceof(access.getParams(), EventParam.class)) {
    7371                                if (!eventParam.getId().endsWith("_changed")) {
    7472                                        continue;
    7573                                }
    7674                                String valueId = eventParam.getId().substring(0, eventParam.getId().length() - 8);
    77                                 final ValueParam valueParam = Casting.tryCast(ValueParam.class, framsClass.getParam(valueId));
     75                                final ValueParam valueParam = Casting.tryCast(ValueParam.class, access.getParam(valueId));
    7876                                if (valueParam == null) {
    7977                                        continue;
     
    249247
    250248                renderer.setToolTipText(new TooltipConstructor()
    251                                 .append("frams", access.getId())
     249                                .append("frams", access.getTypeId())
    252250                                .append("java", child.getClass().getCanonicalName())
    253251                                .append("access", access.getClass().getSimpleName())
     
    271269
    272270        protected <A> void tryAddListener(final Path path, final EventParam eventParam, Class<A> argumentType, final EventListener<A> listener) {
    273                 getTree().addListener(path, eventParam, listener, argumentType, new FutureHandler<Void>(getFrame()) {
     271                addListener(path, eventParam, listener, argumentType, new Future<Void>(getFrame()) {
    274272                        @SuppressWarnings("unchecked")
    275273                        @Override
Note: See TracChangeset for help on using the changeset viewer.