From 725006d4c47e63986ac042ade23a4d193298b1fe Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:08:29 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835131 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca-java-1.4/samples/photo-gallery/README | 20 ++ .../sca-java-1.4/samples/photo-gallery/build.xml | 79 +++++++ .../samples/photo-gallery/photo-gallery.png | Bin 0 -> 13625 bytes .../samples/photo-gallery/photo-gallery.svg | 226 +++++++++++++++++++++ .../sca-java-1.4/samples/photo-gallery/pom.xml | 112 ++++++++++ .../src/main/java/launch/LaunchGallery.java | 34 ++++ .../src/main/java/services/Album.java | 29 +++ .../src/main/java/services/AlbumImpl.java | 95 +++++++++ .../photo-gallery/src/main/resources/gallery.html | 135 ++++++++++++ .../src/main/resources/gallery/boston/dsc00368.jpg | Bin 0 -> 32808 bytes .../src/main/resources/gallery/boston/dsc00369.jpg | Bin 0 -> 35980 bytes .../src/main/resources/gallery/boston/dsc00370.jpg | Bin 0 -> 44614 bytes .../src/main/resources/gallery/boston/dsc00371.jpg | Bin 0 -> 40745 bytes .../src/main/resources/gallery/boston/dsc00373.jpg | Bin 0 -> 76470 bytes .../src/main/resources/gallery/boston/dsc00375.jpg | Bin 0 -> 34834 bytes .../src/main/resources/gallery/boston/dsc00376.jpg | Bin 0 -> 38797 bytes .../src/main/resources/gallery/boston/dsc00377.jpg | Bin 0 -> 35776 bytes .../src/main/resources/gallery/boston/dsc00378.jpg | Bin 0 -> 35248 bytes .../src/main/resources/gallery/boston/dsc00379.jpg | Bin 0 -> 55042 bytes .../src/main/resources/gallery/boston/dsc00380.jpg | Bin 0 -> 55236 bytes .../photo-gallery/src/main/resources/index.gif | Bin 0 -> 564 bytes .../photo-gallery/src/main/resources/index_on.gif | Bin 0 -> 577 bytes .../photo-gallery/src/main/resources/next.gif | Bin 0 -> 535 bytes .../src/main/resources/next_disabled.gif | Bin 0 -> 536 bytes .../photo-gallery/src/main/resources/next_on.gif | Bin 0 -> 542 bytes .../src/main/resources/photo-gallery.composite | 47 +++++ .../photo-gallery/src/main/resources/prev.gif | Bin 0 -> 534 bytes .../src/main/resources/prev_disabled.gif | Bin 0 -> 536 bytes .../photo-gallery/src/main/resources/prev_on.gif | Bin 0 -> 541 bytes .../src/main/resources/show_slide.gif | Bin 0 -> 533 bytes .../photo-gallery/src/main/resources/space.gif | Bin 0 -> 116 bytes .../photo-gallery/src/main/resources/styles.css | 121 +++++++++++ 32 files changed, 898 insertions(+) create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/README create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/build.xml create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/photo-gallery.png create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/photo-gallery.svg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/pom.xml create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/launch/LaunchGallery.java create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/services/Album.java create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/services/AlbumImpl.java create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery.html create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00368.jpg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00369.jpg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00370.jpg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00371.jpg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00373.jpg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00375.jpg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00376.jpg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00377.jpg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00378.jpg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00379.jpg create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00380.jpg create mode 100755 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/index.gif create mode 100755 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/index_on.gif create mode 100755 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next.gif create mode 100755 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next_disabled.gif create mode 100755 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next_on.gif create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/photo-gallery.composite create mode 100755 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev.gif create mode 100755 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev_disabled.gif create mode 100755 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev_on.gif create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/show_slide.gif create mode 100644 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/space.gif create mode 100755 sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/styles.css (limited to 'sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery') diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/README b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/README new file mode 100644 index 0000000000..d32f1d3bd1 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/README @@ -0,0 +1,20 @@ +Photo-Gallery Sample +====================================== + +This is a sample picture gallery application using Tuscany SCA. + +Building And Running The Sample Using Ant +----------------------------------------- +With the binary distribution the sample can be built using Ant as follows: + +cd photo-gallery +ant compile + +and then, to run: + +ant run + +Once the store application is running use your browser to visit the following +URL: + +http://localhost:8080/gallery/ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/build.xml b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/build.xml new file mode 100644 index 0000000000..f8606078ab --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/build.xml @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/photo-gallery.png b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/photo-gallery.png new file mode 100644 index 0000000000..0e0ae8b9ec Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/photo-gallery.png differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/photo-gallery.svg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/photo-gallery.svg new file mode 100644 index 0000000000..9136fef9ad --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/photo-gallery.svg @@ -0,0 +1,226 @@ + + + + + + + + + + image/svg+xml + + + + + + + + photo-gallery + gallery + + + + + + + HTTP JSONRPC + + + Album + + + diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/pom.xml b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/pom.xml new file mode 100644 index 0000000000..7baaae1abf --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/pom.xml @@ -0,0 +1,112 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.4.1-SNAPSHOT + ../pom.xml + + sample-photo-gallery + Apache Tuscany SCA Sample Getting Started Online Store + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.4.1-SNAPSHOT + + + + org.apache.tuscany.sca + tuscany-data-api + 1.4.1-SNAPSHOT + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.4.1-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-widget-runtime + 1.4.1-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-atom-abdera + 1.4.1-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-jsonrpc-runtime + 1.4.1-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-http-runtime + 1.4.1-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-host-jetty + 1.4.1-SNAPSHOT + runtime + + + + org.apache.derby + derby + 10.3.1.4 + + + + junit + junit + 4.5 + test + + + + + + ${artifactId} + + + diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/launch/LaunchGallery.java b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/launch/LaunchGallery.java new file mode 100644 index 0000000000..1007cd49b0 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/launch/LaunchGallery.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package launch; + +import org.apache.tuscany.sca.host.embedded.SCADomain; + +public class LaunchGallery { + public static void main(String[] args) throws Exception { + System.out.println("Starting ..."); + SCADomain scaDomain = SCADomain.newInstance("photo-gallery.composite"); + System.out.println("photo.gallery.composite ready for big business !!!"); + System.in.read(); + System.out.println("Stopping ..."); + scaDomain.close(); + System.out.println(); + } +} diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/services/Album.java b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/services/Album.java new file mode 100644 index 0000000000..5257d0e703 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/services/Album.java @@ -0,0 +1,29 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package services; + +import org.osoa.sca.annotations.Remotable; + +@Remotable +public interface Album { + + public String[] getPictures(); + +} diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/services/AlbumImpl.java b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/services/AlbumImpl.java new file mode 100644 index 0000000000..dd2b086e29 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/java/services/AlbumImpl.java @@ -0,0 +1,95 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package services; + +import java.io.File; +import java.io.FilenameFilter; +import java.net.URL; +import java.util.ArrayList; +import java.util.List; + +import org.osoa.sca.annotations.Init; +import org.osoa.sca.annotations.Property; + +public class AlbumImpl implements Album { + private String gallery; + private String album; + private String location; + private List pictures = new ArrayList(); + + @Property + public void setGallery(String gallery) { + this.gallery = gallery; + this.location = null; + } + @Property + public void setAlbum(String album) { + this.album = album; + this.location = null; + } + + protected String getLocation() { + if (location == null) { + location = gallery + "/" + album + "/"; + } + return location; + + } + + @Init + public void init() { + try { + URL albumURL = this.getClass().getClassLoader().getResource(getLocation()); + if(albumURL != null) { + File album = new File(albumURL.toURI()); + if (album.isDirectory() && album.exists()) { + String[] listPictures = album.list(new ImageFilter(".jpg")); + for(String image : listPictures) { + image = getLocation() + image; + pictures.add(image); + } + } + } + } catch (Exception e) { + // FIXME: ignore for now + e.printStackTrace(); + } + } + + public String[] getPictures() { + String[] pictureArray = new String[pictures.size()]; + pictures.toArray(pictureArray); + return pictureArray; + } + + /** + * Inner fileFilter class + */ + private class ImageFilter implements FilenameFilter { + String afn; + ImageFilter(String afn) { this.afn = afn; } + public boolean accept(File dir, String name) { + // Strip path information: + String f = new File(name).getName(); + return f.indexOf(afn) != -1; + } + } ///:~ + +} diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery.html b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery.html new file mode 100644 index 0000000000..f6566e88ec --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery.html @@ -0,0 +1,135 @@ + + + +Photo Gallery + + + + + + + + + +
+

