From e09e1c817bf955319800bca16a81ad7d2d55e37d Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 16 Dec 2011 13:33:29 +0200 Subject: [PATCH] #8142 Removed Label.setReadOnly that made no sense --- src/com/vaadin/ui/Label.java | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/com/vaadin/ui/Label.java b/src/com/vaadin/ui/Label.java index 96aa332ab4..e9ea0fd417 100644 --- a/src/com/vaadin/ui/Label.java +++ b/src/com/vaadin/ui/Label.java @@ -153,34 +153,6 @@ public class Label extends AbstractComponent implements Property, setWidth(100, UNITS_PERCENTAGE); } - /** - * Set the component to read-only. Readonly is not used in label. - * - * @param readOnly - * True to enable read-only mode, False to disable it. - */ - @Override - public void setReadOnly(boolean readOnly) { - if (dataSource == null) { - throw new IllegalStateException(DATASOURCE_MUST_BE_SET); - } - dataSource.setReadOnly(readOnly); - } - - /** - * Is the component read-only ? Readonly is not used in label - this returns - * allways false. - * - * @return true if the component is in read only mode. - */ - @Override - public boolean isReadOnly() { - if (dataSource == null) { - throw new IllegalStateException(DATASOURCE_MUST_BE_SET); - } - return dataSource.isReadOnly(); - } - /** * Paints the content of this component. * -- 2.39.5