01: /*
02: * $Id: IItemFactory.java 458264 2005-12-08 07:50:37Z ivaynberg $
03: * $Revision: 458264 $
04: * $Date: 2005-12-08 08:50:37 +0100 (Thu, 08 Dec 2005) $
05: *
06: * ====================================================================
07: * Licensed under the Apache License, Version 2.0 (the "License");
08: * you may not use this file except in compliance with the License.
09: * You may obtain a copy of the License at
10: *
11: * http://www.apache.org/licenses/LICENSE-2.0
12: *
13: * Unless required by applicable law or agreed to in writing, software
14: * distributed under the License is distributed on an "AS IS" BASIS,
15: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16: * See the License for the specific language governing permissions and
17: * limitations under the License.
18: */
19: package wicket.extensions.markup.html.repeater.refreshing;
20:
21: import wicket.model.IModel;
22:
23: /**
24: * Factory interface for creating new child item containers for
25: * <b>AbstractPageableView</b>.
26: *
27: * @see wicket.extensions.markup.html.repeater.pageable.AbstractPageableView
28: *
29: * @author Igor Vaynberg (ivaynberg)
30: *
31: */
32: public interface IItemFactory {
33: /**
34: * Factory method for instances of Item. Each generated item must have a
35: * unique id with respect to other generated items.
36: *
37: * @param index
38: * the index of the new data item
39: * @param model
40: * the model for the new data item
41: *
42: * @return DataItem new DataItem
43: */
44: Item newItem(final int index, final IModel model);
45:
46: }
|