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 |
static
<T extends org.apache.wicket.markup.html.form.FormComponent<?>>
T |
|
addOrReuse(org.apache.wicket.MarkupContainer parent,
T newComponent)
Either adds the given newComponent to the parent or reuses an existing component
instance previously used with the same model object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addOrReuse
public static <T extends org.apache.wicket.markup.html.form.FormComponent<?>> T addOrReuse(org.apache.wicket.MarkupContainer parent,
T newComponent)
- Either adds the given
newComponent to the parent or reuses an existing component
instance previously used with the same model object.
- Type Parameters:
T - - Parameters:
parent - newComponent -
- Returns:
newComponent or a component previously bound to the same model object
Copyright © 2018. All rights reserved.