Package eltos.simpledialogfragment.form
Class SimpleFormDialog.DialogActions
java.lang.Object
eltos.simpledialogfragment.form.SimpleFormDialog.FocusActions
eltos.simpledialogfragment.form.SimpleFormDialog.DialogActions
- Enclosing class:
- SimpleFormDialog
A Callback Class with useful methods used by
FormElementViewHolder.setUpView(android.view.View, android.content.Context, android.os.Bundle, eltos.simpledialogfragment.form.SimpleFormDialog.DialogActions)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
continueWithNextElement
(boolean mayPressPositiveButtonIfLast) Helper to move the focus to the next element or to simulate a positive button press if this is the last elementboolean
Check if this is the last (focusable) elementboolean
Check if this is the only (focusable) elementvoid
showDialog
(SimpleDialog dialog, String tag) void
Helper to request an update of the positive button stateMethods inherited from class eltos.simpledialogfragment.form.SimpleFormDialog.FocusActions
clearCurrentFocus, hideKeyboard, showKeyboard
-
Method Details
-
updatePosButtonState
public void updatePosButtonState()Helper to request an update of the positive button state -
isOnlyFocusableElement
public boolean isOnlyFocusableElement()Check if this is the only (focusable) element- Returns:
- true if this is the only (focusable) element
-
isLastFocusableElement
public boolean isLastFocusableElement()Check if this is the last (focusable) element- Returns:
- true if this is the last (focusable) element
-
continueWithNextElement
public void continueWithNextElement(boolean mayPressPositiveButtonIfLast) Helper to move the focus to the next element or to simulate a positive button press if this is the last element- Parameters:
mayPressPositiveButtonIfLast
- whether the positive button can be pressed if this was the last element
-
showDialog
-