public interface WizardDialogDecorator
| Modifier and Type | Method and Description |
|---|---|
void |
addFragment(java.lang.CharSequence title,
java.lang.Class<? extends Fragment> fragmentClass)
Adds a new fragment to the dialog.
|
void |
addFragment(java.lang.CharSequence title,
java.lang.Class<? extends Fragment> fragmentClass,
android.os.Bundle arguments)
Adds a new fragment to the dialog.
|
void |
addFragment(java.lang.Class<? extends Fragment> fragmentClass)
Adds a new fragment to the dialog.
|
void |
addFragment(java.lang.Class<? extends Fragment> fragmentClass,
android.os.Bundle arguments)
Adds a new fragment to the dialog.
|
void |
addFragment(int resourceId,
java.lang.Class<? extends Fragment> fragmentClass)
Adds a new fragment to the dialog.
|
void |
addFragment(int resourceId,
java.lang.Class<? extends Fragment> fragmentClass,
android.os.Bundle arguments)
Adds a new fragment to the dialog.
|
void |
addWizardListener(WizardDialog.WizardListener listener)
Adds a new listener, which should be notified, when the user navigates within the dialog.
|
void |
clearFragments()
Removes all fragments from the dialog.
|
void |
enableSwipe(boolean enable)
Sets, whether switching fragments using swipe gestures should be enabled, or not.
|
void |
enableTabLayout(boolean enable)
Enables or disables the tabs, which indicate the currently shown fragment.
|
android.widget.Button |
getBackButton()
Returns the button, which allows to show the previous fragment of the dialog.
|
java.lang.CharSequence |
getBackButtonText()
Returns the text of the dialog's back button.
|
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.
|
android.widget.Button |
getFinishButton()
Returns the button, which allows to close dialog when the last fragment is shown.
|
java.lang.CharSequence |
getFinishButtonText()
Returns the text of the dialog's finish button.
|
int |
getFragmentCount()
Returns the number of fragments, which are contained by the dialog.
|
android.widget.Button |
getNextButton()
Returns the button, which allows to show the next fragment of the dialog.
|
java.lang.CharSequence |
getNextButtonText()
Returns the text of the dialog's next button.
|
int |
getTabIndicatorColor()
Returns the color of the indicator, which indicates the currently shown fragment.
|
int |
getTabIndicatorHeight()
Returns the height of the indicator, which indicates the currently shown fragment.
|
TabLayout |
getTabLayout()
Returns the tab layout, which is contained by the dialog.
|
WizardDialog.TabPosition |
getTabPosition()
Returns the position of the tabs, which indicate the currently shown fragment.
|
int |
getTabSelectedTextColor()
Returns the selected text color of the tabs, which indicate the currently shown fragment.
|
int |
getTabTextColor()
Returns the text color of the tabs, which indicate the currently shown fragment.
|
ViewPager |
getViewPager()
Returns the view pager, which is contained by the dialog.
|
int |
indexOfFragment(java.lang.Class<? extends Fragment> fragmentClass)
Returns the index of a specific fragment.
|
boolean |
isButtonBarDividerShown()
Returns, whether the divider, which is located above the dialog's buttons, is shown, or not.
|
boolean |
isButtonBarShown()
Returns, whether the dialog's buttons are shown, or not.
|
boolean |
isSwipeEnabled()
Returns, whether switching fragments using swipe gestures is enabled, or not.
|
boolean |
isTabLayoutEnabled()
Returns, whether the tabs, which indicate the currently shown fragment, are enabled, or not.
|
boolean |
isTabLayoutShown()
Returns, whether the tabs, which indicate the currently shown fragment, are shown, or not.
|
void |
removeFragment(int index)
Removes the fragment at a specific index from the dialog.
|
void |
removeWizardListener(WizardDialog.WizardListener listener)
Removes a specific listener, which should not be notified, when the user navigates within the
dialog.
|
void |
setBackButtonText(java.lang.CharSequence text)
Sets the text of the dialog's back button.
|
void |
setBackButtonText(int resourceId)
Sets the text of the dialog's back button.
|
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 |
setFinishButtonText(java.lang.CharSequence text)
Sets the text of the dialog's finish button.
|
void |
setFinishButtonText(int resourceId)
Sets the text of the dialog's finish button.
|
void |
setNextButtonText(java.lang.CharSequence text)
Sets the text of the dialog's next button.
|
void |
setNextButtonText(int resourceId)
Sets the text of the dialog's next button.
|
void |
setTabIndicatorColor(int color)
Sets the color of the indicator, which indicates the currently shown fragment.
|
void |
setTabIndicatorHeight(int height)
Sets the height of the indicator, which indicates the currently shown fragment.
|
void |
setTabPosition(WizardDialog.TabPosition tabPosition)
Sets the position of the tabs, which indicate the currently shown fragment.
|
void |
setTabSelectedTextColor(int selectedTextColor)
Sets the selected text color of the tabs, which indicate the currently shown fragment.
|
void |
setTabTextColor(int textColor)
Sets the text color of the tabs, which indicates the currently shown fragment.
|
void |
showButtonBar(boolean show)
Sets, whether the dialog's buttons should be shown, or not.
|
void |
showButtonBarDivider(boolean show)
Sets, whether the divider, which is located above the dialog's buttons, should be shown, or
not.
|
void |
showTabLayout(boolean show)
Sets, whether the tabs, which indicate the currently shown fragment, should be shown shown,
or not.
|
ViewPager getViewPager()
TabLayout getTabLayout()
android.widget.Button getBackButton()
Button or null, if the dialog does not show any fragments or has not
been shown yetandroid.widget.Button getNextButton()
Button or null, if the dialog does not show any fragments or has not been
shown yetandroid.widget.Button getFinishButton()
Button or null, if the dialog does not show any fragments or
has not been shown yetvoid addFragment(java.lang.Class<? extends Fragment> fragmentClass)
fragmentClass - The class of the fragment, which should be added, as an instance of the class Class. The class may not be nullvoid addFragment(java.lang.Class<? extends Fragment> fragmentClass,
android.os.Bundle arguments)
fragmentClass - The class of the fragment, which should be added, as an instance of the class Class. The class may not be nullarguments - A bundle, which should be passed to the fragment, when it is shown, as an instance of
the class Bundle or null, if no arguments should be passed to the fragmentvoid addFragment(int resourceId,
java.lang.Class<? extends Fragment> fragmentClass)
resourceId - The resource id of the title of the fragment, which should be added, as an Integer value. The resource id must correspond to a valid string resourcefragmentClass - The class of the fragment, which should be added, as an instance of the class Class. The class may not be nullvoid addFragment(int resourceId,
java.lang.Class<? extends Fragment> fragmentClass,
android.os.Bundle arguments)
resourceId - The resource id of the title of the fragment, which should be added, as an Integer value. The resource id must correspond to a valid string resourcefragmentClass - The class of the fragment, which should be added, as an instance of the class Class. The class may not be nullarguments - A bundle, which should be passed to the fragment, when it is shown, as an instance of
the class Bundle or null, if no arguments should be passed to the fragmentvoid addFragment(java.lang.CharSequence title,
java.lang.Class<? extends Fragment> fragmentClass)
title - The title of the fragment, which should be added, as an instance of the type CharSequence or null, if no title should be setfragmentClass - The class of the fragment, which should be added, as an instance of the class Class. The class may not be nullvoid addFragment(java.lang.CharSequence title,
java.lang.Class<? extends Fragment> fragmentClass,
android.os.Bundle arguments)
title - The title of the fragment, which should be added, as an instance of the type CharSequence or null, if no title should be setfragmentClass - The class of the fragment, which should be added, as an instance of the class Class. The class may not be nullarguments - A bundle, which should be passed to the fragment, when it is shown, as an instance of
the class Bundle or null, if no arguments should be passed to the fragmentvoid removeFragment(int index)
index - The index of the fragment, which should be removed, as an valuevoid clearFragments()
int indexOfFragment(java.lang.Class<? extends Fragment> fragmentClass)
fragmentClass - The class of the fragment, whose index should be returned, as an instance of the
class Class. The class may not be nullInteger value or -1, if the adapter
does not contain the given fragmentint getFragmentCount()
Integer
valueWizardDialog.TabPosition getTabPosition()
WizardDialog.TabPositionvoid setTabPosition(WizardDialog.TabPosition tabPosition)
tabPosition - The position, which should be set, as a value of the enum WizardDialog.TabPosition. The
position may either be USE_HEADER, PREFER_HEADER or
NO_HEADERboolean isTabLayoutEnabled()
void enableTabLayout(boolean enable)
enable - True, if the tabs should be enabled, false otherwiseboolean isTabLayoutShown()
void showTabLayout(boolean show)
show - True, if the tabs, which indicate the currently shown fragment, should be shown,
false otherwiseint getTabIndicatorHeight()
Integer valuevoid setTabIndicatorHeight(int height)
height - The height, which should be set, in pixels as an Integer value. The height
must be at least 1int getTabIndicatorColor()
Integer valuevoid setTabIndicatorColor(int color)
color - The color, which should be set, as an Integer valueint getTabTextColor()
Integer valuevoid setTabTextColor(int textColor)
textColor - The text color, which should be set, as an Integer valueint getTabSelectedTextColor()
Integer valuevoid setTabSelectedTextColor(int selectedTextColor)
selectedTextColor - The selected text color, which should be set, as an Integer valueboolean isSwipeEnabled()
void enableSwipe(boolean enable)
enable - True, if switching fragments using swipe gestures should be enabled, false otherwiseboolean isButtonBarShown()
void showButtonBar(boolean show)
show - True, if the dialog's buttons should be shown, false otherwiseint getButtonTextColor()
Integer value or -1, if no
custom color has been setvoid 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 valuejava.lang.CharSequence getBackButtonText()
CharSequencevoid setBackButtonText(int resourceId)
resourceId - The resource id of the text, which should be set, as an Integer value. The
resource id must correspond to a valid string resourcevoid setBackButtonText(java.lang.CharSequence text)
text - The text, which should be set, as an instance of the class CharSequence. The
text may neither be null, nor emptyjava.lang.CharSequence getNextButtonText()
CharSequencevoid setNextButtonText(int resourceId)
resourceId - The resource id of the text, which should be set, as an Integer value. The
resource id must correspond to a valid string resourcevoid setNextButtonText(java.lang.CharSequence text)
text - The text, which should be set, as an instance of the class CharSequence. The
text may neither be null, nor emptyjava.lang.CharSequence getFinishButtonText()
CharSequencevoid setFinishButtonText(int resourceId)
resourceId - The resource id of the text, which should be set, as an Integer value. The
resource id must correspond to a valid string resourcevoid setFinishButtonText(java.lang.CharSequence text)
text - The text, which should be set, as an instance of the class CharSequence. The
text may neither be null, nor emptyvoid addWizardListener(WizardDialog.WizardListener 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 listeners.listener - The listener, which should be added, as an instance of the type WizardDialog.WizardListener. The listener may not be nullvoid removeWizardListener(WizardDialog.WizardListener listener)
listener - The listener, which should be removed, as an instance of the type WizardDialog.WizardListener. The listener may not be null