Examples of addActionHandler()


Examples of com.vaadin.ui.Table.addActionHandler()

     * @return
     */
    private Table createTable() {
        Table table = new Table();
        table.setSizeFull();
        table.addActionHandler(new Action.Handler() {

            private final Action ADD = new Action("Add event");
            private final Action EDIT = new Action("Edit event");
            private final Action REMOVE = new Action("Remove event");

View Full Code Here

Examples of com.vaadin.ui.Table.addActionHandler()

        t.setWidth("700px");
        t.setPageLength(4);
        t.setSelectable(true);
        t.setColumnCollapsingAllowed(true);
        t.setColumnReorderingAllowed(true);
        t.addActionHandler(handler);

        t.addContainerProperty("First", String.class, null, "First",
                ICON_GLOBE, Table.ALIGN_RIGHT);
        t.addContainerProperty("Second", String.class, null);
        t.addContainerProperty("Third", String.class, null);
View Full Code Here

Examples of com.vaadin.ui.Table.addActionHandler()

                m_lastEntry.setListener(null);
                m_lastEntry = ntte;
                ntte.setListener(this);
            }
        });
        table.addActionHandler(new Action.Handler() {
            final Action[] delete = new Action[] { new Action("delete") };

            public void handleAction(Action action, Object sender, Object target) {
                idToKey.remove(target).removeFrom(table);
            }
View Full Code Here

Examples of com.vaadin.ui.Table.addActionHandler()

    protected void setup() {
        Table table = new Table();
        table.setSelectable(true);
        table.setMultiSelect(true);

        table.addActionHandler(new Action.Handler() {
            @Override
            public void handleAction(Action action, Object sender, Object target) {
                // TODO Auto-generated method stub

            }
View Full Code Here

Examples of com.vaadin.ui.Table.addActionHandler()

    @Override
    protected void setup(VaadinRequest request) {
        Table table = new Table();
        table.setPageLength(1);
        table.addActionHandler(new Handler() {

            @Override
            public void handleAction(Action action, Object sender, Object target) {
            }
View Full Code Here

Examples of com.vaadin.ui.Table.addActionHandler()

    protected void setup() {
        Table table = new Table();
        table.setSelectable(true);
        table.setMultiSelect(true);

        table.addActionHandler(new Action.Handler() {
            @Override
            public void handleAction(Action action, Object sender, Object target) {
                Notification.show("Done that :-)");
            }
View Full Code Here

Examples of com.vaadin.ui.Table.addActionHandler()

                m_lastEntry = ntte;
                ntte.setListener(this);
            }
        });
       
        table.addActionHandler(new Action.Handler() {
            final Action[] delete = new Action[] { new Action("delete") };

            public void handleAction(Action action, Object sender, Object target) {
                idToKey.remove(target).removeFrom(table);
            }
View Full Code Here

Examples of com.vaadin.ui.Table.addActionHandler()

                m_lastEntry = ntte;
                ntte.setListener(this);
            }
        });

        table.addActionHandler(new Action.Handler() {
            final Action[] delete = new Action[] { new Action("delete") };

            public void handleAction(Action action, Object sender, Object target) {
                idToKey.remove(target).removeFrom(table);
            }
View Full Code Here

Examples of com.vaadin.ui.Tree.addActionHandler()

        tree.setItemIcon("Root", icon);
        tree.addItem("Leaf");
        tree.setItemIcon("Leaf", icon);
        tree.setParent("Leaf", "Root");
        tree.expandItemsRecursively("Root");
        tree.addActionHandler(actionHandler);
        gl.addComponent(tree);

        // All of FontAwesome
        String allIcons = "";
        for (FontIcon ic : FontAwesome.values()) {
View Full Code Here

Examples of com.vaadin.ui.Tree.addActionHandler()

        main.addComponent(createTestBench(t));

        t = createTestTree();
        t.setCaption("with actions");
        t.setImmediate(true);
        t.addActionHandler(this);
        final AbstractOrderedLayout ol = (AbstractOrderedLayout) createTestBench(t);
        al = new VerticalLayout();
        al.setMargin(true);
        ol.addComponent(new Panel("action log", al));
        main.addComponent(ol);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.