scaffold.libs_as.org.osflash.signals.events.GenericEvent.as Maven / Gradle / Ivy
package org.osflash.signals.events
{
import org.osflash.signals.IPrioritySignal;
/**
*
* @see org.osflash.signals.events.IEvent
* Documentation for the event interface being maintained in IEvent to avoid duplication for now.
*/
public class GenericEvent implements IEvent
{
protected var _bubbles : Boolean;
/** @inheritDoc */
public function get bubbles() : Boolean
{
return _bubbles;
}
public function set bubbles( value : Boolean ) : void
{
_bubbles = value;
}
protected var _target : Object;
/** @inheritDoc */
public function get target() : Object
{
return _target;
}
public function set target( value : Object ) : void
{
_target = value;
}
protected var _currentTarget : Object;
/** @inheritDoc */
public function get currentTarget() : Object
{
return _currentTarget;
}
public function set currentTarget( value : Object ) : void
{
_currentTarget = value;
}
protected var _signal : IPrioritySignal;
/** @inheritDoc */
public function get signal() : IPrioritySignal
{
return _signal;
}
public function set signal( value : IPrioritySignal ) : void
{
_signal = value;
}
public function GenericEvent( bubbles : Boolean = false )
{
_bubbles = bubbles;
}
/** @inheritDoc */
public function clone() : IEvent
{
return new GenericEvent( _bubbles );
}
}
}