DialogType - The type of the dialog, whose view hierarchy is modified by the decoratorpublic abstract class AbstractDialogDecorator<DialogType extends Dialog> extends java.lang.Object implements DialogDecorator
| Constructor and Description |
|---|
AbstractDialogDecorator(DialogType dialog)
Creates a new decorator, which allows to modify the view hierarchy of a dialog.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach(android.view.View view)
Attaches the decorator to the view hierarchy.
|
void |
detach()
Detaches the decorator from the view hierarchy.
|
android.content.Context |
getContext()
Returns the context, which is used by the dialog.
|
protected DialogType |
getDialog()
Returns the dialog, whose view hierarchy is modified by the decorator.
|
protected android.view.View |
getView()
Returns the root view of the view hierarchy, which is modified by the decorator.
|
protected abstract void |
onAttach(android.view.View view)
The method, which is invoked, when the decorator is attached to the view hierarchy.
|
protected abstract void |
onDetach()
The method, which is invoked, when the decorator is detached from the view hierarchy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonRestoreInstanceState, onSaveInstanceStatepublic AbstractDialogDecorator(DialogType dialog)
dialog - The dialog, whose view hierarchy should be modified by the decorator, as an instance
of the generic type DialogType. The dialog may not be nullprotected abstract void onAttach(android.view.View view)
view - The root view of the dialog, which is modified by the decorator, as an instance of
the class View. The view may not be nullprotected abstract void onDetach()
protected final DialogType getDialog()
protected final android.view.View getView()
View or null, if the decorator is not attachedpublic final android.content.Context getContext()
DialoggetContext in interface DialogContextpublic final void attach(android.view.View view)
view - The root view of the view hierarchy, which should be modified by the decorator, as an
instance of the class View. The view may not be nullpublic final void detach()