* Gets the field type Don't add a JavaDoc comment here, we use the default
* documentation from the implemented interface.
*/
- public abstract Class getType();
+ public abstract Class<?> getType();
/**
* The abstract field is read only also if the data source is in read only
* @param propertyType
* the Type of the property, that needs to be edited.
*/
- public static AbstractField constructField(Class propertyType) {
+ public static AbstractField constructField(Class<?> propertyType) {
// Null typed properties can not be edited
if (propertyType == null) {
setNewItemsAllowed(false);\r
}\r
\r
- public ComboBox(String caption, Collection options) {\r
+ public ComboBox(String caption, Collection<?> options) {\r
super(caption, options);\r
setMultiSelect(false);\r
setNewItemsAllowed(false);\r
super();
}
- public ListSelect(String caption, Collection options) {
+ public ListSelect(String caption, Collection<?> options) {
super(caption, options);
}
super();
}
- public NativeSelect(String caption, Collection options) {
+ public NativeSelect(String caption, Collection<?> options) {
super(caption, options);
}
super();
}
- public OptionGroup(String caption, Collection options) {
+ public OptionGroup(String caption, Collection<?> options) {
super(caption, options);
}
* has selected a disabled item.
*/
if (isMultiSelect()) {
- Set currentValueSet = (Set) getValue();
- Set newValueSet = (Set) newValue;
+ Set<?> currentValueSet = (Set<?>) getValue();
+ Set<?> newValueSet = (Set<?>) newValue;
for (Object itemId : currentValueSet) {
if (!isItemEnabled(itemId) && !newValueSet.contains(itemId)) {
requestRepaint();
* @param caption
* @param options
*/
- public TwinColSelect(String caption, Collection options) {
+ public TwinColSelect(String caption, Collection<?> options) {
super(caption, options);
setMultiSelect(true);
}