]> source.dussan.org Git - vaadin-framework.git/commitdiff
#8142 Removed Label.setReadOnly that made no sense
authorArtur Signell <artur@vaadin.com>
Fri, 16 Dec 2011 11:33:29 +0000 (13:33 +0200)
committerArtur Signell <artur@vaadin.com>
Mon, 19 Dec 2011 11:06:56 +0000 (13:06 +0200)
src/com/vaadin/ui/Label.java

index 96aa332ab4678f99c82ec58aa051a91d8713b2a4..e9ea0fd417356d682fd5b29192e8760d72b09816 100644 (file)
@@ -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 <code>true</code> 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.
      *