public class HierarchyListReceiver
extends android.content.BroadcastReceiver
implements android.view.View.OnClickListener, android.widget.CompoundButton.OnCheckedChangeListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener
Modifier and Type | Class and Description |
---|---|
static class |
HierarchyListReceiver.HIERARCHY_MODE |
protected class |
HierarchyListReceiver.HierarchyListDropDown |
protected class |
HierarchyListReceiver.HierarchyListItemClickListener |
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
_context |
protected MapView |
_mapView |
protected android.view.View |
actionsLayout |
protected HierarchyListAdapter |
adapter |
protected android.widget.ImageButton |
backBtn |
protected android.widget.ImageView |
checkAll |
protected android.view.View |
checkAllLayout |
static java.lang.String |
CLEAR_HIERARCHY |
static java.lang.String |
CLOSE_HIERARCHY |
protected HierarchyManagerView |
content |
protected android.widget.LinearLayout |
customView |
protected android.widget.ImageButton |
filterBtn |
protected android.widget.ImageButton |
hierarchyClearBtn |
protected android.widget.LinearLayout |
listFooter |
protected android.widget.LinearLayout |
listHeader |
protected android.widget.ListView |
listView |
static java.lang.String |
MANAGE_HIERARCHY |
protected HierarchyListReceiver.HIERARCHY_MODE |
mode |
protected android.widget.ImageButton |
multiSelectBtn |
protected HierarchyListReceiver.HierarchyListDropDown |
overlayManagerDropDown |
protected double[] |
overlayManagerSizeValues |
protected android.content.SharedPreferences |
prefs |
static java.lang.String |
REFRESH_HIERARCHY |
protected android.widget.ImageButton |
searchBtn |
protected android.widget.ProgressBar |
searchProgress |
protected android.widget.EditText |
searchText |
protected android.widget.CheckBox |
showAll |
protected SortSpinner |
sortSpinner |
protected android.view.View |
titleBar |
protected android.widget.Button |
titleTextButton |
Constructor and Description |
---|
HierarchyListReceiver(MapView mapView,
android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearHierarchyPrompt() |
protected void |
exportPrompt() |
static HierarchyListItem.Sort |
findSort(HierarchyListItem item,
java.lang.Class<?> sortType)
Get the sort instance for a given item
|
static HierarchyListReceiver |
getInstance() |
static java.util.List<HierarchyListItem.Sort> |
getSortModes(HierarchyListItem item)
Get the list of sort modes supported by the current list
|
protected void |
handleClearHierarchy() |
protected void |
handleManageHierarchy(android.content.Intent intent) |
protected boolean |
isModeInStack(HierarchyListReceiver.HIERARCHY_MODE mode) |
boolean |
isTouchActive() |
protected void |
multiselectPrompt() |
void |
onCheckedChanged(android.widget.CompoundButton cb,
boolean isChecked) |
void |
onClick(android.view.View v) |
void |
onReceive(android.content.Context ignoreCtx,
android.content.Intent intent) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key)
Called when a shared preference is changed, added, or removed.
|
protected void |
refreshDropDown(android.content.Intent intent) |
void |
registerListener(HierarchyStateListener l) |
protected static void |
replaceView(android.view.ViewGroup parent,
android.view.View child)
Replace a view group's children with a single view
|
protected void |
sendFile(java.io.File file) |
protected void |
setCurrentMode(HierarchyListReceiver.HIERARCHY_MODE m) |
protected void |
setPreviousMode() |
void |
setSelectHandler(HierarchyListUserSelect selectHandler)
Set the current select handler
|
void |
setViewToMode()
This sets up the Overlay Manager Action bar to the current mode
|
void |
startSearch(java.lang.String searchTerms)
Start search with provided terms
|
void |
unregisterListener(HierarchyStateListener l) |
void |
updateCheckAll(int state)
update the status of the check all checkbox if necessary
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String CLEAR_HIERARCHY
public static final java.lang.String CLOSE_HIERARCHY
public static final java.lang.String REFRESH_HIERARCHY
public static final java.lang.String MANAGE_HIERARCHY
protected HierarchyListReceiver.HIERARCHY_MODE mode
protected final double[] overlayManagerSizeValues
protected HierarchyManagerView content
protected HierarchyListAdapter adapter
protected android.view.View titleBar
protected android.view.View actionsLayout
protected android.widget.LinearLayout customView
protected android.widget.LinearLayout listHeader
protected android.widget.LinearLayout listFooter
protected android.widget.Button titleTextButton
protected android.widget.EditText searchText
protected final android.content.Context _context
protected final MapView _mapView
protected final android.content.SharedPreferences prefs
protected android.view.View checkAllLayout
protected android.widget.ImageView checkAll
protected android.widget.CheckBox showAll
protected android.widget.ImageButton filterBtn
protected android.widget.ListView listView
protected android.widget.ImageButton backBtn
protected android.widget.ImageButton hierarchyClearBtn
protected android.widget.ImageButton multiSelectBtn
protected android.widget.ImageButton searchBtn
protected SortSpinner sortSpinner
protected android.widget.ProgressBar searchProgress
protected HierarchyListReceiver.HierarchyListDropDown overlayManagerDropDown
public HierarchyListReceiver(MapView mapView, android.content.Context context)
public static HierarchyListReceiver getInstance()
public void onReceive(android.content.Context ignoreCtx, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
protected void handleClearHierarchy()
protected void handleManageHierarchy(android.content.Intent intent)
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
protected void multiselectPrompt()
public void setSelectHandler(HierarchyListUserSelect selectHandler)
selectHandler
- Select handlerpublic void onCheckedChanged(android.widget.CompoundButton cb, boolean isChecked)
onCheckedChanged
in interface android.widget.CompoundButton.OnCheckedChangeListener
protected void refreshDropDown(android.content.Intent intent)
protected void exportPrompt()
protected void sendFile(java.io.File file)
protected void clearHierarchyPrompt()
public boolean isTouchActive()
public void startSearch(java.lang.String searchTerms)
searchTerms
- Search termspublic void updateCheckAll(int state)
state
- Check state (CHECKED, UNCHECKED, or SEMI_CHECKED)protected void setCurrentMode(HierarchyListReceiver.HIERARCHY_MODE m)
protected void setPreviousMode()
protected boolean isModeInStack(HierarchyListReceiver.HIERARCHY_MODE mode)
public void setViewToMode()
public static java.util.List<HierarchyListItem.Sort> getSortModes(HierarchyListItem item)
public static HierarchyListItem.Sort findSort(HierarchyListItem item, java.lang.Class<?> sortType)
item
- List itemsortType
- Sort classprotected static void replaceView(android.view.ViewGroup parent, android.view.View child)
parent
- Parent view groupchild
- Child viewpublic void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
This callback will be run on your main thread.
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
sharedPreferences
- The SharedPreferences
that received
the change.key
- The key of the preference that was changed, added, orpublic void registerListener(HierarchyStateListener l)
public void unregisterListener(HierarchyStateListener l)