doc
 All Classes Functions Variables Properties
Public Member Functions | Protected Attributes | Properties
EMSearchController Class Reference

Inherits UIViewController, and <EMSearchQueryControllerDelegate>.

Inherited by EMDefaultSearchController, and EMToggleSearchController.

List of all members.

Public Member Functions

(id) - initWithSearchQueryDataSource:
(void) - adjustNavigationItem
(void) - adjustSortBar
(void) - positionSortBar

Protected Attributes

EMSearchBar_searchBar
TTView * _sortBar
UISegmentedControl * _sortControl
UIBarButtonItem * _fButton
UIView * _noResultsView
UIView * _errorView
UIView * _loadingView
UILabel * _errorLabel
BOOL _showFacetsForEmptyQuery
BOOL _showResultsForEmptyQuery
BOOL _searchBarVisible
NSString * _searchKey
BOOL _searchBarCancelButtonVisible
BOOL _searchBarFirstResponderEnabled
BOOL _sortBarVisible
NSArray * _sortOptions
BOOL _sortBarScrollable
BOOL _sortBarStartsAboveFold
BOOL _pushDetailControllerForSingleResult
NSError * _error
NSString * _previousSearchBarText
BOOL _cancellingKeyboard
BOOL _reload
BOOL _showingFilterView
BOOL _showingKeyboard
BOOL _viewDidAppear
BOOL _viewDidLoad
UIView * _currentView
EMTypeaheadDataSource_keywordsSource
EMSearchQueryDataSource_dataSource
id
< EMSearchQueryControllerDelegate
_delegate

Properties

EMSearchQueryquery
EMSearchQueryDataSourcedataSource
id
< EMSearchQueryControllerDelegate
delegate
EMSearchBarsearchBar
NSString * searchKey
BOOL searchBarCancelButtonVisible
BOOL searchBarVisible
NSArray * sortOptions

Member Function Documentation

To be overridden by subclasses for custom behavior

- (void) adjustSortBar

To be overridden by subclasses for custom behavior


Member Data Documentation

- (NSError*) _error [protected]

Internal variables

Data sources / Delegates

- (EMSearchBar*) _searchBar [protected]

User Interface Elements

- (BOOL) _showFacetsForEmptyQuery [protected]

Configuration Options


Property Documentation

- (EMSearchQueryDataSource*) dataSource [read, write, retain]

Convenience method for casting the objectSource to a EMSearchQueryDataSource

- (id<EMSearchQueryControllerDelegate>) delegate [read, write, assign]

This delegate returns the views that are presented by this controller Default = self.

- (EMSearchQuery *) query [read, write, retain]

Convenience method for accessing the dataSource's query

- (BOOL) searchBarCancelButtonVisible [read, write, assign]

Default = YES.

- (BOOL) searchBarVisible [read, write, assign]

Default = YES.

- (NSString*) searchKey [read, write, retain]

The search key to use when creating EMSearch objects to add the the EMSearchQuery.

Default = nil.

- (NSArray*) sortOptions [read, write, retain]

An array of EMSort objects. Setting this will cause the sort bar to appear. Re-setting this will re-create the sort bar with the new options

The sort bar will not be displayed if there are zero products displayed

Default = nil;


The documentation for this class was generated from the following files: