Class GroupsModel
- java.lang.Object
-
- org.apache.wicket.model.LoadableDetachableModel<Class<?>[]>
-
- org.apache.wicket.bean.validation.GroupsModel
-
- All Implemented Interfaces:
Serializable
,IDetachable
,IModel<Class<?>[]>
,IClusterable
public class GroupsModel extends LoadableDetachableModel<Class<?>[]>
A model that can hold on to an array of classes. Useful for keeping a definition of validation groups to be used to restrict validation.- Author:
- igor
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GroupsModel(Class<?>... groups)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Class<?>[]
load()
Loads and returns the (temporary) model object.-
Methods inherited from class org.apache.wicket.model.LoadableDetachableModel
detach, getObject, isAttached, of, onAttach, onDetach, setObject, toString
-
-
-
-
Constructor Detail
-
GroupsModel
public GroupsModel(Class<?>... groups)
Constructor- Parameters:
groups
- an array of groups ornull
for none
-
-
Method Detail
-
load
protected Class<?>[] load()
Description copied from class:LoadableDetachableModel
Loads and returns the (temporary) model object.- Specified by:
load
in classLoadableDetachableModel<Class<?>[]>
- Returns:
- the (temporary) model object
-
-