Package com.ponysdk.ui.server.basic.event

Examples of com.ponysdk.ui.server.basic.event.PChangeEvent


        if (HANDLER.KEY_.CHANGE_HANDLER.equals(handler)) {
            final String fileName = instruction.getString(PROPERTY.FILE_NAME);
            if (fileName != null) {
                setFileName(fileName);
            }
            onChange(new PChangeEvent(this));
        } else if (HANDLER.KEY_.SUBMIT_COMPLETE_HANDLER.equals(handler)) {
            onSubmitComplete();
        } else {
            super.onClientData(instruction);
        }
View Full Code Here


        });
        setWidget(1, 1, switchButton);
    }

    protected void fireChangeHandler() {
        final PChangeEvent event = new PChangeEvent(this);
        for (final PChangeHandler handler : handlers) {
            handler.onChange(event);
        }
    }
View Full Code Here

            }

            this.selectedIndexes.clear();
            this.selectedIndexes.addAll(selectedItems);

            onChange(new PChangeEvent(PListBox.this));
        } else {
            super.onClientData(instruction);
        }
    }
View Full Code Here

        Assert.assertEquals("Item 5", plistBox1.getItem(4));
        Assert.assertEquals("Item 6", plistBox1.getItem(5));

        options.get(4).click();

        final PChangeEvent e1 = eventsListener.poll();
        Assert.assertNotNull(e1);

        Assert.assertEquals(4, plistBox1.getSelectedIndex());
        Assert.assertEquals("Item 5", plistBox1.getSelectedItem());
View Full Code Here

        Assert.assertEquals(new Long(6), plistBox2.getValue(5));

        final Select select2 = new Select(listBox2);
        select2.selectByIndex(4); // select item5

        final PChangeEvent e2 = eventsListener.poll();
        Assert.assertNotNull(e2);

        Assert.assertEquals(4, plistBox2.getSelectedIndex());
        Assert.assertEquals("Item 5", plistBox2.getSelectedItem());
        Assert.assertEquals(new Long(5), plistBox2.getSelectedValue());
View Full Code Here

TOP

Related Classes of com.ponysdk.ui.server.basic.event.PChangeEvent

Copyright © 2018 www.massapicom. 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.