aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/TwinColSelect.java
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2016-07-14 15:14:18 +0300
committerVaadin Code Review <review@vaadin.com>2016-08-11 10:01:04 +0000
commitfd3617bba2d758ad78689116cfe444d6bfbc1664 (patch)
tree4c7e7c0e7e7f3b8ac2d2f532896e862ff418f50e /server/src/main/java/com/vaadin/ui/TwinColSelect.java
parent5e75657b387a99993ec17b03ab97bc32884fef80 (diff)
downloadvaadin-framework-fd3617bba2d758ad78689116cfe444d6bfbc1664.tar.gz
vaadin-framework-fd3617bba2d758ad78689116cfe444d6bfbc1664.zip
Remove deprecated column based width support from selects
Change-Id: I233f205d3d0d7c0cf59e55531de09b7807d73548
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/TwinColSelect.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/TwinColSelect.java44
1 files changed, 0 insertions, 44 deletions
diff --git a/server/src/main/java/com/vaadin/ui/TwinColSelect.java b/server/src/main/java/com/vaadin/ui/TwinColSelect.java
index 06e06c3396..60ab09b24c 100644
--- a/server/src/main/java/com/vaadin/ui/TwinColSelect.java
+++ b/server/src/main/java/com/vaadin/ui/TwinColSelect.java
@@ -31,7 +31,6 @@ import com.vaadin.shared.ui.twincolselect.TwinColSelectState;
@SuppressWarnings("serial")
public class TwinColSelect extends AbstractSelect {
- private int columns = 0;
private int rows = 0;
private String leftColumnCaption;
@@ -62,46 +61,6 @@ public class TwinColSelect extends AbstractSelect {
setMultiSelect(true);
}
- /**
- * Sets the width of the component so that it displays approximately the
- * given number of letters in each of the two selects.
- * <p>
- * Calling {@code setColumns(10);} is roughly equivalent to calling
- * {@code setWidth((10*2+4)+"10em");}
- * </p>
- *
- * @deprecated As of 7.0. "Columns" does not reflect the exact number of
- * characters that will be displayed. It is better to use
- * setWidth together with "em" to control the width of the
- * field.
- * @param columns
- * the number of columns to set.
- */
- @Deprecated
- public void setColumns(int columns) {
- if (columns < 0) {
- columns = 0;
- }
- if (this.columns != columns) {
- this.columns = columns;
- markAsDirty();
- }
- }
-
- /**
- * Gets the number of columns for the component.
- *
- * @see #setColumns(int)
- * @deprecated As of 7.0. "Columns" does not reflect the exact number of
- * characters that will be displayed. It is better to use
- * setWidth together with "em" to control the width of the
- * field.
- */
- @Deprecated
- public int getColumns() {
- return columns;
- }
-
public int getRows() {
return rows;
}
@@ -142,9 +101,6 @@ public class TwinColSelect extends AbstractSelect {
@Override
public void paintContent(PaintTarget target) throws PaintException {
// Adds the number of columns
- if (columns != 0) {
- target.addAttribute("cols", columns);
- }
// Adds the number of rows
if (rows != 0) {
target.addAttribute("rows", rows);