diff options
48 files changed, 16 insertions, 8 deletions
diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.000.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.000.jpg Binary files differnew file mode 100644 index 0000000000..81ce189440 --- /dev/null +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.000.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.001.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.001.jpg Binary files differindex 516fcd45c3..0040565e98 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.001.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.001.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.002.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.002.jpg Binary files differindex 5f581611db..78da40cbf8 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.002.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.002.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.003.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.003.jpg Binary files differindex 7fa826f3cf..10b6390d65 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.003.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.003.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.004.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.004.jpg Binary files differindex 88b823daaa..ed8a6b29c1 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.004.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.004.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.005.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.005.jpg Binary files differindex 4105fa3165..528cf934bf 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.005.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.005.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.006.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.006.jpg Binary files differindex 188e23e359..8c45bb4a1e 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.006.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.006.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.007.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.007.jpg Binary files differindex dbe47e943f..6c5bee25dd 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.007.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.007.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.008.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.008.jpg Binary files differindex 77ab44d61b..ef66bf4a97 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.008.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.008.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.009.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.009.jpg Binary files differindex a352f9b810..ebe38538c7 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.009.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.009.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.010.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.010.jpg Binary files differindex 04187d5c0f..b03cd84404 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.010.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.010.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.011.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.011.jpg Binary files differindex dcd2eac380..30edf8b318 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.011.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.011.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.012.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.012.jpg Binary files differindex 64f6888538..1581afcdf5 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.012.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.012.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.013.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.013.jpg Binary files differindex b2a682dc59..83494dab3a 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.013.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.013.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.014.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.014.jpg Binary files differindex 1309129736..89211a0823 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.014.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.014.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.015.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.015.jpg Binary files differindex 8b8f37983f..a0d91a2661 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.015.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.015.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.016.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.016.jpg Binary files differindex 814a24fd69..889aa8221a 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.016.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.016.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.017.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.017.jpg Binary files differindex 1c3d33c3ef..85216e2a66 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.017.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.017.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.018.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.018.jpg Binary files differindex dfe01102da..ec1273329c 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.018.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.018.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.019.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.019.jpg Binary files differindex 7cd7c651d1..2cfd4e290f 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.019.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.019.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.020.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.020.jpg Binary files differindex e5a230ec27..ec1273329c 100644 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.020.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.020.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.021.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.021.jpg Binary files differdeleted file mode 100644 index 02963bf204..0000000000 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.021.jpg +++ /dev/null diff --git a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.022.jpg b/WebContent/ITMILL/themes/coverflow/images/slideshow-example.022.jpg Binary files differdeleted file mode 100644 index a71be00a45..0000000000 --- a/WebContent/ITMILL/themes/coverflow/images/slideshow-example.022.jpg +++ /dev/null diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.000.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.000.jpg Binary files differnew file mode 100644 index 0000000000..8c2214a68c --- /dev/null +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.000.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.001.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.001.jpg Binary files differindex 67cd5c335e..2ee07c0efb 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.001.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.001.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.002.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.002.jpg Binary files differindex 52d3abd251..2d3178a44f 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.002.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.002.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.003.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.003.jpg Binary files differindex 543a881022..8b72ecdc69 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.003.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.003.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.004.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.004.jpg Binary files differindex 5a965d819c..8dc0466d6c 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.004.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.004.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.005.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.005.jpg Binary files differindex 2caa735aa6..8ddd11f0b0 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.005.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.005.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.006.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.006.jpg Binary files differindex c6cae8631c..f428f0e702 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.006.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.006.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.007.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.007.jpg Binary files differindex a6ca7afbe6..2e2420ea58 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.007.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.007.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.008.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.008.jpg Binary files differindex 7de2a40023..6a4fa7416d 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.008.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.008.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.009.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.009.jpg Binary files differindex ca80a4711a..3fa0a0d3ae 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.009.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.009.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.010.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.010.jpg Binary files differindex 5cb256b25a..041545fa1d 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.010.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.010.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.011.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.011.jpg Binary files differindex b4f145eb26..27c6f22809 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.011.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.011.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.012.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.012.jpg Binary files differindex 69f145868e..bbbb7e5304 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.012.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.012.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.013.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.013.jpg Binary files differindex 2295878063..7803f7e3d8 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.013.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.013.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.014.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.014.jpg Binary files differindex d686aba2f9..f3543a253e 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.014.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.014.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.015.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.015.jpg Binary files differindex 5551d930ae..aa972a7185 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.015.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.015.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.016.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.016.jpg Binary files differindex cfc411eb55..0f2bbd0bdf 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.016.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.016.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.017.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.017.jpg Binary files differindex 3b81ce7cce..cdd2e12d65 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.017.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.017.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.018.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.018.jpg Binary files differindex 76722e6079..318de01a99 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.018.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.018.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.019.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.019.jpg Binary files differindex 4db0dc5fcb..8ca3ffd94e 100644 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.019.jpg +++ b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.019.jpg diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.020.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.020.jpg Binary files differdeleted file mode 100644 index 0d98c75670..0000000000 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.020.jpg +++ /dev/null diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.021.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.021.jpg Binary files differdeleted file mode 100644 index 71afa939b0..0000000000 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.021.jpg +++ /dev/null diff --git a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.022.jpg b/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.022.jpg Binary files differdeleted file mode 100644 index 1e6657f6cb..0000000000 --- a/WebContent/ITMILL/themes/coverflow/images/thumbs/slideshow-example.022.jpg +++ /dev/null diff --git a/WebContent/ITMILL/themes/coverflow/styles.css b/WebContent/ITMILL/themes/coverflow/styles.css index ae3f903d52..ae133269e2 100644 --- a/WebContent/ITMILL/themes/coverflow/styles.css +++ b/WebContent/ITMILL/themes/coverflow/styles.css @@ -2,4 +2,7 @@ .i-app, body.i-generated-body { background-color: black; +} +.i-panel-content-light { + border: none; }
\ No newline at end of file diff --git a/src/com/itmill/toolkit/demo/coverflow/CoverflowApplication.java b/src/com/itmill/toolkit/demo/coverflow/CoverflowApplication.java index 3fa4cd3155..941c808b09 100644 --- a/src/com/itmill/toolkit/demo/coverflow/CoverflowApplication.java +++ b/src/com/itmill/toolkit/demo/coverflow/CoverflowApplication.java @@ -11,12 +11,12 @@ import java.io.InputStreamReader; import com.itmill.toolkit.data.Property; import com.itmill.toolkit.terminal.Resource; -import com.itmill.toolkit.terminal.Sizeable; import com.itmill.toolkit.terminal.ThemeResource; import com.itmill.toolkit.ui.Alignment; import com.itmill.toolkit.ui.Button; import com.itmill.toolkit.ui.Embedded; import com.itmill.toolkit.ui.Label; +import com.itmill.toolkit.ui.Panel; import com.itmill.toolkit.ui.VerticalLayout; import com.itmill.toolkit.ui.Window; import com.itmill.toolkit.ui.Button.ClickEvent; @@ -42,8 +42,14 @@ public class CoverflowApplication extends com.itmill.toolkit.Application { covers.setBackgroundColor(0, 0, 0, 100, 100, 100); // Initialize visible slide viewer + Panel slidePanel = new Panel(); + slidePanel.setStyleName(Panel.STYLE_LIGHT); + slidePanel.setSizeFull(); final Embedded visibleSlide = new Embedded(); - visibleSlide.setHeight(100, Sizeable.UNITS_PERCENTAGE); + visibleSlide.setHeight("480px"); + slidePanel.addComponent(visibleSlide); + ((VerticalLayout) slidePanel.getLayout()).setComponentAlignment( + visibleSlide, "center"); // Listen to coverflow changes as change slides when needed covers.addListener(new Property.ValueChangeListener() { @@ -53,7 +59,7 @@ public class CoverflowApplication extends com.itmill.toolkit.Application { }); // Show sources button - Button showSrc = new Button("src", new Button.ClickListener() { + Button showSrc = new Button("Show source", new Button.ClickListener() { public void buttonClick(ClickEvent event) { Window srcWindow = new Window("Source code"); srcWindow.setWidth("700px"); @@ -64,15 +70,14 @@ public class CoverflowApplication extends com.itmill.toolkit.Application { getMainWindow().addWindow(srcWindow); } }); - + showSrc.setStyleName(Button.STYLE_LINK); // Initialize main layout VerticalLayout layout = new VerticalLayout(); layout.addComponent(showSrc); layout.setComponentAlignment(showSrc, Alignment.TOP_RIGHT); - layout.addComponent(visibleSlide); - layout.setComponentAlignment(visibleSlide, Alignment.TOP_CENTER); + layout.addComponent(slidePanel); layout.addComponent(covers); - layout.setExpandRatio(visibleSlide, 1); + layout.setExpandRatio(slidePanel, 1); layout.setSizeFull(); return layout; @@ -96,7 +101,7 @@ public class CoverflowApplication extends com.itmill.toolkit.Application { } private void addSlidesToCoverflow() { - for (int i = 1; i <= 22; i++) { + for (int i = 0; i < 20; i++) { String head = "images/"; String tail = "slideshow-example.0" + ((i < 10) ? "0" : "") + i + ".jpg"; |