Sha256: 29fde64d78518337a87d7fd8c9f2bbf3d211324de59f217629139fc88ee7e241

Contents?: true

Size: 844 Bytes

Versions: 3

Compression:

Stored size: 844 Bytes

Contents

/* Copyright 2008 Theo Hultberg/Iconara */

package <%= base_package %>.controllers.event
{
	import flash.events.Event;

	import <%= base_package %>.controllers.command.Undoable;
	
	
	/**
	 * Events of this type are used to request undo-related actions.
	 */
	public class UndoEvent extends Event {
		
		public static const         UNDO : String = "undo";
		public static const         REDO : String = "redo";
		public static const      RESTORE : String = "restore";
		public static const ADD_UNDOABLE : String = "addUndoable";
		
		
		/**
		 * Events that refer to a specific undoable (RESTORE, ADD_UNDOABLE) use 
		 * this property to pass that object.
		 */
		public var undoable : Undoable;
		
		
		public function UndoEvent( type : String, undoable : Undoable = null ) {
			super(type, true);
			
			this.undoable = undoable;
		}
		
	}
	
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
emergent-core-0.1.0 rails_generators/emergent_config/templates/app/flex/application/controllers/event/UndoEvent.as
emergent-core-0.1.01 rails_generators/emergent_config/templates/app/flex/application/controllers/event/UndoEvent.as
emergent-core-0.1.02 rails_generators/emergent_config/templates/app/flex/application/controllers/event/UndoEvent.as