public class DangerCloseReceiver extends DropDownReceiver implements android.view.View.OnClickListener, DropDown.OnStateListener
Modifier and Type | Class and Description |
---|---|
static interface |
DangerCloseReceiver.ExternalMunitionQuery
Implement in order to obtain any external munition information.
|
static class |
DangerCloseReceiver.VIEW_MODE |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADD |
static java.lang.String |
EXTRA_FLIGHT_MUNITIONS_DATA |
static java.lang.String |
EXTRA_FLIGHT_MUNITIONS_GENERATED |
static java.lang.String |
OPEN |
static java.lang.String |
REMOVE |
static java.lang.String |
REMOVE_ALL |
static java.lang.String |
REMOVE_WEAPON |
static java.lang.String |
SEND_GENERATE_FLIGHT_MUNITIONS_REQUEST |
static java.lang.String |
TAG |
static java.lang.String |
TOGGLE |
static java.lang.String |
TOGGLE_LABELS |
DROPDOWN_STATE_FULLSCREEN, DROPDOWN_STATE_NONE, DROPDOWN_STATE_NORMAL, FIVE_EIGTHS_HEIGHT, FIVE_EIGTHS_WIDTH, FIVE_TWELFTHS_HEIGHT, FIVE_TWELFTHS_WIDTH, FULL_HEIGHT, FULL_WIDTH, HALF_HEIGHT, HALF_WIDTH, HANDLE_THICKNESS_LANDSCAPE, HANDLE_THICKNESS_PORTRAIT, NO_HEIGHT, NO_WIDTH, QUARTER_SCREEN, SEVEN_SIXTEENTH_WIDTH, THIRD_HEIGHT, THIRD_WIDTH, THREE_EIGHTHS_HEIGHT, THREE_EIGHTHS_WIDTH, TWO_THIRDS_HEIGHT, TWO_THIRDS_WIDTH
Constructor and Description |
---|
DangerCloseReceiver(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
boolean |
createDangerClose(PointMapItem tar,
java.lang.String weaponName,
java.lang.String categoryName,
java.lang.String description,
int inner,
int outer,
boolean remove,
java.lang.String fromLine,
boolean persist) |
void |
disposeImpl()
Any drop down specific disposal implementation that is performed during the
disposal of a drop down.
|
static DangerCloseReceiver |
getInstance() |
void |
onClick(android.view.View v) |
void |
onDropDownClose() |
void |
onDropDownSelectionRemoved() |
void |
onDropDownSizeChanged(double width,
double height) |
void |
onDropDownVisible(boolean v) |
void |
onReceive(android.content.Context ignoreCtx,
android.content.Intent intent) |
protected void |
removeAllItems(java.lang.String fromLine)
Remove all items is based on how the dropdown was opened.
|
protected void |
removeMunitionFromAllTargets(java.lang.String weapon,
java.lang.String category) |
void |
setExternalMunitionQuery(DangerCloseReceiver.ExternalMunitionQuery emq) |
_showDropDown, callResize, closeDropDown, dispose, dropDownAlreadyExists, getAssociationKey, getBackStackCount, getDropDown, getMapView, hideDropDown, isClosed, isPortrait, isRetained, isTablet, isTransient, isVisible, onBackButtonPressed, onStateRequested, resize, setAssociationKey, setRetain, setSelected, setSelected, setSelected, setTransient, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, showDropDown, unhideDropDown
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 ADD
public static final java.lang.String REMOVE
public static final java.lang.String REMOVE_WEAPON
public static final java.lang.String TOGGLE
public static final java.lang.String OPEN
public static final java.lang.String REMOVE_ALL
public static final java.lang.String TOGGLE_LABELS
public static final java.lang.String SEND_GENERATE_FLIGHT_MUNITIONS_REQUEST
public static final java.lang.String EXTRA_FLIGHT_MUNITIONS_GENERATED
public static final java.lang.String EXTRA_FLIGHT_MUNITIONS_DATA
public DangerCloseReceiver(MapView mapView)
public void setExternalMunitionQuery(DangerCloseReceiver.ExternalMunitionQuery emq)
public static DangerCloseReceiver getInstance()
public void disposeImpl()
DropDownReceiver
disposeImpl
in class DropDownReceiver
public void onReceive(android.content.Context ignoreCtx, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
public void onDropDownSelectionRemoved()
onDropDownSelectionRemoved
in interface DropDown.OnStateListener
public void onDropDownClose()
onDropDownClose
in interface DropDown.OnStateListener
public void onDropDownSizeChanged(double width, double height)
onDropDownSizeChanged
in interface DropDown.OnStateListener
public void onDropDownVisible(boolean v)
onDropDownVisible
in interface DropDown.OnStateListener
protected void removeMunitionFromAllTargets(java.lang.String weapon, java.lang.String category)
protected void removeAllItems(java.lang.String fromLine)
fromLine
- - Represents if the call came from a fiveline or a ninelinepublic boolean createDangerClose(PointMapItem tar, java.lang.String weaponName, java.lang.String categoryName, java.lang.String description, int inner, int outer, boolean remove, java.lang.String fromLine, boolean persist)