|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.behavior.AbstractBehavior
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<java.lang.String> contextRelativePath)
Constructor |
|
ContextPathGenerator(java.lang.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.AbstractBehavior |
---|
afterRender, beforeRender, bind, cleanup, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onException, onRendered, rendered, renderHead |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextPathGenerator(IModel<java.lang.String> contextRelativePath)
contextRelativePath
- context-relative path, eg images/border.jpg
public ContextPathGenerator(java.lang.String contextRelativePath)
contextRelativePath
- context-relative path, eg images/border.jpg
Method Detail |
---|
public void onComponentTag(Component component, ComponentTag tag)
onComponentTag
in interface IBehavior
onComponentTag
in class AbstractBehavior
component
- the component that renders this tag currentlytag
- the tag that is renderedIBehavior.onComponentTag(org.apache.wicket.Component,
org.apache.wicket.markup.ComponentTag)
public void detach(Component component)
detach
in interface IBehavior
detach
in class AbstractBehavior
component
- the component that initiates the detachment of this behaviorIBehavior.detach(Component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |