public class DMXAndroidDialogFactory extends Object implements DialogFactory
Constructor and Description |
---|
DMXAndroidDialogFactory(DMXViewManager viewManager,
android.support.v4.app.FragmentActivity parent)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
DMXAndroidDialog |
createDialog(String viewId,
String title)
Create custom Android dialog.
|
DMXAndroidOptionsDialog |
createOptionsDialog(String viewId,
int options)
Create dialog which displays view with specified ID, and with specified options.
|
DMXAndroidOptionsDialog |
createOptionsDialog(String viewId,
String[] options)
Create dialog which displays view with specified ID, and with specified options.
|
DMXAndroidOptionsDialog |
createOptionsDialog(String title,
String message,
int options)
Create dialog with specified title, message and predefined options.
|
DMXAndroidOptionsDialog |
createOptionsDialog(String title,
String message,
String[] options)
Create dialog with specified title, message and options buttons.
|
void |
setResourceManager(DMXResourceManager resourceManager)
Set resource manager for this factory.
|
public DMXAndroidDialogFactory(DMXViewManager viewManager, android.support.v4.app.FragmentActivity parent)
viewManager
- view managerparent
- parent activitypublic void setResourceManager(DMXResourceManager resourceManager)
resourceManager
- resource managerpublic DMXAndroidDialog createDialog(String viewId, String title)
Create custom Android dialog. This dialog will display the view with specified ID. Note that
this view must be instance of DMXDialogView
.
Dialog title is obtained from the view by calling getDialogTitle()
method. Alternatively, caller
can override this by specifying alternate title as title
parameter.
viewId
- ID of view to displaytitle
- alternate dialog titlepublic DMXAndroidOptionsDialog createOptionsDialog(String title, String message, int options)
options
should
be one of the values defined in DMXDialog
.title
- dialog titlemessage
- message to displayoptions
- options buttonspublic DMXAndroidOptionsDialog createOptionsDialog(String title, String message, String[] options)
options
parameter. This is array of maximum 3 elements, representing values for positive, negative
and neutral buttons. Element values can either be keys for resource strings or actual text.title
- dialog titlemessage
- dialog messageoptions
- dialog button textpublic DMXAndroidOptionsDialog createOptionsDialog(String viewId, int options)
options
is the value for options defined in DMXDialog
.viewId
- view IDoptions
- dialog optionspublic DMXAndroidOptionsDialog createOptionsDialog(String viewId, String[] options)
options
is the array of values for positive, negative and neutral buttons, in that order.viewId
- view IDoptions
- options for buttonsCopyright © 2012-2014 Vektor Software. All Rights Reserved.