aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/sampler/CodeLabel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/demo/sampler/CodeLabel.java')
-rw-r--r--src/com/vaadin/demo/sampler/CodeLabel.java30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/com/vaadin/demo/sampler/CodeLabel.java b/src/com/vaadin/demo/sampler/CodeLabel.java
deleted file mode 100644
index a135c230c0..0000000000
--- a/src/com/vaadin/demo/sampler/CodeLabel.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package com.vaadin.demo.sampler;
-
-import com.vaadin.demo.sampler.gwt.client.ui.VCodeLabel;
-import com.vaadin.ui.ClientWidget;
-import com.vaadin.ui.Label;
-
-@ClientWidget(VCodeLabel.class)
-@SuppressWarnings("serial")
-public class CodeLabel extends Label {
-
- private static final String TAG = "codelabel";
-
- public CodeLabel() {
- setContentMode(CONTENT_PREFORMATTED);
- }
-
- public CodeLabel(String content) {
- super(content, CONTENT_PREFORMATTED);
- }
-
- @Override
- public void setContentMode(int contentMode) {
- if (contentMode != CONTENT_PREFORMATTED) {
- throw new UnsupportedOperationException(
- "Only preformatted content supported");
- }
- super.setContentMode(CONTENT_PREFORMATTED);
- }
-
-}