aboutsummaryrefslogtreecommitdiffstats
path: root/all
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-06 19:25:20 +0300
committerArtur Signell <artur@vaadin.com>2012-09-09 11:23:50 +0300
commite86c2a12153f520830b9f5c8b1d7bd65082f99a1 (patch)
treee5b75ead4be049aed346afad34374ea86b7c9e12 /all
parent07b4b903163b4c196972c13e25cdd83af27e2ef6 (diff)
downloadvaadin-framework-e86c2a12153f520830b9f5c8b1d7bd65082f99a1.tar.gz
vaadin-framework-e86c2a12153f520830b9f5c8b1d7bd65082f99a1.zip
Readme for zip (#9299)
Diffstat (limited to 'all')
-rw-r--r--all/README.TXT13
-rw-r--r--all/build.xml3
2 files changed, 16 insertions, 0 deletions
diff --git a/all/README.TXT b/all/README.TXT
new file mode 100644
index 0000000000..55685ac8b0
--- /dev/null
+++ b/all/README.TXT
@@ -0,0 +1,13 @@
+This Vaadin zip contains all the jars of the Vaadin Framework. Additionally all dependencies are provided in the lib folder.
+
+To use in a web project:
+1. Copy all vaadin-* files except vaadin-client and vaadin-client-compiler to WEB-INF/lib in your project
+2. Copy vaadin-client and vaadin-client-compiler to a lib folder which is on your classpath but will not be deployed. These files are only needed when compiling a module (widget set) to Javascript.
+
+If you are using Eclipse and a standard WTP (Dynamic Web Project or Vaadin Project) you can do:
+1. As above
+2. Create a /lib folder, copy the files there and right click the lib folder and select "Build Path" -> "Add to Build Path".
+Once this is done, the "Compile widgetset" button provided by the Vaadin Plug-in for Eclipse will work correctly.
+
+
+
diff --git a/all/build.xml b/all/build.xml
index f69e8a0bb5..4281a63b2f 100644
--- a/all/build.xml
+++ b/all/build.xml
@@ -47,6 +47,9 @@
</fileset>
<fileset refid="common.files.for.all.jars" />
+ <fileset dir="${result.dir}/..">
+ <include name="README.TXT"/>
+ </fileset>
</zip>
</target>
{ color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
package com.vaadin.tests.tickets;

import com.vaadin.data.Container;
import com.vaadin.data.Container.Filterable;
import com.vaadin.data.Item;
import com.vaadin.data.util.filter.SimpleStringFilter;
import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Table;

public class Ticket1995 extends LegacyApplication {

    private static final Object PROPERTY_1 = "Test";
    private Table table;

    @Override
    public void init() {
        final LegacyWindow mainWin = new LegacyWindow(getClass().getName());
        setMainWindow(mainWin);

        table = new Table();
        table.addContainerProperty(PROPERTY_1, String.class, "");
        table.setPageLength(4);

        Item item = table.addItem("1");
        item.getItemProperty(PROPERTY_1).setValue("Row 1");
        item = table.addItem("2");
        item.getItemProperty(PROPERTY_1).setValue("Row 2");

        Filterable filterable = (Container.Filterable) table
                .getContainerDataSource();
        filterable.addContainerFilter(new SimpleStringFilter(PROPERTY_1, "Row",
                true, false));

        table.setColumnHeader(PROPERTY_1, "Test (filter: Row)");

        mainWin.addComponent(table);
        mainWin.addComponent(new Button("Add item",
                new com.vaadin.ui.Button.ClickListener() {

                    @Override
                    public void buttonClick(ClickEvent event) {
                        addItem();
                    }
                }));
    }

    protected void addItem() {
        Filterable filterable = (Container.Filterable) table
                .getContainerDataSource();

        Item i = table.addItem("abc");
        String res = "";
        if (i == null) {
            res = "FAILED";
        } else {
            res = "OK!";
        }

        getMainWindow().showNotification("Tried to add item 'abc', " + res);

        filterable.addContainerFilter(new SimpleStringFilter(PROPERTY_1, "Row",
                true, false));

    }
}