|
||||||||||
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.markup.html.WebComponent org.apache.wicket.markup.html.image.ContextImage
public class ContextImage
Provides a context-relative image.
Provide a String in this component's model which will be prefixed such that the image is relative to the context root, no matter what URL the page the ContextImage is on is rendered at.
Field 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 | |
---|---|
ContextImage(String id)
Constructor. |
|
ContextImage(String id,
IModel<String> contextRelativePath)
Constructor |
|
ContextImage(String id,
String contextRelativePath)
Constructor |
Method Summary | |
---|---|
protected void |
onComponentTag(ComponentTag tag)
Processes the component tag. |
Methods inherited from class org.apache.wicket.markup.html.WebComponent |
---|
onRender |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContextImage(String id, IModel<String> contextRelativePath)
id
- the component idcontextRelativePath
- context-relative path eg images/border.jpg
public ContextImage(String id, String contextRelativePath)
id
- the component idcontextRelativePath
- context-relative path eg images/border.jpg
public ContextImage(String id)
id
- the component idMethod Detail |
---|
protected void onComponentTag(ComponentTag tag)
Component
onComponentTag
in class Component
tag
- Tag to modifyComponent.onComponentTag(ComponentTag)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |