diff options
Diffstat (limited to 'src/com/vaadin/demo/sampler/gwt/client/ui/VCodeLabel.java')
-rw-r--r-- | src/com/vaadin/demo/sampler/gwt/client/ui/VCodeLabel.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/com/vaadin/demo/sampler/gwt/client/ui/VCodeLabel.java b/src/com/vaadin/demo/sampler/gwt/client/ui/VCodeLabel.java deleted file mode 100644 index e4ba51dd4c..0000000000 --- a/src/com/vaadin/demo/sampler/gwt/client/ui/VCodeLabel.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.vaadin.demo.sampler.gwt.client.ui; - -import com.google.gwt.dom.client.Element; -import com.vaadin.terminal.gwt.client.ApplicationConnection; -import com.vaadin.terminal.gwt.client.UIDL; -import com.vaadin.terminal.gwt.client.ui.VLabel; - -public class VCodeLabel extends VLabel { - - public VCodeLabel() { - super(); - } - - @Override - public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { - super.updateFromUIDL(uidl, client); - Element pre = getElement().getFirstChildElement(); - if (null != pre) { - pre.setClassName("prettyprint"); - prettyPrint(); - } - } - - private native void prettyPrint() - /*-{ - $wnd.prettyPrint(); - }-*/; - -} |