You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2007/08/28 16:44:21 UTC
svn commit: r570446 -
/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractChoice.java
Author: knopp
Date: Tue Aug 28 07:44:21 2007
New Revision: 570446
URL: http://svn.apache.org/viewvc?rev=570446&view=rev
Log:
Added getChoicesModel()
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractChoice.java
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractChoice.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractChoice.java?rev=570446&r1=570445&r2=570446&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractChoice.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/form/AbstractChoice.java Tue Aug 28 07:44:21 2007
@@ -205,6 +205,16 @@
return choices;
}
+ /**
+ * Returns the model for this AbastractChoice choices.
+ *
+ * @return
+ */
+ public IModel getChoicesModel()
+ {
+ return choices;
+ }
+
/**
* Sets the list of choices
@@ -287,8 +297,7 @@
*
* @param selected
* The object that's currently selected
- * @return Any default choice, such as "Choose One", depending on the
- * subclass
+ * @return Any default choice, such as "Choose One", depending on the subclass
*/
protected CharSequence getDefaultChoice(final Object selected)
{
@@ -309,8 +318,7 @@
protected abstract boolean isSelected(final Object object, int index, String selected);
/**
- * Gets whether the given value is disabled. This default implementation
- * always returns false.
+ * Gets whether the given value is disabled. This default implementation always returns false.
*
* @param object
* The object to check
@@ -332,8 +340,7 @@
* The markup stream
* @param openTag
* The open tag for the body
- * @see org.apache.wicket.Component#onComponentTagBody(MarkupStream,
- * ComponentTag)
+ * @see org.apache.wicket.Component#onComponentTagBody(MarkupStream, ComponentTag)
*/
protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)
{
@@ -358,8 +365,7 @@
* Generats and appends html for a single choice into the provided buffer
*
* @param buffer
- * Appending string buffer that will have the generated html
- * appended
+ * Appending string buffer that will have the generated html appended
* @param choice
* Choice object
* @param index
@@ -406,9 +412,9 @@
}
/**
- * Override this method if you want to localize the display values of the
- * generated options. By default false is returned so that the display
- * values of options are not tested if they have a i18n key.
+ * Override this method if you want to localize the display values of the generated options. By
+ * default false is returned so that the display values of options are not tested if they have a
+ * i18n key.
*
* @return true If you want to localize the display values, default == false
*/