public abstract class ErrorDialogFragmentFactory<T>
extends java.lang.Object
ErrorDialogFragmentFactory.Honeycomb
or
ErrorDialogFragmentFactory.Support
.Modifier and Type | Class and Description |
---|---|
static class |
ErrorDialogFragmentFactory.Honeycomb |
static class |
ErrorDialogFragmentFactory.Support |
Modifier and Type | Field and Description |
---|---|
protected ErrorDialogConfig |
config |
Modifier | Constructor and Description |
---|---|
protected |
ErrorDialogFragmentFactory(ErrorDialogConfig config) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createErrorFragment(ThrowableFailureEvent event,
android.os.Bundle arguments)
Returns either a new Honeycomb+ or a new support library DialogFragment.
|
protected java.lang.String |
getMessageFor(ThrowableFailureEvent event,
android.os.Bundle arguments)
May be overridden to provide custom error messages.
|
protected java.lang.String |
getTitleFor(ThrowableFailureEvent event,
android.os.Bundle arguments)
May be overridden to provide custom error title.
|
protected T |
prepareErrorFragment(ThrowableFailureEvent event,
boolean finishAfterDialog,
android.os.Bundle argumentsForErrorDialog)
Prepares the fragment's arguments and creates the fragment.
|
protected final ErrorDialogConfig config
protected ErrorDialogFragmentFactory(ErrorDialogConfig config)
protected T prepareErrorFragment(ThrowableFailureEvent event, boolean finishAfterDialog, android.os.Bundle argumentsForErrorDialog)
protected abstract T createErrorFragment(ThrowableFailureEvent event, android.os.Bundle arguments)
protected java.lang.String getTitleFor(ThrowableFailureEvent event, android.os.Bundle arguments)
protected java.lang.String getMessageFor(ThrowableFailureEvent event, android.os.Bundle arguments)
Available under the Apache License, Version 2.0 - Copyright © 2012-2014 greenrobot.de. All Rights Reserved.