Interface FormManager
-
- All Implemented Interfaces:
public interface FormManager
Interface for objects that manage a list of form listener instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
FormManager.OnFormElementSelectedListener
Listener for form element selection.
public interface
FormManager.OnFormElementDeselectedListener
Listener for form element deselection.
public interface
FormManager.OnFormElementUpdatedListener
Listener for form element updated events.
public interface
FormManager.OnFormElementClickedListener
Listener for form element click events.
public interface
FormManager.OnFormElementEditingModeChangeListener
Listener for form element editing mode enter/exit.
public interface
FormManager.OnFormElementViewUpdatedListener
Listener for form element view updates - validation, contents of the view changed etc.
-
Method Summary
-
-
Method Detail
-
addOnFormElementSelectedListener
abstract void addOnFormElementSelectedListener(@NonNull() FormManager.OnFormElementSelectedListener listener)
Adds a OnFormElementSelectedListener to get notified when form element gets selected. If the listener has already been added previously, this method will be a no-op. Adding
null
is not allowed, and will result in an exception.- Parameters:
listener
- OnFormElementSelectedListener that should be notified.
-
removeOnFormElementSelectedListener
abstract void removeOnFormElementSelectedListener(@NonNull() FormManager.OnFormElementSelectedListener listener)
Removes a previously registered OnFormElementSelectedListener. Upon calling this method the
listener
will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Addingnull
is not allowed,and will result in an exception.- Parameters:
listener
- OnFormElementSelectedListener that should be removed.
-
addOnFormElementDeselectedListener
abstract void addOnFormElementDeselectedListener(@NonNull() FormManager.OnFormElementDeselectedListener listener)
Adds a OnFormElementDeselectedListener to get notified when form element gets deselected. If the listener has already been added previously, this method will be a no-op. Adding
null
is not allowed, and will result in an exception.- Parameters:
listener
- OnFormElementDeselectedListener that should be notified.
-
removeOnFormElementDeselectedListener
abstract void removeOnFormElementDeselectedListener(@NonNull() FormManager.OnFormElementDeselectedListener listener)
Removes a previously registered OnFormElementDeselectedListener. Upon calling this method the
listener
will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Addingnull
is not allowed,and will result in an exception.- Parameters:
listener
- OnFormElementDeselectedListener that should be removed.
-
addOnFormElementUpdatedListener
abstract void addOnFormElementUpdatedListener(@NonNull() FormManager.OnFormElementUpdatedListener listener)
Adds a OnFormElementUpdatedListener to get notified when form element gets updated. If the listener has already been added previously, this method will be a no-op. Adding
null
is not allowed, and will result in an exception.- Parameters:
listener
- OnFormElementUpdatedListener that should be notified.
-
removeOnFormElementUpdatedListener
abstract void removeOnFormElementUpdatedListener(@NonNull() FormManager.OnFormElementUpdatedListener listener)
Removes a previously registered OnFormElementUpdatedListener. Upon calling this method the
listener
will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Addingnull
is not allowed,and will result in an exception.- Parameters:
listener
- OnFormElementUpdatedListener that should be removed.
-
addOnFormElementEditingModeChangeListener
abstract void addOnFormElementEditingModeChangeListener(@NonNull() FormManager.OnFormElementEditingModeChangeListener listener)
Adds a OnFormElementEditingModeChangeListener to get notified when form element editing mode gets updated. If the listener has already been added previously, this method will be a no-op. Adding
null
is not allowed, and will result in an exception.- Parameters:
listener
- OnFormElementEditingModeChangeListener that should be notified.
-
removeOnFormElementEditingModeChangeListener
abstract void removeOnFormElementEditingModeChangeListener(@NonNull() FormManager.OnFormElementEditingModeChangeListener listener)
Removes a previously registered OnFormElementEditingModeChangeListener. Upon calling this method the
listener
will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Addingnull
is not allowed,and will result in an exception.- Parameters:
listener
- OnFormElementEditingModeChangeListener that should be removed.
-
addOnFormElementClickedListener
abstract void addOnFormElementClickedListener(@NonNull() FormManager.OnFormElementClickedListener listener)
Adds a OnFormElementClickedListener to get notified when form element has been clicked. If the listener has already been added previously, this method will be a no-op. Adding
null
is not allowed, and will result in an exception.- Parameters:
listener
- OnFormElementClickedListener that should be notified.
-
removeOnFormElementClickedListener
abstract void removeOnFormElementClickedListener(@NonNull() FormManager.OnFormElementClickedListener listener)
Removes a previously registered OnFormElementClickedListener. Upon calling this method the
listener
will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Addingnull
is not allowed,and will result in an exception.- Parameters:
listener
- OnFormElementClickedListener that should be removed.
-
addOnFormElementViewUpdatedListener
abstract void addOnFormElementViewUpdatedListener(@NonNull() FormManager.OnFormElementViewUpdatedListener listener)
Adds a OnFormElementViewUpdatedListener to get notified about form element view update events. If the listener has already been added previously, this method will be a no-op. Adding
null
is not allowed, and will result in an exception.- Parameters:
listener
- OnFormElementViewUpdatedListener that should be notified.
-
removeOnFormElementViewUpdatedListener
abstract void removeOnFormElementViewUpdatedListener(@NonNull() FormManager.OnFormElementViewUpdatedListener listener)
Removes a previously registered OnFormElementViewUpdatedListener. Upon calling this method the
listener
will no longer be notified of any changes. If the listener has not been added, this method will be a no-op. Addingnull
is not allowed, and will result in an exception.- Parameters:
listener
- OnFormElementViewUpdatedListener that should be removed.
-
-
-
-