wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcompag...@apache.org
Subject svn commit: r513292 - /incubator/wicket/branches/wicket-1.x/wicket-datetime/src/main/java/wicket/extensions/yui/calendar/DatePicker.java
Date Thu, 01 Mar 2007 12:06:09 GMT
Author: jcompagner
Date: Thu Mar  1 04:06:09 2007
New Revision: 513292

URL: http://svn.apache.org/viewvc?view=rev&rev=513292
Log:
able to override icon style

Modified:
    incubator/wicket/branches/wicket-1.x/wicket-datetime/src/main/java/wicket/extensions/yui/calendar/DatePicker.java

Modified: incubator/wicket/branches/wicket-1.x/wicket-datetime/src/main/java/wicket/extensions/yui/calendar/DatePicker.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket-datetime/src/main/java/wicket/extensions/yui/calendar/DatePicker.java?view=diff&rev=513292&r1=513291&r2=513292
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket-datetime/src/main/java/wicket/extensions/yui/calendar/DatePicker.java
(original)
+++ incubator/wicket/branches/wicket-1.x/wicket-datetime/src/main/java/wicket/extensions/yui/calendar/DatePicker.java
Thu Mar  1 04:06:09 2007
@@ -88,11 +88,11 @@
 		// component. Not as pretty as working with a panel etc, but works
 		// for behaviors and is more efficient
 		Response response = component.getResponse();
-		response
-				.write("\n<span>&nbsp;<div style=\"display:none;z-index: 99999;position:absolute;\"
id=\"");
+		response.write("\n<span>&nbsp;<div style=\"display:none;z-index: 99999;position:absolute;\"
id=\"");
 		response.write(getCalendarMarkupId());
-		response
-				.write("\"></div><img style=\"cursor: pointer; border: none;\" id=\"");
+		response.write("\"></div><img style=\"");
+		response.write(getIconStyle());
+		response.write("\" id=\"");
 		response.write(getIconId());
 		response.write("\" src=\"");
 		CharSequence iconUrl = getIconUrl();
@@ -357,6 +357,11 @@
 	 */
 	protected final String getIconId() {
 		return component.getMarkupId() + "Icon";
+	}
+	
+	protected String getIconStyle()
+	{
+		return "cursor: pointer; border: none;position:absolute;";
 	}
 
 	/**



Mime
View raw message