T - Generic typeS - the type of the sort propertypublic abstract class LinkableImagePropertyColumn<T,S>
extends org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn<T,S>
| Modifier and Type | Class and Description |
|---|---|
class |
LinkableImagePropertyColumn.LinkableImagePanel
Panel which include a linkable image.
|
| Constructor and Description |
|---|
LinkableImagePropertyColumn(org.apache.wicket.model.IModel<String> displayModel,
String imageSrc,
org.apache.wicket.model.IModel<String> linkTitle,
org.apache.wicket.model.IModel<String> altMessage)
Constructor
|
LinkableImagePropertyColumn(String imageSrc,
org.apache.wicket.model.IModel<String> linkTitle,
org.apache.wicket.model.IModel<String> altMessage)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
onClick(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item,
String componentId,
org.apache.wicket.model.IModel<T> model)
Override this method to react to link clicks.
|
void |
populateItem(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item,
String componentId,
org.apache.wicket.model.IModel<T> model) |
public LinkableImagePropertyColumn(String imageSrc, org.apache.wicket.model.IModel<String> linkTitle, org.apache.wicket.model.IModel<String> altMessage)
imageSrc - Relative url for the imagelinkTitle - Title displayed for the linkaltMessage - Alternative message displayed when image can't be renderedpublic LinkableImagePropertyColumn(org.apache.wicket.model.IModel<String> displayModel, String imageSrc, org.apache.wicket.model.IModel<String> linkTitle, org.apache.wicket.model.IModel<String> altMessage)
displayModel - header display modelimageSrc - Relative url for the imagelinkTitle - Title displayed for the linkaltMessage - Alternative message displayed when image can't be renderedpublic void populateItem(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item, String componentId, org.apache.wicket.model.IModel<T> model)
public abstract void onClick(org.apache.wicket.markup.repeater.Item<org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator<T>> item, String componentId, org.apache.wicket.model.IModel<T> model)
item - ItemcomponentId - Component idmodel - ModelCopyright © 2009–2014 IRD. All rights reserved.