[Yanel-commits] rev 55962 -
public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly
michi at wyona.com
michi at wyona.com
Tue Jan 11 10:28:53 CET 2011
Author: michi
Date: 2011-01-11 10:28:53 +0100 (Tue, 11 Jan 2011)
New Revision: 55962
Modified:
public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/InputItemWithOneSelectableOption.java
Log:
javadoc fixed and redundant method removed
Modified: public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/InputItemWithOneSelectableOption.java
===================================================================
--- public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/InputItemWithOneSelectableOption.java 2011-01-11 09:03:23 UTC (rev 55961)
+++ public/yanel/contributions/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/InputItemWithOneSelectableOption.java 2011-01-11 09:28:53 UTC (rev 55962)
@@ -61,9 +61,11 @@
}
/**
+ * @deprecated Do use doSetValue(Object) instead, because it already existed before this method was unknowingly introduced.
* Append an option to the list of existing options and select this particular option.
* @param option Option
*/
+/*
public void addSelected(Option option) {
if(!options.contains(option)){
options.add(option);
@@ -72,6 +74,7 @@
log.error("Option " + option.getLabel() + " already exists!");
}
}
+*/
/**
* Removes an option from the list of possible values.
@@ -102,10 +105,11 @@
}
/**
- * Handles instance of String and Option
- * */
+ * Set a particular object to 'selected', whereas handles instance of String and Option, but the actual value will NOT be overwritten
+ * @param value Object which shall be selected
+ */
public void doSetValue(Object value) {
- if(value == null){
+ if(value == null) {
selected = -1;
return;
}
More information about the Yanel-commits
mailing list