diff options
author | Henri Sara <henri.sara@itmill.com> | 2009-05-11 13:53:36 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2009-05-11 13:53:36 +0000 |
commit | 1981ddc3b1a44de32e145c03a89b5a0f27807ac4 (patch) | |
tree | 00629a74f7a417c3d32b820676757e427cda09f3 /src/com/vaadin/demo/sampler | |
parent | fcc8d0ff0900243a4f07d57a15a2ebc0ec442492 (diff) | |
download | vaadin-framework-1981ddc3b1a44de32e145c03a89b5a0f27807ac4.tar.gz vaadin-framework-1981ddc3b1a44de32e145c03a89b5a0f27807ac4.zip |
#2904 Change client side class name prefixes I -> V (class names only, not yet CSS prefixes)
svn changeset:7742/svn branch:6.0
Diffstat (limited to 'src/com/vaadin/demo/sampler')
-rw-r--r-- | src/com/vaadin/demo/sampler/gwt/client/SamplerWidgetSet.java | 24 | ||||
-rw-r--r-- | src/com/vaadin/demo/sampler/gwt/client/ui/VActiveLink.java (renamed from src/com/vaadin/demo/sampler/gwt/client/ui/IActiveLink.java) | 10 | ||||
-rw-r--r-- | src/com/vaadin/demo/sampler/gwt/client/ui/VCodeLabel.java (renamed from src/com/vaadin/demo/sampler/gwt/client/ui/ICodeLabel.java) | 6 | ||||
-rw-r--r-- | src/com/vaadin/demo/sampler/gwt/client/ui/VGoogleAnalytics.java (renamed from src/com/vaadin/demo/sampler/gwt/client/ui/IGoogleAnalytics.java) | 4 |
4 files changed, 22 insertions, 22 deletions
diff --git a/src/com/vaadin/demo/sampler/gwt/client/SamplerWidgetSet.java b/src/com/vaadin/demo/sampler/gwt/client/SamplerWidgetSet.java index 2738b21990..24dde94a3c 100644 --- a/src/com/vaadin/demo/sampler/gwt/client/SamplerWidgetSet.java +++ b/src/com/vaadin/demo/sampler/gwt/client/SamplerWidgetSet.java @@ -1,8 +1,8 @@ package com.vaadin.demo.sampler.gwt.client; -import com.vaadin.demo.sampler.gwt.client.ui.IActiveLink; -import com.vaadin.demo.sampler.gwt.client.ui.ICodeLabel; -import com.vaadin.demo.sampler.gwt.client.ui.IGoogleAnalytics; +import com.vaadin.demo.sampler.gwt.client.ui.VActiveLink; +import com.vaadin.demo.sampler.gwt.client.ui.VCodeLabel; +import com.vaadin.demo.sampler.gwt.client.ui.VGoogleAnalytics; import com.vaadin.terminal.gwt.client.DefaultWidgetSet; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; @@ -12,12 +12,12 @@ public class SamplerWidgetSet extends DefaultWidgetSet { @Override public Paintable createWidget(UIDL uidl) { final Class classType = resolveWidgetType(uidl); - if (IGoogleAnalytics.class == classType) { - return new IGoogleAnalytics(); - } else if (ICodeLabel.class == classType) { - return new ICodeLabel(); - } else if (IActiveLink.class == classType) { - return new IActiveLink(); + if (VGoogleAnalytics.class == classType) { + return new VGoogleAnalytics(); + } else if (VCodeLabel.class == classType) { + return new VCodeLabel(); + } else if (VActiveLink.class == classType) { + return new VActiveLink(); } else { return super.createWidget(uidl); } @@ -27,11 +27,11 @@ public class SamplerWidgetSet extends DefaultWidgetSet { protected Class resolveWidgetType(UIDL uidl) { final String tag = uidl.getTag(); if ("googleanalytics".equals(tag)) { - return IGoogleAnalytics.class; + return VGoogleAnalytics.class; } else if ("codelabel".equals(tag)) { - return ICodeLabel.class; + return VCodeLabel.class; } else if ("activelink".equals(tag)) { - return IActiveLink.class; + return VActiveLink.class; } else { return super.resolveWidgetType(uidl); } diff --git a/src/com/vaadin/demo/sampler/gwt/client/ui/IActiveLink.java b/src/com/vaadin/demo/sampler/gwt/client/ui/VActiveLink.java index d539ef5611..a95db45e08 100644 --- a/src/com/vaadin/demo/sampler/gwt/client/ui/IActiveLink.java +++ b/src/com/vaadin/demo/sampler/gwt/client/ui/VActiveLink.java @@ -6,15 +6,15 @@ import com.google.gwt.user.client.ui.MouseListener; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; import com.vaadin.terminal.gwt.client.UIDL; -import com.vaadin.terminal.gwt.client.ui.ILink; +import com.vaadin.terminal.gwt.client.ui.VLink; -public class IActiveLink extends ILink { +public class VActiveLink extends VLink { String id; ApplicationConnection client; boolean listening = false; - public IActiveLink() { + public VActiveLink() { addMouseListener(new MouseListener() { public void onMouseDown(Widget sender, int x, int y) { } @@ -48,10 +48,10 @@ public class IActiveLink extends ILink { boolean opened = (e.getCtrlKey() || e.getAltKey() || e.getShiftKey() || e.getMetaKey() || e.getButton() == Event.BUTTON_MIDDLE); - // Works as ILink if no-one is listening + // Works as VLink if no-one is listening if (listening) { if (opened) { - // ILink will open, notify server + // VLink will open, notify server client.updateVariable(id, "opened", true, false); } else { e.preventDefault(); diff --git a/src/com/vaadin/demo/sampler/gwt/client/ui/ICodeLabel.java b/src/com/vaadin/demo/sampler/gwt/client/ui/VCodeLabel.java index a97d74e067..e4ba51dd4c 100644 --- a/src/com/vaadin/demo/sampler/gwt/client/ui/ICodeLabel.java +++ b/src/com/vaadin/demo/sampler/gwt/client/ui/VCodeLabel.java @@ -3,11 +3,11 @@ 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.ILabel; +import com.vaadin.terminal.gwt.client.ui.VLabel; -public class ICodeLabel extends ILabel { +public class VCodeLabel extends VLabel { - public ICodeLabel() { + public VCodeLabel() { super(); } diff --git a/src/com/vaadin/demo/sampler/gwt/client/ui/IGoogleAnalytics.java b/src/com/vaadin/demo/sampler/gwt/client/ui/VGoogleAnalytics.java index 13e15fb32c..263a8af838 100644 --- a/src/com/vaadin/demo/sampler/gwt/client/ui/IGoogleAnalytics.java +++ b/src/com/vaadin/demo/sampler/gwt/client/ui/VGoogleAnalytics.java @@ -7,9 +7,9 @@ import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.Paintable; import com.vaadin.terminal.gwt.client.UIDL; -public class IGoogleAnalytics extends Widget implements Paintable { +public class VGoogleAnalytics extends Widget implements Paintable { - public IGoogleAnalytics() { + public VGoogleAnalytics() { setElement(Document.get().createDivElement()); if (BrowserInfo.get().isIE6()) { getElement().getStyle().setProperty("overflow", "hidden"); |