Sha256: 145fcaf5c35ea632101edf8b1eba388f64e3de51c3b1e4a67990426bbeb6edfb
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 KB
Contents
package <%= base_package %>.models.presentation { import flash.events.KeyboardEvent; import <%= base_package %>.models.presentation.ResourceModel; import <%= base_package %>.models.domain.Session; import <%= base_package %>.models.constant.Resource; import <%= base_package %>.models.constant.ResourceAction; import <%= base_package %>.controllers.event.ResourceEvent; public class AuthenticationModel extends ResourceModel { /** Injector targets */ [Bindable] public var sessionEvent:ResourceEvent; [Bindable] public var loginErrorString:String; private var _session:Session; [Bindable] public function get session():Session { return _session; } public function set session(value:Session):void { _session = value; } private var _loginDirty:Boolean; [Bindable] public function get loginDirty():Boolean { return _loginDirty; } public function set loginDirty(value:Boolean):void { _loginDirty = value; } public function AuthenticationModel() { session = new Session(); } public function login():void { create(session, sessionEvent); } public function loginOnEnter(event:KeyboardEvent):void { if (event.keyCode == 13) { login(); } } } }
Version data entries
3 entries across 3 versions & 1 rubygems