Package org.apache.pivot.wtk
Interface FormListener
-
- All Known Implementing Classes:
FormListener.Adapter
,FormListener.Listeners
,TerraFormSkin
public interface FormListener
Form listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
FormListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
FormListener.Listeners
Form listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
fieldInserted(Form.Section section, int index)
Called when a form field has been inserted.default void
fieldsRemoved(Form.Section section, int index, Sequence<Component> fields)
Called when form fields have been removed.default void
sectionHeadingChanged(Form.Section section)
Called when a form section's heading has changed.default void
sectionInserted(Form form, int index)
Called when a form section has been inserted.default void
sectionsRemoved(Form form, int index, Sequence<Form.Section> removed)
Called when form sections have been removed.
-
-
-
Method Detail
-
sectionInserted
default void sectionInserted(Form form, int index)
Called when a form section has been inserted.- Parameters:
form
- The form that has changed.index
- The index where the new section has been inserted.
-
sectionsRemoved
default void sectionsRemoved(Form form, int index, Sequence<Form.Section> removed)
Called when form sections have been removed.- Parameters:
form
- The form that has changed.index
- The starting index where sections were removed.removed
- The complete sequence of the removed sections.
-
sectionHeadingChanged
default void sectionHeadingChanged(Form.Section section)
Called when a form section's heading has changed.- Parameters:
section
- The form section whose heading changed.
-
fieldInserted
default void fieldInserted(Form.Section section, int index)
Called when a form field has been inserted.- Parameters:
section
- The enclosing form section that has changed.index
- The index where a new field has been inserted.
-
fieldsRemoved
default void fieldsRemoved(Form.Section section, int index, Sequence<Component> fields)
Called when form fields have been removed.- Parameters:
section
- The enclosing form section.index
- The starting index where fields were removed.fields
- The complete sequence of fields that were removed.
-
-