|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.Behavior
org.apache.wicket.markup.html.image.ContextPathGenerator
public class ContextPathGenerator
A behavior that converts the provider url fragment to a context-relative url. For example if the
current url is http://localhost/context/product/1231 and the specified url is
images/border.jpg the generated url will be ../../images/border.jpg
| Constructor Summary | |
|---|---|
ContextPathGenerator(IModel<String> contextRelativePath)
Constructor |
|
ContextPathGenerator(String contextRelativePath)
Constructor |
|
| Method Summary | |
|---|---|
void |
detach(Component component)
Allows the behavior to detach any state it has attached during request processing. |
void |
onComponentTag(Component component,
ComponentTag tag)
Called any time a component that has this behavior registered is rendering the component tag. |
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
afterRender, beforeRender, bind, canCallListenerInterface, canCallListenerInterface, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, renderHead, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextPathGenerator(IModel<String> contextRelativePath)
contextRelativePath - context-relative path, eg images/border.jpgpublic ContextPathGenerator(String contextRelativePath)
contextRelativePath - context-relative path, eg images/border.jpg| Method Detail |
|---|
public void onComponentTag(Component component,
ComponentTag tag)
onComponentTag in class Behaviorcomponent - the component that renders this tag currentlytag - the tag that is renderedpublic void detach(Component component)
detach in class Behaviorcomponent - the component that initiates the detachment of this behavior
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||