public final class DisabledLinkBehavior extends Behavior
Markup tags <a>
, <link>
and <area>
are replaced with a <span>
.
Modifier and Type | Class and Description |
---|---|
static class |
DisabledLinkBehavior.LinkInstantiationListener
A listener to instantiations of
AbstractLink to restores the disabled representation
to that before Wicket 7.x. |
Constructor and Description |
---|
DisabledLinkBehavior()
Enclose each disabled link in
<em></em> . |
DisabledLinkBehavior(String beforeDisabledLink,
String afterDisabledLink)
Enclose each disabled link in the given markup.
|
Modifier and Type | Method and Description |
---|---|
void |
afterRender(Component component)
Called when a component that has this behavior coupled was rendered.
|
void |
beforeRender(Component component)
Called when a component is about to render.
|
String |
getAfterDisabledLink()
Gets the insertion string to allow disabled links to look like Disabled link .
|
String |
getBeforeDisabledLink()
Gets the insertion string to allow disabled links to look like Disabled link .
|
void |
onComponentTag(Component component,
ComponentTag tag)
Called any time a component that has this behavior registered is rendering the component tag.
|
DisabledLinkBehavior |
setAfterDisabledLink(String afterDisabledLink)
Sets the insertion string to allow disabled links to look like Disabled link .
|
DisabledLinkBehavior |
setBeforeDisabledLink(String beforeDisabledLink)
Sets the insertion string to allow disabled links to look like Disabled link .
|
bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove, renderHead, unbind
public DisabledLinkBehavior()
<em></em>
.public DisabledLinkBehavior setAfterDisabledLink(String afterDisabledLink)
afterDisabledLink
- The insertion stringpublic String getAfterDisabledLink()
public DisabledLinkBehavior setBeforeDisabledLink(String beforeDisabledLink)
beforeDisabledLink
- The insertion stringpublic String getBeforeDisabledLink()
public void beforeRender(Component component)
Behavior
beforeRender
in class Behavior
component
- the component that has this behavior coupledpublic void onComponentTag(Component component, ComponentTag tag)
Behavior
onComponentTag
in class Behavior
component
- the component that renders this tag currentlytag
- the tag that is renderedpublic void afterRender(Component component)
Behavior
afterRender
in class Behavior
component
- the component that has this behavior coupledCopyright © 2006–2014 Apache Software Foundation. All rights reserved.