public class ImageDimensionProvider extends AbstractImageDimensionProvider
AbstractImageDimensionProvider
. Width and height information is
provided at object construction time.HEIGHT, WIDTH
Constructor and Description |
---|
ImageDimensionProvider(ImageDimension dimension)
Constructor.
|
ImageDimensionProvider(int width,
int height)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ImageDimension |
getImageDimension(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag)
Gets the image dimension.
|
onComponentTag
public ImageDimensionProvider(int width, int height)
width
- width of the imageheight
- height of the imagepublic ImageDimensionProvider(ImageDimension dimension)
dimension
- dimension of the image, can be nullprotected ImageDimension getImageDimension(org.apache.wicket.Component component, org.apache.wicket.markup.ComponentTag tag)
AbstractImageDimensionProvider
AbstractImageDimensionProvider.onComponentTag(Component, ComponentTag)
.getImageDimension
in class AbstractImageDimensionProvider
component
- "the component that renders this tag currently"tag
- "the tag that is rendered"Copyright © 2015. All rights reserved.