public class RangeEntryDialog
extends java.lang.Object
implements android.content.DialogInterface.OnDismissListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
RangeEntryDialog.Callback |
| Constructor and Description |
|---|
RangeEntryDialog(MapView mapView)
Instantiate the range entry dialog
|
| Modifier and Type | Method and Description |
|---|---|
RangeEntryDialog |
allowSignedValues(boolean enable)
Enable signed values for the input
|
void |
dismiss()
Close the dialog
|
void |
onDismiss(android.content.DialogInterface dialog) |
void |
show(int titleId,
double valueM,
Span unit,
RangeEntryDialog.Callback callback)
Open the range entry dialog
|
void |
show(int titleId,
double valueM,
Span unit,
RangeEntryDialog.Callback callback,
Span[] acceptableValues)
Open the range entry dialog
|
void |
show(java.lang.String title,
double valueM,
Span unit,
RangeEntryDialog.Callback cb)
Open the range entry dialog
|
void |
show(java.lang.String title,
double valueM,
Span unit,
RangeEntryDialog.Callback callback,
Span[] acceptableValues)
Open the range entry dialog
|
public RangeEntryDialog(MapView mapView)
mapView - the mapView for using the dialogpublic RangeEntryDialog allowSignedValues(boolean enable)
enable - True to enable signed valuespublic void show(java.lang.String title,
double valueM,
Span unit,
RangeEntryDialog.Callback cb)
title - Dialog titlevalueM - The initial range value in metersunit - The initial unitcb - Callback when OK is selectedpublic void show(java.lang.String title,
double valueM,
Span unit,
RangeEntryDialog.Callback callback,
Span[] acceptableValues)
title - Dialog titlevalueM - The initial range value in metersunit - The initial unitcallback - Callback when OK is selectedacceptableValues - is the array of acceptable values for consideration when modifying the range.public void show(int titleId,
double valueM,
Span unit,
RangeEntryDialog.Callback callback)
titleId - Dialog titlevalueM - The initial range value in metersunit - The initial unitcallback - Callback when OK is selectedpublic void show(int titleId,
double valueM,
Span unit,
RangeEntryDialog.Callback callback,
Span[] acceptableValues)
titleId - Dialog titlevalueM - The initial range value in metersunit - The initial unitcallback - Callback when OK is selectedacceptableValues - is the array of acceptable values for consideration when modifying the range.public void dismiss()
public void onDismiss(android.content.DialogInterface dialog)
onDismiss in interface android.content.DialogInterface.OnDismissListener