import java.util.EventObject;\r
import java.util.Iterator;\r
\r
+import com.google.gwt.core.client.Scheduler;\r
import com.google.gwt.event.dom.client.KeyCodes;\r
import com.google.gwt.user.client.DOM;\r
import com.google.gwt.user.client.Element;\r
private String temporaryStyle;\r
\r
private ArrayList<EventListener> listeners;\r
+ private static final int TOUCH_DEVICE_IDLE_DELAY = 1000;\r
\r
public VNotification() {\r
setStyleName(STYLENAME);\r
public VNotification(int delayMsec) {\r
this();\r
this.delayMsec = delayMsec;\r
+ if(BrowserInfo.get().isTouchDevice()) {\r
+ new Timer(){\r
+ @Override\r
+ public void run() {\r
+ if(isAttached()) {\r
+ fade();\r
+ }\r
+ }}.schedule(delayMsec + TOUCH_DEVICE_IDLE_DELAY );\r
+ }\r
}\r
\r
public VNotification(int delayMsec, int fadeMsec, int startOpacity) {\r