TODO : set temporary rider in AppModelLocator when RiderList item is clicked

This commit is contained in:
2025-12-10 21:57:25 +01:00
parent d0ab28556b
commit da6a89c848
5 changed files with 37 additions and 19 deletions
+3 -13
View File
@@ -44,26 +44,16 @@ class AppModelLocator extends EventDispatcher implements IModelLocator {
return drawerIsOpen;
}
// selected rider
// temporary holding space for rider we're creating or editing
// this gets copied into or added onto the main rider list
public var selectedRider(default, set):RiderVO = null;
private function set_selectedRider(pRider:RiderVO):RiderVO {
selectedRider = pRider;
dispatchEvent(new Event(AppModelLocator.DRAWER_STATE_CHANGE));
dispatchEvent(new Event(AppModelLocator.RIDER_SELECT));
return selectedRider;
}
// rider object contains uid/passwd
// its value gets set at login and cleared at logout but nothing binds to it or uses it
// retained since it was used in the original Adobe CafeTownsend example app
/*public var user(default, set):User;
private function set_user(value:User):User {
user = value;
dispatchEvent(new Event(USER_CHANGE));
return user;
}*/
// contains the main riders list which is populated on startup
// mx:application's creationComplete event is mutated into a cairngorm event
// that calls the httpservice for the data
+2
View File
@@ -21,6 +21,8 @@ class Constants {
public static final BUTTON_DOWN_COLOR:Int = 0x69808A;
public static final BUTTON_INVERTED_UP_COLOR:Int = 0xECEFF0;
public static final LIST_SEPARATOR_COLOR:Int = 0xE1E3E4;
// Fonts
public static final MONTSERRAT_LIGHT_300:String = "MontserratLight300";
public static final MONTSERRAT_REGULAR_400:String = "MontserratRegular400";