Module: nagvis Branch: master Commit: 1b3c563f4c38bf221e6ab71691be76ee6d462a8e URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=1b3c563f4c38bf221e6ab71691be76ee6d462a8e
Author: Roman Kyrylych <[email protected]> Date: Wed Aug 12 17:09:31 2009 +0300 gmap: Fixed not-OK to OK state change display Signed-off-by: Roman Kyrylych <[email protected]> --- uifx/src/modules/gmap/data/LocationsData.as | 8 +++++++- uifx/src/modules/gmap/mate/LocationsEM.mxml | 1 + 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/uifx/src/modules/gmap/data/LocationsData.as b/uifx/src/modules/gmap/data/LocationsData.as index 1e2540f..4681ff0 100644 --- a/uifx/src/modules/gmap/data/LocationsData.as +++ b/uifx/src/modules/gmap/data/LocationsData.as @@ -59,6 +59,12 @@ package modules.gmap.data public function removeItemById(id:String):void { removeItemAt(getItemIndex(getItemById(id))); - } + } + + public function virginize():void + { + for each(var location : Location in this) + location.state = Location.STATE_OK; + } } } \ No newline at end of file diff --git a/uifx/src/modules/gmap/mate/LocationsEM.mxml b/uifx/src/modules/gmap/mate/LocationsEM.mxml index 7557430..a0c808c 100644 --- a/uifx/src/modules/gmap/mate/LocationsEM.mxml +++ b/uifx/src/modules/gmap/mate/LocationsEM.mxml @@ -62,6 +62,7 @@ <EventHandlers type="{Poller.TIMEOUT}"> <RemoteObjectInvoker instance="{LocationsService}" method="getAll" arguments="true"> <resultHandlers> + <MethodInvoker generator="{LocationsData}" method="virginize"/> <MethodInvoker generator="{LocationsData}" method="addUpdateItems" arguments="{resultObject}"/> </resultHandlers> </RemoteObjectInvoker> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
