You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2014/07/19 00:17:48 UTC
git commit: WICKET-4904 improved javadoc and marked as deprecated
Repository: wicket
Updated Branches:
refs/heads/master dc635f936 -> 86af197ee
WICKET-4904 improved javadoc and marked as deprecated
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/86af197e
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/86af197e
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/86af197e
Branch: refs/heads/master
Commit: 86af197eeffc4f327afe023f63d7e6732bd371bf
Parents: dc635f9
Author: svenmeier <sv...@meiers.net>
Authored: Sat Jul 19 00:16:26 2014 +0200
Committer: svenmeier <sv...@meiers.net>
Committed: Sat Jul 19 00:16:26 2014 +0200
----------------------------------------------------------------------
.../markup/html/link/DisabledLinkBehavior.java | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/86af197e/wicket-core/src/main/java/org/apache/wicket/markup/html/link/DisabledLinkBehavior.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/html/link/DisabledLinkBehavior.java b/wicket-core/src/main/java/org/apache/wicket/markup/html/link/DisabledLinkBehavior.java
index a198b87..7bb2a3a 100644
--- a/wicket-core/src/main/java/org/apache/wicket/markup/html/link/DisabledLinkBehavior.java
+++ b/wicket-core/src/main/java/org/apache/wicket/markup/html/link/DisabledLinkBehavior.java
@@ -22,10 +22,15 @@ import org.apache.wicket.behavior.Behavior;
import org.apache.wicket.markup.ComponentTag;
/**
- * A behavior to change the representation for disabled links.
+ * A behavior to change the representation of <em>disabled</em> links to that of Wicket 6.x:
* <p>
- * Markup tags {@code <a>}, {@code <link>} and {@code <area>} are replaced with a {@code <span>}.
+ * Markup tags {@code <a>}, {@code <link>} and {@code <area>} are replaced with a {@code <span>}. By
+ * default tags are enclosed in an {@code <em>} tag.
+ *
+ * @deprecated altering the markup tag of disabled links is no longer recommended, thus clients
+ * should move to other solutions
*/
+@Deprecated
public final class DisabledLinkBehavior extends Behavior
{
private static final long serialVersionUID = 1L;
@@ -41,7 +46,7 @@ public final class DisabledLinkBehavior extends Behavior
private String afterDisabledLink;
/**
- * Enclose each disabled link in {@code <em></em>}.
+ * Enclose each disabled link in {@code <em>}.
*/
public DisabledLinkBehavior()
{
@@ -154,9 +159,10 @@ public final class DisabledLinkBehavior extends Behavior
}
/**
- * A listener to instantiations of {@link AbstractLink} to restores the disabled representation
- * to that before Wicket 7.x.
+ * A listener for instantiations of {@link AbstractLink} to restore the disabled representation
+ * to that of Wicket 6.x.
*/
+ @Deprecated
public static class LinkInstantiationListener implements IComponentInstantiationListener
{
/**