aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/demo/coverflow/gwt/client/ui/VCoverflow.java
diff options
context:
space:
mode:
authorMarc Englund <marc.englund@itmill.com>2009-05-12 13:08:56 +0000
committerMarc Englund <marc.englund@itmill.com>2009-05-12 13:08:56 +0000
commit03c3e6adb59d3480564b9d541fdf65ceb0089ed0 (patch)
tree8b74050537aa5ab6f12374028a83e517b913b44f /src/com/vaadin/demo/coverflow/gwt/client/ui/VCoverflow.java
parent01f5470edb4c6e23e5c62e9a826116beea0b37ae (diff)
downloadvaadin-framework-03c3e6adb59d3480564b9d541fdf65ceb0089ed0.tar.gz
vaadin-framework-03c3e6adb59d3480564b9d541fdf65ceb0089ed0.zip
Renaming ITMILL/ -> VAADIN/ part 2 (for #2904)
svn changeset:7765/svn branch:6.0
Diffstat (limited to 'src/com/vaadin/demo/coverflow/gwt/client/ui/VCoverflow.java')
-rw-r--r--src/com/vaadin/demo/coverflow/gwt/client/ui/VCoverflow.java68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/com/vaadin/demo/coverflow/gwt/client/ui/VCoverflow.java b/src/com/vaadin/demo/coverflow/gwt/client/ui/VCoverflow.java
index a09c9b1865..ad92de3d83 100644
--- a/src/com/vaadin/demo/coverflow/gwt/client/ui/VCoverflow.java
+++ b/src/com/vaadin/demo/coverflow/gwt/client/ui/VCoverflow.java
@@ -1,7 +1,7 @@
/*
@ITMillApache2LicenseForJavaFiles@
*/
-
+
package com.vaadin.demo.coverflow.gwt.client.ui;
import java.util.ArrayList;
@@ -201,23 +201,23 @@ public class VCoverflow extends Composite implements Paintable {
* id
*/
public native void initializeMethods(String id) /*-{
- var app = this;
-
- if($wnd.itmill.coverflow == null)
- var coverflow = [];
- else
- var coverflow = $wnd.itmill.coverflow;
-
- coverflow['getCovers_' + id] = function() {
- app.@com.vaadin.demo.coverflow.gwt.client.ui.VCoverflow::getCovers()();
- };
-
- coverflow['setCurrent_' + id] = function(selected) {
- app.@com.vaadin.demo.coverflow.gwt.client.ui.VCoverflow::setCover(Ljava/lang/String;)(selected);
- };
-
- $wnd.itmill.coverflow = coverflow;
- }-*/;
+ var app = this;
+
+ if($wnd.vaadin.coverflow == null)
+ var coverflow = [];
+ else
+ var coverflow = $wnd.vaadin.coverflow;
+
+ coverflow['getCovers_' + id] = function() {
+ app.@com.vaadin.demo.coverflow.gwt.client.ui.VCoverflow::getCovers()();
+ };
+
+ coverflow['setCurrent_' + id] = function(selected) {
+ app.@com.vaadin.demo.coverflow.gwt.client.ui.VCoverflow::setCover(Ljava/lang/String;)(selected);
+ };
+
+ $wnd.vaadin.coverflow = coverflow;
+ }-*/;
/**
* This function sends all covers to the flash. We cannot do this directly
@@ -259,14 +259,14 @@ public class VCoverflow extends Composite implements Paintable {
* @param icon
*/
public native void addCover(String id, String caption, String icon) /*-{
- try {
- $doc['fxcoverflow' + id].addCover(caption.toString(), icon.toString());
- }
- catch(e) {
- $wnd.alert(e.message);
- }
-
- }-*/;
+ try {
+ $doc['fxcoverflow' + id].addCover(caption.toString(), icon.toString());
+ }
+ catch(e) {
+ $wnd.alert(e.message);
+ }
+
+ }-*/;
/**
* This function tells the flash which cover should be selected.
@@ -275,21 +275,21 @@ public class VCoverflow extends Composite implements Paintable {
* @param key
*/
public native void selectCover(String id, String key) /*-{
- $doc["fxcoverflow" + id].selectCover(key.toString());
- }-*/;
+ $doc["fxcoverflow" + id].selectCover(key.toString());
+ }-*/;
public native void setBackgroundColor(String id, String startGradient,
String endGradient) /*-{
- $doc["fxcoverflow" + id].setBackgroundColor("0x" + startGradient.toString(), "0x" + endGradient.toString());
- }-*/;
+ $doc["fxcoverflow" + id].setBackgroundColor("0x" + startGradient.toString(), "0x" + endGradient.toString());
+ }-*/;
public native void toggleScrollbarVisibility(String id, boolean visibility) /*-{
- $doc["fxcoverflow" + id].toggleScrollbarVisibility(visibility);
- }-*/;
+ $doc["fxcoverflow" + id].toggleScrollbarVisibility(visibility);
+ }-*/;
public native void removeCover(String id, String key) /*-{
- $doc["fxcoverflow" + id].removeCover(key);
- }-*/;
+ $doc["fxcoverflow" + id].removeCover(key);
+ }-*/;
/**
* Set the HTML coding of the flash movie. This isn't done until the