initial commit
commit
92e808d173
@ -0,0 +1,3 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile name="Maven default annotation processors profile" enabled="true">
|
||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
<outputRelativeToContentRoot value="true" />
|
||||
<module name="multimedia" />
|
||||
</profile>
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Central Repository" />
|
||||
<option name="url" value="https://repo.maven.apache.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="ZK CE" />
|
||||
<option name="name" value="ZK CE Repository" />
|
||||
<option name="url" value="https://mavensync.zkoss.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="ZK EVAL" />
|
||||
<option name="name" value="ZK Evaluation Repository" />
|
||||
<option name="url" value="https://mavensync.zkoss.org/eval" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="MavenProjectsManager">
|
||||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>multimedia</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.maven.ide.eclipse.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@ -0,0 +1,133 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>at.windesign.application</groupId>
|
||||
<artifactId>multimedia</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<properties>
|
||||
<zk.version>9.0.0-Eval</zk.version>
|
||||
<!-- <zk.version>9.5.0.1</zk.version>-->
|
||||
<commons-io>2.6</commons-io>
|
||||
<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
|
||||
<packname>-${project.version}-FL-${maven.build.timestamp}</packname>
|
||||
</properties>
|
||||
<packaging>war</packaging>
|
||||
<name>The multimedia Project</name>
|
||||
<description>The multimedia Project</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU LESSER GENERAL PUBLIC LICENSE, Version 3</name>
|
||||
<url>https://www.gnu.org/licenses/lgpl.html</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>ZK CE</id>
|
||||
<name>ZK CE Repository</name>
|
||||
<url>https://mavensync.zkoss.org/maven2</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>ZK EVAL</id>
|
||||
<name>ZK Evaluation Repository</name>
|
||||
<url>https://mavensync.zkoss.org/eval</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>zkmaven</id>
|
||||
<name>ZK Maven Plugin Repository</name>
|
||||
<url>https://mavensync.zkoss.org/maven2/</url>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.zkoss.zk</groupId>
|
||||
<artifactId>zkbind</artifactId>
|
||||
<version>${zk.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.zkoss.zk</groupId>
|
||||
<artifactId>zul</artifactId>
|
||||
<version>${zk.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.zkoss.zk</groupId>
|
||||
<artifactId>zkplus</artifactId>
|
||||
<version>${zk.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.zkoss.zk</groupId>
|
||||
<artifactId>zhtml</artifactId>
|
||||
<version>${zk.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>${commons-io}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.17</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<!-- Run with Jetty -->
|
||||
<plugin>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-maven-plugin</artifactId>
|
||||
<version>9.4.28.v20200408</version>
|
||||
<configuration>
|
||||
<webApp>
|
||||
<contextPath>/${project.artifactId}</contextPath>
|
||||
<allowDuplicateFragmentNames>true</allowDuplicateFragmentNames>
|
||||
</webApp>
|
||||
<scanIntervalSeconds>5</scanIntervalSeconds>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Compile java -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<configuration>
|
||||
<source>8</source>
|
||||
<target>8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- Build war -->
|
||||
<plugin>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<version>2.1.1</version>
|
||||
</plugin>
|
||||
<!-- Pack zips -->
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>webapp</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<finalName>multimedia${packname}</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/webapp.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@ -0,0 +1,25 @@
|
||||
<assembly
|
||||
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
|
||||
<id>webapp</id>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/src/main/java</directory>
|
||||
<outputDirectory>/${project.artifactId}/src</outputDirectory>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/src/main/webapp</directory>
|
||||
<outputDirectory>/${project.artifactId}/WebContent</outputDirectory>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<files>
|
||||
<file>
|
||||
<source>${project.build.directory}/${project.artifactId}.war</source>
|
||||
<outputDirectory>/</outputDirectory>
|
||||
</file>
|
||||
</files>
|
||||
</assembly>
|
||||
@ -0,0 +1,159 @@
|
||||
package at.windesign.application;
|
||||
|
||||
import java.util.SortedMap;
|
||||
|
||||
class Serie
|
||||
{
|
||||
private int m_seriesID;
|
||||
private String m_seriesName;
|
||||
private int m_seriesFirstAired;
|
||||
private String m_seriesResolution;
|
||||
private boolean m_seriesCliffhanger;
|
||||
private String m_seriesStatus;
|
||||
private String m_seriesDownload;
|
||||
private String m_seriesPoster;
|
||||
private String m_seriesBackdrop;
|
||||
private SortedMap<Integer, Integer> m_episodeState;
|
||||
private int m_minSeason;
|
||||
private int m_maxSeason;
|
||||
|
||||
public Serie()
|
||||
{
|
||||
}
|
||||
|
||||
public Serie(int seriesID, String seriesName, int seriesFirstAired, String seriesResolution, boolean seriesCliffhanger, String seriesStatus, String seriesDownload, String seriesPoster, String seriesBackdrop, SortedMap<Integer, Integer> episodeState, int minSeason, int maxSeason)
|
||||
{
|
||||
m_seriesID = seriesID;
|
||||
m_seriesName = seriesName;
|
||||
m_seriesFirstAired = seriesFirstAired;
|
||||
m_seriesResolution = seriesResolution;
|
||||
m_seriesCliffhanger = seriesCliffhanger;
|
||||
m_seriesStatus = seriesStatus;
|
||||
m_seriesDownload = seriesDownload;
|
||||
m_seriesPoster = seriesPoster;
|
||||
m_seriesBackdrop = seriesBackdrop;
|
||||
m_episodeState = episodeState;
|
||||
m_minSeason = minSeason;
|
||||
m_maxSeason = maxSeason;
|
||||
}
|
||||
|
||||
public int getSeriesID()
|
||||
{
|
||||
return m_seriesID;
|
||||
}
|
||||
|
||||
public void setSeriesID(int seriesID)
|
||||
{
|
||||
m_seriesID = seriesID;
|
||||
}
|
||||
|
||||
public String getSeriesName()
|
||||
{
|
||||
return m_seriesName;
|
||||
}
|
||||
|
||||
public void setSeriesName(String seriesName)
|
||||
{
|
||||
m_seriesName = seriesName;
|
||||
}
|
||||
|
||||
public int getSeriesFirstAired()
|
||||
{
|
||||
return m_seriesFirstAired;
|
||||
}
|
||||
|
||||
public void setSeriesFirstAired(int seriesFirstAired)
|
||||
{
|
||||
m_seriesFirstAired = seriesFirstAired;
|
||||
}
|
||||
|
||||
public String getSeriesResolution()
|
||||
{
|
||||
return m_seriesResolution;
|
||||
}
|
||||
|
||||
public void setSeriesResolution(String seriesResolution)
|
||||
{
|
||||
m_seriesResolution = seriesResolution;
|
||||
}
|
||||
|
||||
public boolean getSeriesCliffhanger()
|
||||
{
|
||||
return m_seriesCliffhanger;
|
||||
}
|
||||
|
||||
public void setSeriesCliffhanger(boolean seriesCliffhanger)
|
||||
{
|
||||
m_seriesCliffhanger = seriesCliffhanger;
|
||||
}
|
||||
|
||||
public String getSeriesStatus()
|
||||
{
|
||||
return m_seriesStatus;
|
||||
}
|
||||
|
||||
public void setSeriesStatus(String seriesStatus)
|
||||
{
|
||||
m_seriesStatus = seriesStatus;
|
||||
}
|
||||
|
||||
public String getSeriesDownload()
|
||||
{
|
||||
return m_seriesDownload;
|
||||
}
|
||||
|
||||
public void setSeriesDownload(String seriesDownload)
|
||||
{
|
||||
m_seriesDownload = seriesDownload;
|
||||
}
|
||||
|
||||
public String getSeriesPoster()
|
||||
{
|
||||
return m_seriesPoster;
|
||||
}
|
||||
|
||||
public void setSeriesPoster(String seriesPoster)
|
||||
{
|
||||
m_seriesPoster = seriesPoster;
|
||||
}
|
||||
|
||||
public String getSeriesBackdrop()
|
||||
{
|
||||
return m_seriesBackdrop;
|
||||
}
|
||||
|
||||
public void setSeriesBackdrop(String seriesBackdrop)
|
||||
{
|
||||
m_seriesBackdrop = seriesBackdrop;
|
||||
}
|
||||
|
||||
public SortedMap<Integer, Integer> getEpisodeState()
|
||||
{
|
||||
return m_episodeState;
|
||||
}
|
||||
|
||||
public void setEpisodeState(SortedMap<Integer, Integer> episodeState)
|
||||
{
|
||||
m_episodeState = episodeState;
|
||||
}
|
||||
|
||||
public int getMinSeason()
|
||||
{
|
||||
return m_minSeason;
|
||||
}
|
||||
|
||||
public void setMinSeason(int minSeason)
|
||||
{
|
||||
m_minSeason = minSeason;
|
||||
}
|
||||
|
||||
public int getMaxSeason()
|
||||
{
|
||||
return m_maxSeason;
|
||||
}
|
||||
|
||||
public void setMaxSeason(int maxSeason)
|
||||
{
|
||||
m_maxSeason = maxSeason;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package at.windesign.application;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
|
||||
public enum SeriesDataSource
|
||||
{
|
||||
|
||||
INSTANCE;
|
||||
|
||||
private static final String url = "jdbc:mysql://localhost:3306/multimedia";
|
||||
private static final String user = "multimedia";
|
||||
private static final String pwd = "WeissIchNicht8";
|
||||
|
||||
private Connection conn = null;
|
||||
|
||||
static
|
||||
{
|
||||
try
|
||||
{
|
||||
Class.forName("com.mysql.cj.jdbc.Driver");
|
||||
} catch(ClassNotFoundException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private SeriesDataSource()
|
||||
{
|
||||
// drop the table if it exists
|
||||
try
|
||||
{
|
||||
Statement stmt = this.getStatement();
|
||||
stmt.close();
|
||||
} catch(SQLException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
} finally
|
||||
{
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
|
||||
public Statement getStatement() throws SQLException
|
||||
{
|
||||
Statement stmt = null;
|
||||
// get connection
|
||||
conn = DriverManager.getConnection(url, user, pwd);
|
||||
stmt = conn.createStatement();
|
||||
return stmt;
|
||||
}
|
||||
|
||||
public void close()
|
||||
{
|
||||
try
|
||||
{
|
||||
if(conn != null)
|
||||
{
|
||||
conn.close();
|
||||
conn = null;
|
||||
}
|
||||
} catch(SQLException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,150 @@
|
||||
package at.windesign.application;
|
||||
|
||||
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.util.GenericForwardComposer;
|
||||
import org.zkoss.zul.*;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Statement;
|
||||
import java.util.SortedMap;
|
||||
import java.util.TreeMap;
|
||||
|
||||
public class seriesListController extends GenericForwardComposer
|
||||
{
|
||||
protected Listbox seriesList; // autowired
|
||||
private ListModelList seriesListModel; // the model of the listbox
|
||||
private seriesRenderer renderer;
|
||||
|
||||
private final SeriesDataSource ds = SeriesDataSource.INSTANCE;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception
|
||||
{
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
int minSeason = 0;
|
||||
int maxSeason = 0;
|
||||
|
||||
try
|
||||
{
|
||||
Statement stmt = ds.getStatement();
|
||||
ResultSet rs = stmt.executeQuery(
|
||||
"SELECT MIN(seasonNumber) minSeason," +
|
||||
" MAX(seasonNumber) maxSeason" +
|
||||
" FROM season;"
|
||||
);
|
||||
|
||||
while(rs.next())
|
||||
{
|
||||
minSeason = rs.getInt("minSeason");
|
||||
maxSeason = rs.getInt("maxSeason");
|
||||
}
|
||||
} catch(SQLException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
seriesListModel = new ListModelList();
|
||||
seriesList.setModel(seriesListModel);
|
||||
|
||||
Listhead head = seriesList.getListhead();
|
||||
Listheader seriesName = new Listheader("Series Name");
|
||||
Listheader firstAired = new Listheader("First Aired");
|
||||
Listheader resolution = new Listheader("Resolution");
|
||||
|
||||
seriesName.setHflex("min");
|
||||
firstAired.setHflex("min");
|
||||
resolution.setHflex("min");
|
||||
|
||||
head.appendChild(seriesName);
|
||||
head.appendChild(firstAired);
|
||||
head.appendChild(resolution);
|
||||
|
||||
if(minSeason < 1)
|
||||
minSeason = 1;
|
||||
|
||||
for(int i = minSeason;i <= maxSeason;i++)
|
||||
{
|
||||
Listheader seasonHeader = new Listheader("Season " + i);
|
||||
seasonHeader.setHflex("min");
|
||||
head.appendChild(seasonHeader);
|
||||
}
|
||||
|
||||
renderer = new seriesRenderer();
|
||||
seriesList.setItemRenderer(renderer);
|
||||
|
||||
try
|
||||
{
|
||||
Statement stmt = ds.getStatement();
|
||||
ResultSet rs = stmt.executeQuery(
|
||||
"SELECT serie.seriesID seriesID," +
|
||||
" serie.seriesName seriesName," +
|
||||
" YEAR(serie.firstAired) seriesFirstAired," +
|
||||
" serie.resolution seriesResolution," +
|
||||
" serie.cliffhanger seriesCliffhanger," +
|
||||
" serie.status seriesStatus," +
|
||||
" serie.download seriesDownload," +
|
||||
" serie.posterPath seriesPoster," +
|
||||
" serie.backdropPath seriesBackdrop," +
|
||||
" season.seasonNumber seasonNumber," +
|
||||
" episode.episodeNumber episodeNumber," +
|
||||
" episode.state episodeState," +
|
||||
" ( SELECT MIN(s.seasonNumber) FROM season s WHERE s.seriesID = serie.seriesID ) minSeason," +
|
||||
" ( SELECT MAX(s.seasonNumber) FROM season s WHERE s.seriesID = serie.seriesID ) maxSeason" +
|
||||
" FROM serie" +
|
||||
" LEFT JOIN season ON serie.seriesID = season.seriesID" +
|
||||
" LEFT JOIN episode ON serie.seriesID = episode.seriesID AND season.seasonNumber = episode.seasonNumber" +
|
||||
" WHERE season.seasonNumber != 0 OR" +
|
||||
" serie.seriesID >= 1000000" +
|
||||
" ORDER BY serie.seriesName," +
|
||||
" serie.firstAired," +
|
||||
" season.seasonNumber," +
|
||||
" episode.episodeNumber;"
|
||||
);
|
||||
|
||||
// fetch all events from database
|
||||
Serie serie = new Serie();
|
||||
int oldID = -1;
|
||||
SortedMap<Integer, Integer> episodeState = new TreeMap<>();
|
||||
|
||||
while(rs.next())
|
||||
{
|
||||
if(rs.getInt("seriesID") != oldID)
|
||||
{
|
||||
if(oldID != -1)
|
||||
{
|
||||
serie.setEpisodeState(episodeState);
|
||||
seriesListModel.add(serie);
|
||||
episodeState = new TreeMap<>();
|
||||
}
|
||||
|
||||
oldID = rs.getInt("seriesID");
|
||||
serie = new Serie();
|
||||
|
||||
serie.setSeriesID(rs.getInt("seriesID"));
|
||||
serie.setSeriesName(rs.getString("seriesName"));
|
||||
serie.setSeriesFirstAired(rs.getInt("seriesFirstAired"));
|
||||
serie.setSeriesResolution(rs.getString("seriesResolution"));
|
||||
serie.setSeriesCliffhanger(rs.getBoolean("seriesCliffhanger"));
|
||||
serie.setSeriesStatus(rs.getString("seriesStatus"));
|
||||
serie.setSeriesDownload(rs.getString("seriesDownload"));
|
||||
serie.setSeriesPoster(rs.getString("seriesPoster"));
|
||||
serie.setSeriesBackdrop(rs.getString("seriesBackdrop"));
|
||||
serie.setMinSeason(rs.getInt("minSeason"));
|
||||
serie.setMaxSeason(rs.getInt("maxSeason"));
|
||||
}
|
||||
episodeState.put((rs.getInt("seasonNumber") << 8) + rs.getInt("episodeNumber"), rs.getInt("episodeState"));
|
||||
}
|
||||
} catch(
|
||||
SQLException e)
|
||||
|
||||
{
|
||||
e.printStackTrace();
|
||||
} finally
|
||||
{
|
||||
ds.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,98 @@
|
||||
package at.windesign.application;
|
||||
|
||||
import org.zkoss.image.Images;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.util.SortedMap;
|
||||
import java.util.TreeMap;
|
||||
|
||||
public class seriesRenderer implements ListitemRenderer
|
||||
{
|
||||
private Integer stateWidth = 4;
|
||||
private Integer stateHeight = 20;
|
||||
|
||||
@Override
|
||||
public void render(Listitem listitem, Object o, int i) throws Exception
|
||||
{
|
||||
final Serie data = (Serie) o;
|
||||
|
||||
new Listcell(data.getSeriesName()).setParent(listitem);
|
||||
new Listcell(String.valueOf(data.getSeriesFirstAired())).setParent(listitem);
|
||||
new Listcell(data.getSeriesResolution()).setParent(listitem);
|
||||
|
||||
for(int s = 1; s < data.getMaxSeason(); s++)
|
||||
{
|
||||
Listcell imageCell = new Listcell();
|
||||
imageCell.setImageContent(Images.encode("bla.png", getStateImage(s, data.getEpisodeState())));
|
||||
imageCell.setParent(listitem);
|
||||
}
|
||||
}
|
||||
|
||||
private BufferedImage getStateImage(Integer curSeason, SortedMap<Integer, Integer> state)
|
||||
{
|
||||
int season = -1;
|
||||
int episode = -1;
|
||||
SortedMap<Integer, Integer> seasonState = new TreeMap<>();
|
||||
|
||||
for(int key : state.keySet())
|
||||
{
|
||||
season = key >> 8;
|
||||
episode = key & 0xFF;
|
||||
|
||||
if(season == curSeason)
|
||||
seasonState.put(episode, state.get(key));
|
||||
else if(season > curSeason)
|
||||
break;
|
||||
}
|
||||
|
||||
if(seasonState.size() == 0)
|
||||
{
|
||||
BufferedImage image = new BufferedImage(1, 1, BufferedImage.TYPE_INT_RGB);
|
||||
Graphics2D g2d = image.createGraphics();
|
||||
|
||||
g2d.setColor(Color.WHITE);
|
||||
g2d.fillRect(0, 0, 1, 1);
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
BufferedImage image = new BufferedImage(stateWidth * seasonState.lastKey(), stateHeight, BufferedImage.TYPE_INT_RGB);
|
||||
Graphics2D g2d = image.createGraphics();
|
||||
Color colGrey = new Color(192, 192, 192);
|
||||
Color colBlue = new Color(0, 0, 192);
|
||||
Color colGreen = new Color(0, 192, 0);
|
||||
Color colBlack = new Color(0, 0, 0);
|
||||
Color col = colBlack;
|
||||
|
||||
g2d.setColor(colBlack);
|
||||
g2d.fillRect(0, 0, stateWidth * seasonState.lastKey(), stateHeight);
|
||||
|
||||
for(Integer key : seasonState.keySet())
|
||||
{
|
||||
switch(seasonState.get(key))
|
||||
{
|
||||
case 0:
|
||||
col = colBlack;
|
||||
break;
|
||||
case 1:
|
||||
col = colGrey;
|
||||
break;
|
||||
case 2:
|
||||
col = colBlue;
|
||||
break;
|
||||
case 3:
|
||||
col = colGreen;
|
||||
break;
|
||||
}
|
||||
|
||||
g2d.setColor(col);
|
||||
g2d.fillRect((key - 1) * stateWidth, 0, stateWidth - 1, stateHeight);
|
||||
}
|
||||
|
||||
return image;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
Manifest-Version: 1.0
|
||||
Specification-Title: ZK Application
|
||||
Specification-Version: 1.0
|
||||
Specification-Vendor:
|
||||
Implementation-Title:
|
||||
Implementation-URL: http://your-website/
|
||||
Implementation-Version: 1.0
|
||||
Implementation-Vendor:
|
||||
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
||||
version="3.0">
|
||||
|
||||
<description><![CDATA[My ZK Application]]></description>
|
||||
<display-name>multimedia</display-name>
|
||||
|
||||
<!-- [Optional]
|
||||
Uncomment if you want to use the ZK filter to post process the HTML output
|
||||
generated by other technology, such as JSP and velocity.
|
||||
<filter>
|
||||
<filter-name>zkFilter</filter-name>
|
||||
<filter-class>org.zkoss.zk.ui.http.DHtmlLayoutFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>extension</param-name>
|
||||
<param-value>html</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>compress</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>zkFilter</filter-name>
|
||||
<url-pattern>your URI pattern</url-pattern>
|
||||
</filter-mapping>
|
||||
-->
|
||||
</web-app>
|
||||
@ -0,0 +1,199 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
||||
|
||||
<description><![CDATA[My ZK Application]]></description>
|
||||
<display-name>multimedia</display-name>
|
||||
|
||||
<!-- //// -->
|
||||
<!-- ZK -->
|
||||
<listener>
|
||||
<description>ZK listener for session cleanup</description>
|
||||
<listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class>
|
||||
</listener>
|
||||
<servlet>
|
||||
<description>ZK loader for ZUML pages</description>
|
||||
<servlet-name>zkLoader</servlet-name>
|
||||
<servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
|
||||
|
||||
<!-- Must. Specifies URI of the update engine (DHtmlUpdateServlet).
|
||||
It must be the same as <url-pattern> for the update engine.
|
||||
-->
|
||||
<init-param>
|
||||
<param-name>update-uri</param-name>
|
||||
<param-value>/zkau</param-value>
|
||||
</init-param>
|
||||
<!-- Optional. Specifies whether to compress the output
|
||||
of the ZK loader. It speeds up the transmission over slow Internet.
|
||||
However, if you configure a filter to post-processing the
|
||||
output, you might have to disable it.
|
||||
|
||||
Default: true
|
||||
<init-param>
|
||||
<param-name>compress</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<!-- [Optional] Specifies the default log level: OFF, ERROR, WARNING,
|
||||
INFO, DEBUG and FINER. If not specified, the system default is used.
|
||||
<init-param>
|
||||
<param-name>log-level</param-name>
|
||||
<param-value>OFF</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<load-on-startup>1</load-on-startup><!-- Must -->
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>zkLoader</servlet-name>
|
||||
<url-pattern>*.zul</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>zkLoader</servlet-name>
|
||||
<url-pattern>*.zhtml</url-pattern>
|
||||
</servlet-mapping>
|
||||
<!-- [Optional] Uncomment it if you want to use richlets.
|
||||
<servlet-mapping>
|
||||
<servlet-name>zkLoader</servlet-name>
|
||||
<url-pattern>/zk/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
-->
|
||||
<servlet>
|
||||
<description>The asynchronous update engine for ZK</description>
|
||||
<servlet-name>auEngine</servlet-name>
|
||||
<servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
|
||||
|
||||
<!-- [Optional] Specifies whether to compress the output
|
||||
of the ZK loader. It speeds up the transmission over slow Internet.
|
||||
However, if your server will do the compression, you might have to disable it.
|
||||
|
||||
Default: true
|
||||
<init-param>
|
||||
<param-name>compress</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<!-- [Optional] Specifies the AU extension for particular prefix.
|
||||
<init-param>
|
||||
<param-name>extension0</param-name>
|
||||
<param-value>/upload=com.my.MyUploader</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>auEngine</servlet-name>
|
||||
<url-pattern>/zkau/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- [Optional]
|
||||
Uncomment if you want to use the ZK filter to post process the HTML output
|
||||
generated by other technology, such as JSP and velocity.
|
||||
<filter>
|
||||
<filter-name>zkFilter</filter-name>
|
||||
<filter-class>org.zkoss.zk.ui.http.DHtmlLayoutFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>extension</param-name>
|
||||
<param-value>html</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>compress</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>zkFilter</filter-name>
|
||||
<url-pattern>your URI pattern</url-pattern>
|
||||
</filter-mapping>
|
||||
-->
|
||||
<!-- //// -->
|
||||
|
||||
<!-- ///////////// -->
|
||||
<!-- DSP (optional)
|
||||
Uncomment it if you want to use DSP
|
||||
However, it is turned on since zksandbox uses DSP to generate CSS.
|
||||
<servlet>
|
||||
<servlet-name>dspLoader</servlet-name>
|
||||
<servlet-class>org.zkoss.web.servlet.dsp.InterpreterServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>class-resource</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>dspLoader</servlet-name>
|
||||
<url-pattern>*.dsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
-->
|
||||
|
||||
<!-- /////////// -->
|
||||
<!-- [Optional] Session timeout -->
|
||||
<session-config>
|
||||
<session-timeout>60</session-timeout>
|
||||
</session-config>
|
||||
|
||||
<!-- [Optional] MIME mapping -->
|
||||
<mime-mapping>
|
||||
<extension>doc</extension>
|
||||
<mime-type>application/vnd.ms-word</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>gif</extension>
|
||||
<mime-type>image/gif</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>htm</extension>
|
||||
<mime-type>text/html</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>html</extension>
|
||||
<mime-type>text/html</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>jpeg</extension>
|
||||
<mime-type>image/jpeg</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>jpg</extension>
|
||||
<mime-type>image/jpeg</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>js</extension>
|
||||
<mime-type>text/javascript</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>pdf</extension>
|
||||
<mime-type>application/pdf</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>png</extension>
|
||||
<mime-type>image/png</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>txt</extension>
|
||||
<mime-type>text/plain</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>xls</extension>
|
||||
<mime-type>application/vnd.ms-excel</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>xml</extension>
|
||||
<mime-type>text/xml</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>zhtml</extension>
|
||||
<mime-type>text/html</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>zul</extension>
|
||||
<mime-type>text/html</mime-type>
|
||||
</mime-mapping>
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.zul</welcome-file>
|
||||
<welcome-file>index.zhtml</welcome-file>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
<welcome-file>index.htm</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
||||
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<zk>
|
||||
<!-- [Optional]
|
||||
Uncomment if you want to defines the application's name
|
||||
|
||||
<preference>
|
||||
<name>org.zkoss.zk.ui.WebApp.name</name>
|
||||
<value>multimedia</value>
|
||||
</preference>
|
||||
-->
|
||||
|
||||
</zk>
|
||||
@ -0,0 +1,13 @@
|
||||
<div vflex="true"
|
||||
apply="at.windesign.application.seriesListController"
|
||||
>
|
||||
<listbox id="seriesList"
|
||||
multiple="true"
|
||||
autopaging="true"
|
||||
vflex="true">
|
||||
<listhead>
|
||||
</listhead>
|
||||
<!-- https://stackoverflow.com/questions/28629458/display-image-from-db-on-zk-zul-listbox-->
|
||||
<!-- https://www.zkoss.org/zksandbox/#u6-->
|
||||
</listbox>
|
||||
</div>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1,15 @@
|
||||
<zk>
|
||||
<borderlayout hflex="1"
|
||||
vflex="1">
|
||||
<north height="100px"
|
||||
border="none">
|
||||
<label style="font-size:50px">North for header</label>
|
||||
</north>
|
||||
<center id="win"
|
||||
border="none"
|
||||
apply="org.zkoss.bind.BindComposer"
|
||||
vflex="true">
|
||||
<include src="/centerSeries.zul"/>
|
||||
</center>
|
||||
</borderlayout>
|
||||
</zk>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,5 @@
|
||||
#Generated by Maven
|
||||
#Wed Oct 28 15:56:30 CET 2020
|
||||
groupId=at.windesign.application
|
||||
artifactId=multimedia
|
||||
version=1.0-SNAPSHOT
|
||||
@ -0,0 +1 @@
|
||||
at\windesign\application\seriesRenderer.class
|
||||
@ -0,0 +1,4 @@
|
||||
C:\Users\birkeh\ownCloud\dev\IntelliJ\zk\multimedia\src\main\java\at\windesign\application\seriesListController.java
|
||||
C:\Users\birkeh\ownCloud\dev\IntelliJ\zk\multimedia\src\main\java\at\windesign\application\SeriesDataSource.java
|
||||
C:\Users\birkeh\ownCloud\dev\IntelliJ\zk\multimedia\src\main\java\at\windesign\application\Serie.java
|
||||
C:\Users\birkeh\ownCloud\dev\IntelliJ\zk\multimedia\src\main\java\at\windesign\application\seriesRenderer.java
|
||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
Manifest-Version: 1.0
|
||||
Specification-Title: ZK Application
|
||||
Specification-Version: 1.0
|
||||
Specification-Vendor:
|
||||
Implementation-Title:
|
||||
Implementation-URL: http://your-website/
|
||||
Implementation-Version: 1.0
|
||||
Implementation-Vendor:
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
||||
version="3.0">
|
||||
|
||||
<description><![CDATA[My ZK Application]]></description>
|
||||
<display-name>multimedia</display-name>
|
||||
|
||||
<!-- [Optional]
|
||||
Uncomment if you want to use the ZK filter to post process the HTML output
|
||||
generated by other technology, such as JSP and velocity.
|
||||
<filter>
|
||||
<filter-name>zkFilter</filter-name>
|
||||
<filter-class>org.zkoss.zk.ui.http.DHtmlLayoutFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>extension</param-name>
|
||||
<param-value>html</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>compress</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>zkFilter</filter-name>
|
||||
<url-pattern>your URI pattern</url-pattern>
|
||||
</filter-mapping>
|
||||
-->
|
||||
</web-app>
|
||||
@ -0,0 +1,199 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
||||
|
||||
<description><![CDATA[My ZK Application]]></description>
|
||||
<display-name>multimedia</display-name>
|
||||
|
||||
<!-- //// -->
|
||||
<!-- ZK -->
|
||||
<listener>
|
||||
<description>ZK listener for session cleanup</description>
|
||||
<listener-class>org.zkoss.zk.ui.http.HttpSessionListener</listener-class>
|
||||
</listener>
|
||||
<servlet>
|
||||
<description>ZK loader for ZUML pages</description>
|
||||
<servlet-name>zkLoader</servlet-name>
|
||||
<servlet-class>org.zkoss.zk.ui.http.DHtmlLayoutServlet</servlet-class>
|
||||
|
||||
<!-- Must. Specifies URI of the update engine (DHtmlUpdateServlet).
|
||||
It must be the same as <url-pattern> for the update engine.
|
||||
-->
|
||||
<init-param>
|
||||
<param-name>update-uri</param-name>
|
||||
<param-value>/zkau</param-value>
|
||||
</init-param>
|
||||
<!-- Optional. Specifies whether to compress the output
|
||||
of the ZK loader. It speeds up the transmission over slow Internet.
|
||||
However, if you configure a filter to post-processing the
|
||||
output, you might have to disable it.
|
||||
|
||||
Default: true
|
||||
<init-param>
|
||||
<param-name>compress</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<!-- [Optional] Specifies the default log level: OFF, ERROR, WARNING,
|
||||
INFO, DEBUG and FINER. If not specified, the system default is used.
|
||||
<init-param>
|
||||
<param-name>log-level</param-name>
|
||||
<param-value>OFF</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<load-on-startup>1</load-on-startup><!-- Must -->
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>zkLoader</servlet-name>
|
||||
<url-pattern>*.zul</url-pattern>
|
||||
</servlet-mapping>
|
||||
<servlet-mapping>
|
||||
<servlet-name>zkLoader</servlet-name>
|
||||
<url-pattern>*.zhtml</url-pattern>
|
||||
</servlet-mapping>
|
||||
<!-- [Optional] Uncomment it if you want to use richlets.
|
||||
<servlet-mapping>
|
||||
<servlet-name>zkLoader</servlet-name>
|
||||
<url-pattern>/zk/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
-->
|
||||
<servlet>
|
||||
<description>The asynchronous update engine for ZK</description>
|
||||
<servlet-name>auEngine</servlet-name>
|
||||
<servlet-class>org.zkoss.zk.au.http.DHtmlUpdateServlet</servlet-class>
|
||||
|
||||
<!-- [Optional] Specifies whether to compress the output
|
||||
of the ZK loader. It speeds up the transmission over slow Internet.
|
||||
However, if your server will do the compression, you might have to disable it.
|
||||
|
||||
Default: true
|
||||
<init-param>
|
||||
<param-name>compress</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
<!-- [Optional] Specifies the AU extension for particular prefix.
|
||||
<init-param>
|
||||
<param-name>extension0</param-name>
|
||||
<param-value>/upload=com.my.MyUploader</param-value>
|
||||
</init-param>
|
||||
-->
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>auEngine</servlet-name>
|
||||
<url-pattern>/zkau/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- [Optional]
|
||||
Uncomment if you want to use the ZK filter to post process the HTML output
|
||||
generated by other technology, such as JSP and velocity.
|
||||
<filter>
|
||||
<filter-name>zkFilter</filter-name>
|
||||
<filter-class>org.zkoss.zk.ui.http.DHtmlLayoutFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>extension</param-name>
|
||||
<param-value>html</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>compress</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>zkFilter</filter-name>
|
||||
<url-pattern>your URI pattern</url-pattern>
|
||||
</filter-mapping>
|
||||
-->
|
||||
<!-- //// -->
|
||||
|
||||
<!-- ///////////// -->
|
||||
<!-- DSP (optional)
|
||||
Uncomment it if you want to use DSP
|
||||
However, it is turned on since zksandbox uses DSP to generate CSS.
|
||||
<servlet>
|
||||
<servlet-name>dspLoader</servlet-name>
|
||||
<servlet-class>org.zkoss.web.servlet.dsp.InterpreterServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>class-resource</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>dspLoader</servlet-name>
|
||||
<url-pattern>*.dsp</url-pattern>
|
||||
</servlet-mapping>
|
||||
-->
|
||||
|
||||
<!-- /////////// -->
|
||||
<!-- [Optional] Session timeout -->
|
||||
<session-config>
|
||||
<session-timeout>60</session-timeout>
|
||||
</session-config>
|
||||
|
||||
<!-- [Optional] MIME mapping -->
|
||||
<mime-mapping>
|
||||
<extension>doc</extension>
|
||||
<mime-type>application/vnd.ms-word</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>gif</extension>
|
||||
<mime-type>image/gif</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>htm</extension>
|
||||
<mime-type>text/html</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>html</extension>
|
||||
<mime-type>text/html</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>jpeg</extension>
|
||||
<mime-type>image/jpeg</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>jpg</extension>
|
||||
<mime-type>image/jpeg</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>js</extension>
|
||||
<mime-type>text/javascript</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>pdf</extension>
|
||||
<mime-type>application/pdf</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>png</extension>
|
||||
<mime-type>image/png</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>txt</extension>
|
||||
<mime-type>text/plain</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>xls</extension>
|
||||
<mime-type>application/vnd.ms-excel</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>xml</extension>
|
||||
<mime-type>text/xml</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>zhtml</extension>
|
||||
<mime-type>text/html</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>zul</extension>
|
||||
<mime-type>text/html</mime-type>
|
||||
</mime-mapping>
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.zul</welcome-file>
|
||||
<welcome-file>index.zhtml</welcome-file>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
<welcome-file>index.htm</welcome-file>
|
||||
</welcome-file-list>
|
||||
</web-app>
|
||||
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<zk>
|
||||
<!-- [Optional]
|
||||
Uncomment if you want to defines the application's name
|
||||
|
||||
<preference>
|
||||
<name>org.zkoss.zk.ui.WebApp.name</name>
|
||||
<value>multimedia</value>
|
||||
</preference>
|
||||
-->
|
||||
|
||||
</zk>
|
||||
@ -0,0 +1,2 @@
|
||||
<div>
|
||||
</div>
|
||||
@ -0,0 +1,15 @@
|
||||
<zk>
|
||||
<borderlayout hflex="1" vflex="1">
|
||||
<north height="100px" border="none">
|
||||
<label style="font-size:50px">North for header</label>
|
||||
</north>
|
||||
<center id="win"
|
||||
autoscroll="true"
|
||||
border="none"
|
||||
apply="org.zkoss.bind.BindComposer"
|
||||
viewModel="@id('vm')@init('at.windesign.application.EventViewModel')"
|
||||
validationMessages="@id('vmsgs')">
|
||||
<include src="/center.zul"/>
|
||||
</center>
|
||||
</borderlayout>
|
||||
</zk>
|
||||
Loading…
Reference in New Issue