|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.Component org.apache.wicket.MarkupContainer org.apache.wicket.markup.html.WebMarkupContainer org.apache.wicket.markup.html.list.AbstractItem org.apache.wicket.markup.html.list.LoopItem org.apache.wicket.markup.html.list.ListItem<T>
T
- Model object typepublic class ListItem<T>
Container that holds components in a ListView.
ListView
,
Serialized FormField Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
ListItem(int index,
IModel<T> model)
A constructor which uses the index and the list provided to create a ListItem. |
|
ListItem(String id,
int index)
Constructor |
|
ListItem(String id,
int index,
IModel<T> model)
|
Method Summary | |
---|---|
IModel<T> |
getModel()
Typesafe getter for the model |
T |
getModelObject()
Typesafe getter for the model's object |
void |
setModel(IModel<T> model)
Typesafe setter for the model |
void |
setModelObject(T object)
Typesafe setter for the model object |
Methods inherited from class org.apache.wicket.markup.html.list.LoopItem |
---|
getIndex, setIndex |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ListItem(String id, int index, IModel<T> model)
id
- component idindex
- relative index of this item in the pageable viewmodel
- model for this itempublic ListItem(int index, IModel<T> model)
index
- The index of the itemmodel
- The model object of the itempublic ListItem(String id, int index)
id
- component idindex
- relative index of this item in the pageable viewMethod Detail |
---|
public final IModel<T> getModel()
IGenericComponent
getModel
in interface IGenericComponent<T>
public final void setModel(IModel<T> model)
IGenericComponent
setModel
in interface IGenericComponent<T>
model
- the new modelpublic final T getModelObject()
IGenericComponent
getModelObject
in interface IGenericComponent<T>
public final void setModelObject(T object)
IGenericComponent
setModelObject
in interface IGenericComponent<T>
object
- the new model object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |