Package org.wicketstuff.minis.component
Class ListViewFormComponentReuseManager
- java.lang.Object
-
- org.wicketstuff.minis.component.ListViewFormComponentReuseManager
-
- All Implemented Interfaces:
Serializable
public final class ListViewFormComponentReuseManager extends Object implements Serializable
This class solves: Using up/down/remove links of ListView items clears text fields- Author:
- Sebastian Thomschke
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends FormComponent<?>>
TaddOrReuse(MarkupContainer parent, T newComponent)Either adds the givennewComponentto the parent or reuses an existing component instance previously used with the same model object.
-
-
-
Method Detail
-
addOrReuse
public static <T extends FormComponent<?>> T addOrReuse(MarkupContainer parent, T newComponent)
Either adds the givennewComponentto the parent or reuses an existing component instance previously used with the same model object.- Type Parameters:
T-- Parameters:
parent-newComponent-- Returns:
newComponentor a component previously bound to the same model object
-
-