|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.Behavior
org.wicketstuff.minis.behavior.image.AbstractImageDimensionProvider
public abstract class AbstractImageDimensionProvider
This behavior can be added to Image components to render width and height attributes in
the markup. The exact way to retrieve the dimension information is left for the subclasses.
Providing dimension information for elements makes page rendering faster.
| Field Summary | |
|---|---|
static String |
HEIGHT
"height" standard html img attribute name |
static String |
WIDTH
"width" standard html img attribute name |
| Constructor Summary | |
|---|---|
AbstractImageDimensionProvider()
|
|
| Method Summary | |
|---|---|
protected abstract ImageDimension |
getImageDimension(Component component,
ComponentTag tag)
Gets the image dimension. |
void |
onComponentTag(Component component,
ComponentTag tag)
|
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
afterRender, beforeRender, bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove, renderHead, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WIDTH
public static final String HEIGHT
| Constructor Detail |
|---|
public AbstractImageDimensionProvider()
| Method Detail |
|---|
protected abstract ImageDimension getImageDimension(Component component,
ComponentTag tag)
onComponentTag(Component, ComponentTag).
component - "the component that renders this tag currently"tag - "the tag that is rendered"
public void onComponentTag(Component component,
ComponentTag tag)
onComponentTag in class Behavior
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||