You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2007/05/12 00:22:59 UTC
svn commit: r537302 -
/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractPropertyModel.java
Author: ehillenius
Date: Fri May 11 15:22:56 2007
New Revision: 537302
URL: http://svn.apache.org/viewvc?view=rev&rev=537302
Log:
expose property expression
Modified:
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractPropertyModel.java
Modified: incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractPropertyModel.java
URL: http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractPropertyModel.java?view=diff&rev=537302&r1=537301&r2=537302
==============================================================================
--- incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractPropertyModel.java (original)
+++ incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/model/AbstractPropertyModel.java Fri May 11 15:22:56 2007
@@ -51,16 +51,17 @@
this.target = modelObject;
}
-
+
/**
* @see org.apache.wicket.model.IChainingModel#getChainedModel()
*/
public IModel getChainedModel()
{
- if (target instanceof IModel) return (IModel)target;
+ if (target instanceof IModel)
+ return (IModel)target;
return null;
}
-
+
/**
* @see org.apache.wicket.model.IChainingModel#setChainedModel(org.apache.wicket.model.IModel)
*/
@@ -80,11 +81,19 @@
}
/**
- * @param component
- * The component to get a property expression for
* @return The property expression for the component
*/
protected abstract String propertyExpression();
+
+ /**
+ * Gets the property expression for this model
+ *
+ * @return The property expression
+ */
+ public final String getPropertyExpression()
+ {
+ return propertyExpression();
+ }
/**
* Unsets this property model's instance variables and detaches the model.