public interface ButtonBarDialogDecorator extends Dialog
| Modifier and Type | Method and Description |
|---|---|
boolean |
areButtonsStacked()
Returns, whether the buttons of the dialog are aligned vertically, or not.
|
android.widget.Button |
getButton(int whichButton)
Returns one of the buttons, which is shown by the dialog.
|
int |
getButtonBarDividerColor()
Returns the color of the divider, which is located above the dialog's buttons.
|
int |
getButtonTextColor()
Returns the color of the button texts of the dialog.
|
boolean |
isButtonBarDividerShown()
Returns, whether the divider, which is located above the dialog's buttons, is shown, or not.
|
void |
setButtonBarDividerColor(int color)
Sets the color of the divider, which is located above the dialog's buttons.
|
void |
setButtonTextColor(int color)
Sets the color of the button texts of the dialog.
|
void |
setNegativeButton(java.lang.CharSequence text,
android.content.DialogInterface.OnClickListener listener)
Sets the text of the negative button of the dialog.
|
void |
setNegativeButton(int resourceId,
android.content.DialogInterface.OnClickListener listener)
Sets the text of the negative button of the dialog.
|
void |
setNeutralButton(java.lang.CharSequence text,
android.content.DialogInterface.OnClickListener listener)
Sets the text of the neutral button of the dialog.
|
void |
setNeutralButton(int resourceId,
android.content.DialogInterface.OnClickListener listener)
Sets the text of the neutral button of the dialog.
|
void |
setPositiveButton(java.lang.CharSequence text,
android.content.DialogInterface.OnClickListener listener)
Sets the text of the positive button of the dialog.
|
void |
setPositiveButton(int resourceId,
android.content.DialogInterface.OnClickListener listener)
Sets the text of the positive button of the dialog.
|
void |
showButtonBarDivider(boolean show)
Sets, whether the divider, which is located above the dialog's buttons, should be shown, or
not.
|
void |
stackButtons(boolean stackButtons)
Sets, whether the buttons of the dialog should be aligned vertically, or not.
|
getContextandroid.widget.Button getButton(int whichButton)
whichButton - The identifier of the button, which should be returned, as an Integer value.
The identifier must either be DialogInterface.BUTTON_POSITIVE, DialogInterface.BUTTON_NEGATIVE or DialogInterface.BUTTON_NEUTRALButton or null, if the button is not shown or if the dialog has not been shown yetvoid setPositiveButton(java.lang.CharSequence text,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.text - The text, which should be set, as an instance of the type CharSequence or
null, if no positive button should be shownlistener - The listener, which should be notified, when the positive button is clicked, as an
instance of the type DialogInterface.OnClickListener or null, if no listener
should be notifiedvoid setPositiveButton(int resourceId,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.resourceId - The resource id of the text, which should be set, as an Integer value. The
resource id must correspond to a valid string resourcelistener - The listener, which should be notified, when the positive button is clicked, as an
instance of the type DialogInterface.OnClickListener or null, if no listener
should be notifiedvoid setNegativeButton(java.lang.CharSequence text,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.text - The text, which should be set, as an instance of the type CharSequence or
null, if no negative button should be shownlistener - The listener, which should be notified, when the negative button is clicked, as an
instance of the type DialogInterface.OnClickListener or null, if no listener
should be notifiedvoid setNegativeButton(int resourceId,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.resourceId - The resource id of the text, which should be set, as an Integer value. The
resource id must correspond to a valid string resourcelistener - The listener, which should be notified, when the negative button is clicked, as an
instance of the type DialogInterface.OnClickListener or null, if no listener
should be notifiedvoid setNeutralButton(java.lang.CharSequence text,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.text - The text, which should be set, as an instance of the type CharSequence or
null, if no neutral button should be shownlistener - The listener, which should be notified, when the neutral button is clicked, as an
instance of the type DialogInterface.OnClickListener or null, if no listener
should be notifiedvoid setNeutralButton(int resourceId,
android.content.DialogInterface.OnClickListener listener)
onSaveInstanceState-method, because it is not serializable. Therefore this
method must be called again after configuration changes, e.g when the orientation of the
device has changed, in order to re-register the listener.resourceId - The resource id of the text, which should be set, as an Integer value. The
resource id must correspond to a valid string resourcelistener - The listener, which should be notified, when the neutral button is clicked, as an
instance of the type DialogInterface.OnClickListener or null, if no listener
should be notifiedboolean areButtonsStacked()
void stackButtons(boolean stackButtons)
stackButtons - True, if the buttons of the dialog should be aligned vertically, false otherwiseint getButtonTextColor()
Integer valuevoid setButtonTextColor(int color)
color - The color, which should be set, as an Integer valueboolean isButtonBarDividerShown()
void showButtonBarDivider(boolean show)
show - True, if the divider, which is located above the dialog's buttons, should be show,
false otherwiseint getButtonBarDividerColor()
Integer valuevoid setButtonBarDividerColor(int color)
color - The color, which should be set, as an Integer value