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.
|
onComponentTagpublic 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)
AbstractImageDimensionProviderAbstractImageDimensionProvider.onComponentTag(Component, ComponentTag).getImageDimension in class AbstractImageDimensionProvidercomponent - "the component that renders this tag currently"tag - "the tag that is rendered"Copyright © 2015. All rights reserved.