diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-09-11 10:52:56 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2012-09-11 10:52:56 +0300 |
commit | c0b98ed77842f505f3a2f424c5d049a3c0c970cb (patch) | |
tree | 437ea7120571b63da92745a72efeb8e3562a5750 /server/src/com/vaadin/ui/Flash.java | |
parent | 52331e0db4d3898c09369c2a797c38c8de544c11 (diff) | |
download | vaadin-framework-c0b98ed77842f505f3a2f424c5d049a3c0c970cb.tar.gz vaadin-framework-c0b98ed77842f505f3a2f424c5d049a3c0c970cb.zip |
Improvements to #9087:
* Rename EmbeddedBrowser to BrowserFrame
* Add constructors to Flash and BrowserFrame
* Change getState() methods to protected
* JavaDoc improvements
* Make ImageClicks test deterministic
Diffstat (limited to 'server/src/com/vaadin/ui/Flash.java')
-rw-r--r-- | server/src/com/vaadin/ui/Flash.java | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/Flash.java b/server/src/com/vaadin/ui/Flash.java index 430018289a..726b6c21c4 100644 --- a/server/src/com/vaadin/ui/Flash.java +++ b/server/src/com/vaadin/ui/Flash.java @@ -6,10 +6,11 @@ package com.vaadin.ui; import java.util.HashMap; +import com.vaadin.server.Resource; import com.vaadin.shared.ui.flash.FlashState; /** - * Component for embedding flash objects. + * A component for displaying Adobe® Flash® content. * * @author Vaadin Ltd. * @version @@ -19,8 +20,39 @@ import com.vaadin.shared.ui.flash.FlashState; @SuppressWarnings("serial") public class Flash extends AbstractEmbedded { + /** + * Creates a new empty Flash component. + */ + public Flash() { + + } + + /** + * Creates a new empty Flash component with the given caption + * + * @param caption + * The caption for the component + */ + public Flash(String caption) { + setCaption(caption); + } + + /** + * Creates a new Flash component with the given caption and content. + * + * @param caption + * The caption for the component + * @param source + * A Resource representing the Flash content that should be + * displayed + */ + public Flash(String caption, Resource source) { + this(caption); + setSource(source); + } + @Override - public FlashState getState() { + protected FlashState getState() { return (FlashState) super.getState(); } |