You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2007/10/03 02:20:12 UTC
svn commit: r581445 -
/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java
Author: ivaynberg
Date: Tue Oct 2 17:20:12 2007
New Revision: 581445
URL: http://svn.apache.org/viewvc?rev=581445&view=rev
Log:
added missing getters
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java?rev=581445&r1=581444&r2=581445&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/link/ExternalLink.java Tue Oct 2 17:20:12 2007
@@ -26,8 +26,8 @@
import org.apache.wicket.util.string.Strings;
/**
- * A simple anchor link (<a href="http://url">) pointing to any URL.
- * Usually this is used for links to destinations outside of Wicket.
+ * A simple anchor link (<a href="http://url">) pointing to any URL. Usually this is used for
+ * links to destinations outside of Wicket.
*
* @author Juergen Donnerstag
*/
@@ -44,8 +44,8 @@
private boolean contextRelative = false;
/**
- * The popup specification. If not-null, a javascript on-click event handler
- * will be generated that opens a new window using the popup properties.
+ * The popup specification. If not-null, a javascript on-click event handler will be generated
+ * that opens a new window using the popup properties.
*/
private PopupSettings popupSettings = null;
@@ -112,9 +112,8 @@
}
/**
- * Gets the popup specification. If not-null, a javascript on-click event
- * handler will be generated that opens a new window using the popup
- * properties.
+ * Gets the popup specification. If not-null, a javascript on-click event handler will be
+ * generated that opens a new window using the popup properties.
*
* @return the popup specification.
*/
@@ -124,9 +123,8 @@
}
/**
- * Sets the popup specification. If not-null, a javascript on-click event
- * handler will be generated that opens a new window using the popup
- * properties.
+ * Sets the popup specification. If not-null, a javascript on-click event handler will be
+ * generated that opens a new window using the popup properties.
*
* @param popupSettings
* the popup specification.
@@ -232,8 +230,8 @@
}
/**
- * @return True if this link is automatically prepended with ../ to make it
- * relative to the context root.
+ * @return True if this link is automatically prepended with ../ to make it relative to the
+ * context root.
*/
public boolean isContextRelative()
{
@@ -241,8 +239,8 @@
}
/**
- * Set to true if this link should be automatically prepended with ../ to
- * make it relative to the context root.
+ * Set to true if this link should be automatically prepended with ../ to make it relative to
+ * the context root.
*
* @param contextRelative
* @return This for chaining
@@ -252,4 +250,22 @@
this.contextRelative = contextRelative;
return this;
}
+
+ /**
+ * @return href attribute
+ */
+ public IModel getHref()
+ {
+ return href;
+ }
+
+ /**
+ * @return label attribute
+ */
+ public IModel getLabel()
+ {
+ return label;
+ }
+
+
}