Apache Tuscany Photo Gallery

+
+
+ + +
+ + + + + +
+ + + + + + + + +
+
+ + + + + +
+ +
+ +
+ + + diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00368.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00368.jpg new file mode 100644 index 0000000000..9437b321e2 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00368.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00369.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00369.jpg new file mode 100644 index 0000000000..07f37ec505 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00369.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00370.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00370.jpg new file mode 100644 index 0000000000..2193784271 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00370.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00371.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00371.jpg new file mode 100644 index 0000000000..1532ee2c1b Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00371.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00373.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00373.jpg new file mode 100644 index 0000000000..17ffd73aec Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00373.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00375.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00375.jpg new file mode 100644 index 0000000000..19e9ec37df Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00375.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00376.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00376.jpg new file mode 100644 index 0000000000..022416dbce Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00376.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00377.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00377.jpg new file mode 100644 index 0000000000..c78a974714 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00377.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00378.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00378.jpg new file mode 100644 index 0000000000..a98070925a Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00378.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00379.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00379.jpg new file mode 100644 index 0000000000..dc83889116 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00379.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00380.jpg b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00380.jpg new file mode 100644 index 0000000000..0e33548135 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/gallery/boston/dsc00380.jpg differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/index.gif b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/index.gif new file mode 100755 index 0000000000..7599ac7686 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/index.gif differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/index_on.gif b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/index_on.gif new file mode 100755 index 0000000000..153e9879d6 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/index_on.gif differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next.gif b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next.gif new file mode 100755 index 0000000000..002eaf6951 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next.gif differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next_disabled.gif b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next_disabled.gif new file mode 100755 index 0000000000..38b1298453 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next_disabled.gif differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next_on.gif b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next_on.gif new file mode 100755 index 0000000000..4e5bb3e7ef Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/next_on.gif differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/photo-gallery.composite b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/photo-gallery.composite new file mode 100644 index 0000000000..0bb3c4b4db --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/photo-gallery.composite @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + gallery + boston + + + + + + + + + diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev.gif b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev.gif new file mode 100755 index 0000000000..4eea10f1dc Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev.gif differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev_disabled.gif b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev_disabled.gif new file mode 100755 index 0000000000..7e35f07076 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev_disabled.gif differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev_on.gif b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev_on.gif new file mode 100755 index 0000000000..3ef9a776bb Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/prev_on.gif differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/show_slide.gif b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/show_slide.gif new file mode 100644 index 0000000000..a5b6a15c2b Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/show_slide.gif differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/space.gif b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/space.gif new file mode 100644 index 0000000000..170fe82b65 Binary files /dev/null and b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/space.gif differ diff --git a/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/styles.css b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/styles.css new file mode 100755 index 0000000000..d23d949858 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.4/samples/photo-gallery/src/main/resources/styles.css @@ -0,0 +1,121 @@ +body { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 12px; + color: #888888; + background-color: #000000; + margin-top: 0px; +} + +html { + scrollbar-face-color:#444444; + scrollbar-highlight-color:#000000; + scrollbar-3dlight-color:#000000; + scrollbar-darkshadow-color:#000000; + scrollbar-shadow-color:#000000; + scrollbar-arrow-color:#888888; + scrollbar-track-color:#000000; +} + +a:link { + text-decoration: none; + color: #AAAAAA; +} + +a:visited { + text-decoration: none; + color: #AAAAAA; +} + +a:hover { + text-decoration: none; + color: #FFFFFF; +} + +.current { + font-weight: bold; + color: #AAAAAA; + background-color: #666666; +} + +.cthumb { + background-color: #666666; + border: 0px; border-width: 0px; +} + +.thumb { + background-color: #333333; + border: 0px; border-width: 0px; +} + +.image { margin: 0px; border-width: 1px; border: 1px solid;} +a:link .image { border-color: #aaaaaa; color: #aaaaaa;} +a:visited .image { border-color: #666666; color: #666666;} +a:hover .image { border-color: #ffffff; color: #ffffff;} + +.slideImage { border-width: 0px; border: 0px solid; border-color: #ffffff;} +a:link .slideImage { border-color: #ffffff;} +a:visited .slideImage { border-color: #ffffff;} + +.title { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 14px; + font-weight: bold; + color: #000000; +} + +.title a:link { + text-decoration: none; + color: #000000; +} + +.title a:visited { + text-decoration: none; + color: #000000; +} + +.title a:hover { + text-decoration: none; + color: #ffffff; +} + +.infotable { + border: 1px solid #444444; + border-collapse: collapse; +} + +.infotable td { + border: 1px solid #444444; +} + +.infotable table td { + border: 0px; +} + +.dirname { + font-size: 12px; + font-weight: bold; + color: #AAAAAA; +} + +.comment { + color: #CCCCCC; + font-weight: bold; + font-size: 12px; +} + +.smalltxt { + color: #888888; + font-size: 11px; +} + +.xsmalltxt { + color: #888888; + font-size: 9px; +} + +.newlabel { + font-size: 8px; + font-weight: bold; + color: #EEEEEE; + background-color: #558800; +} \ No newline at end of file -- cgit v1.2.3