public class DropDownManager
extends android.content.BroadcastReceiver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BACK_PRESS_NOT_HANDLED |
static java.lang.String |
CLOSE_DROPDOWN |
static java.lang.String |
HIDE_DROPDOWN_DIVIDER |
static java.lang.String |
SHOW_DROPDOWN |
static java.lang.String |
SHOW_DROPDOWN_DIVIDER |
static java.lang.String |
TAG |
Modifier | Constructor and Description |
---|---|
protected |
DropDownManager() |
Modifier and Type | Method and Description |
---|---|
void |
addStateListener(java.lang.String assocKey,
DropDown.OnStateListener listener)
Add a drop-down state listener for a given association key
|
void |
closeAllDropDowns()
Close all drop downs.
|
void |
dispose() |
static DropDownManager |
getInstance() |
java.lang.String |
getTopDropDownKey()
Return the top right side drop down key.
|
void |
hidePane()
PUBLIC ACCESS TO THESE WILL BE REMOVED IN THE NEXT RELEASE.
|
boolean |
isTopDropDown(DropDownReceiver dropDown)
Check if the supplied drop-down is currently on top (not necessarily visible)
|
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
void |
registerDropDownReceiver(DropDownReceiver receiver,
AtakBroadcast.DocumentedIntentFilter filter)
Register a DropDownReceiver to be run in the main activity thread.
|
void |
removeStateListener(java.lang.String assocKey,
DropDown.OnStateListener listener)
Remove a drop-down state listener for a given association key
|
boolean |
shouldCloseFirst()
Whether any active drop-down has the "close before tool" flag
|
void |
unHidePane()
PUBLIC ACCESS TO THESE WILL BE REMOVED IN THE NEXT RELEASE.
|
void |
unregisterDropDownReceiver(DropDownReceiver receiver)
Unregister a DropDownReceiver.
|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String TAG
public static final java.lang.String CLOSE_DROPDOWN
public static final java.lang.String BACK_PRESS_NOT_HANDLED
public static final java.lang.String SHOW_DROPDOWN
public static final java.lang.String SHOW_DROPDOWN_DIVIDER
public static final java.lang.String HIDE_DROPDOWN_DIVIDER
public static DropDownManager getInstance()
public java.lang.String getTopDropDownKey()
public boolean isTopDropDown(DropDownReceiver dropDown)
dropDown
- Drop downpublic boolean shouldCloseFirst()
public void dispose()
public void registerDropDownReceiver(DropDownReceiver receiver, AtakBroadcast.DocumentedIntentFilter filter)
receiver
- The DropDownReceiver to handle the broadcastfilter
- Selects the Intent broadcasts to be received.public void unregisterDropDownReceiver(DropDownReceiver receiver)
com.atakmap.android.ipc.AtakBroadcast.getInstance().unregisterReceiver(receiver)
receiver
- The DropDownReceiver to stop handling the broadcast.public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
public void closeAllDropDowns()
public void hidePane()
public void unHidePane()
public void addStateListener(java.lang.String assocKey, DropDown.OnStateListener listener)
assocKey
- Association keylistener
- Drop-down state listenerpublic void removeStateListener(java.lang.String assocKey, DropDown.OnStateListener listener)
assocKey
- Association keylistener
- Drop-down state listener