diff --git a/src/com/esri/viewer/components/singleLineSearch/ResultList.as b/src/com/esri/viewer/components/singleLineSearch/ResultList.as deleted file mode 100644 index 527bacf..0000000 --- a/src/com/esri/viewer/components/singleLineSearch/ResultList.as +++ /dev/null @@ -1,26 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// Copyright (c) 2010-2011 Esri. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/////////////////////////////////////////////////////////////////////////// -package com.esri.viewer.components.singleLineSearch -{ - -import spark.components.List; - -public class ResultList extends List -{ - [Bindable] - public var searchText:String = ""; -} -} diff --git a/src/com/esri/viewer/components/singleLineSearch/ResultListItemRenderer.mxml b/src/com/esri/viewer/components/singleLineSearch/ResultListItemRenderer.mxml deleted file mode 100644 index 064bdec..0000000 --- a/src/com/esri/viewer/components/singleLineSearch/ResultListItemRenderer.mxml +++ /dev/null @@ -1,28 +0,0 @@ - - - - $&"); - suggestionLabel.textFlow = TextConverter.importToFlow(suggestionText, TextConverter.TEXT_FIELD_HTML_FORMAT); - } - ]]> - - - - diff --git a/src/com/esri/viewer/components/singleLineSearch/SearchInputSkin.mxml b/src/com/esri/viewer/components/singleLineSearch/SearchInputSkin.mxml deleted file mode 100644 index 4cd2406..0000000 --- a/src/com/esri/viewer/components/singleLineSearch/SearchInputSkin.mxml +++ /dev/null @@ -1,288 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/com/esri/viewer/components/singleLineSearch/SearchLayer.as b/src/com/esri/viewer/components/singleLineSearch/SearchLayer.as deleted file mode 100644 index 56e8559..0000000 --- a/src/com/esri/viewer/components/singleLineSearch/SearchLayer.as +++ /dev/null @@ -1,25 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// Copyright (c) 2010-2011 Esri. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/////////////////////////////////////////////////////////////////////////// -package com.esri.viewer.components.singleLineSearch -{ - -public class SearchLayer -{ - public var layerIds:Array; - public var layerURL:String; - public var searchFields:Array; -} -} diff --git a/src/com/esri/viewer/components/singleLineSearch/SearchResultUtil.as b/src/com/esri/viewer/components/singleLineSearch/SearchResultUtil.as deleted file mode 100644 index fe80fdd..0000000 --- a/src/com/esri/viewer/components/singleLineSearch/SearchResultUtil.as +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////////////////////// -// Copyright (c) 2010-2011 Esri. All Rights Reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -/////////////////////////////////////////////////////////////////////////// -package com.esri.viewer.components.singleLineSearch -{ - -import com.esri.ags.tasks.supportClasses.AddressCandidate; -import com.esri.ags.tasks.supportClasses.FindResult; - -import mx.utils.StringUtil; - -public class SearchResultUtil -{ - public static function searchResultToLabel(searchResult:Object):String - { - if (searchResult is FindResult) - { - return findResultToLabel(searchResult as FindResult); - } - else if (searchResult is AddressCandidate) - { - return (searchResult as AddressCandidate).address as String; - } - else if (searchResult == null) - { - return ""; - } - else - { - return searchResult as String; - } - } - - private static function findResultToLabel(findResult:FindResult):String - { - return StringUtil.substitute('{0} - {1} - {2} ({3})', - findResult.value, - findResult.foundFieldName, - findResult.layerName, - findResult.layerId); - } -} -}