diff options
author | Artur Signell <artur@vaadin.com> | 2011-12-16 13:33:29 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2011-12-19 13:06:56 +0200 |
commit | e09e1c817bf955319800bca16a81ad7d2d55e37d (patch) | |
tree | fc2390cef584a38e59d8f2431177e438a8eb7de3 /src/com/vaadin/ui | |
parent | 4c310c9cbdf1ccb23c5f851630163b2c8843c85b (diff) | |
download | vaadin-framework-e09e1c817bf955319800bca16a81ad7d2d55e37d.tar.gz vaadin-framework-e09e1c817bf955319800bca16a81ad7d2d55e37d.zip |
#8142 Removed Label.setReadOnly that made no sense
Diffstat (limited to 'src/com/vaadin/ui')
-rw-r--r-- | src/com/vaadin/ui/Label.java | 28 |
1 files changed, 0 insertions, 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 @@ -154,34 +154,6 @@ public class Label extends AbstractComponent implements Property, } /** - * 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. * * @param target |