Changeset 931


Ignore:
Timestamp:
11/15/14 17:49:46 (10 years ago)
Author:
bln4
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/MagneticConstraint/MagneticConstraintAction.java

    r919 r931  
    2121import org.expeditee.items.Item;
    2222
    23 public interface MagneticConstraintAction {
    24         public boolean exec(final Item item);
     23public abstract class MagneticConstraintAction {
     24        protected MagneticConstraintAction callbackAction;
     25               
     26        abstract public boolean exec(final Item item);
     27       
     28        abstract public boolean invert(final Item item);
     29       
     30        public void callback(final Item item) {
     31                callbackAction.exec(item);
     32        }
     33       
     34        public void setCallbackAction(final MagneticConstraintAction action) {
     35                callbackAction = action;
     36        }
    2537}
Note: See TracChangeset for help on using the changeset viewer.