DOM.setStyleAttribute(spacer, "overflow", "hidden");
DOM.appendChild(panel.getElement(), spacer);
- // Set columns (width) is given
- if (uidl.hasAttribute("cols")) {
- DOM.setStyleAttribute(getElement(), "width", uidl
- .getIntAttribute("cols")
- + "em");
- }
-
}
public void onSuggestionSelected(FilterSelectSuggestion suggestion) {
}
}
- // Adds the number of columns
- if (columns != 0) {
- target.addAttribute("cols", columns);
- }
-
// Constructs selected keys array
String[] selectedKeys;
if (isMultiSelect()) {
}
/**
+ * Note, one should use more generic setWidth(String) method instead of
+ * this. This now days actually converts columns to width with em css unit.
+ *
* Sets the number of columns in the editor. If the number of columns is set
* 0, the actual number of displayed columns is determined implicitly by the
* adapter.
*
+ * @deprecated
+ *
* @param columns
* the number of columns to set.
*/
}
if (this.columns != columns) {
this.columns = columns;
+ setWidth(columns, Select.UNITS_EM);
requestRepaint();
}
}
+ /**
+ * @deprecated see setter function
+ * @return
+ */
public int getColumns() {
return columns;
}