Package edu.cmu.cs.stage3.util

Examples of edu.cmu.cs.stage3.util.Enumerable


  public void removeAuthoringToolStateListener(edu.cmu.cs.stage3.alice.authoringtool.event.AuthoringToolStateListener listener) {
    stateListeners.remove(listener);
  }

  protected void fireStateChanging(int previousState, int currentState) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(previousState, currentState, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.stateChanging(ev);
      } catch (Throwable t) {
View Full Code Here


      }
    }
  }

  protected void fireWorldLoading(edu.cmu.cs.stage3.alice.core.World world) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(AuthoringToolStateChangedEvent.AUTHORING_STATE, AuthoringToolStateChangedEvent.AUTHORING_STATE, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.worldLoading(ev);
      } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  protected void fireWorldUnLoading(edu.cmu.cs.stage3.alice.core.World world) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(AuthoringToolStateChangedEvent.AUTHORING_STATE, AuthoringToolStateChangedEvent.AUTHORING_STATE, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.worldUnLoading(ev);
      } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  protected void fireWorldStarting(int previousState, int currentState, edu.cmu.cs.stage3.alice.core.World world) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(previousState, currentState, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.worldStarting(ev);
      } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  protected void fireWorldStopping(int previousState, int currentState, edu.cmu.cs.stage3.alice.core.World world) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(previousState, currentState, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.worldStopping(ev);
      } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  protected void fireWorldPausing(int previousState, int currentState, edu.cmu.cs.stage3.alice.core.World world) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(previousState, currentState, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.worldPausing(ev);
      } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  protected void fireWorldSaving(edu.cmu.cs.stage3.alice.core.World world) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(AuthoringToolStateChangedEvent.AUTHORING_STATE, AuthoringToolStateChangedEvent.AUTHORING_STATE, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.worldSaving(ev);
      } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  protected void fireStateChanged(int previousState, int currentState) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(previousState, currentState, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.stateChanged(ev);
      } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  protected void fireWorldLoaded(edu.cmu.cs.stage3.alice.core.World world) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(AuthoringToolStateChangedEvent.AUTHORING_STATE, AuthoringToolStateChangedEvent.AUTHORING_STATE, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.worldLoaded(ev);
      } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  protected void fireWorldUnLoaded(edu.cmu.cs.stage3.alice.core.World world) {
    AuthoringToolStateChangedEvent ev = new AuthoringToolStateChangedEvent(AuthoringToolStateChangedEvent.AUTHORING_STATE, AuthoringToolStateChangedEvent.AUTHORING_STATE, world);
    for (java.util.Iterator iter = stateListeners.iterator(); iter.hasNext();) {
      AuthoringToolStateListener listener = (AuthoringToolStateListener) iter.next();
      try {
        listener.worldUnLoaded(ev);
      } catch (Throwable t) {
View Full Code Here

TOP

Related Classes of edu.cmu.cs.stage3.util.Enumerable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.