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

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


        operation.addItem("Select \"Friesian horse\"", 0);
        operation.addItem("Get textbox value", 1);
        operation.addItem("Enable/Disable textbox", 2);
        operation.addItem("Clear", 3);
        operation.addItem("Add items", 4);
        operation.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                final Integer item = (Integer) operation.getSelectedValue();
                if (item == null) return;
View Full Code Here


        styleListBox.addItem(PonySDKTheme.BUTTON_ORANGE);
        styleListBox.addItem(PonySDKTheme.BUTTON_PINK);
        styleListBox.addItem(PonySDKTheme.BUTTON_ROSY);
        styleListBox.addItem("pony-PButton accent");

        styleListBox.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                final String styleName = styleListBox.getSelectedItem();
View Full Code Here

        layout.add(validateButton);

        final PListBox themesSelector = new PListBox();
        themesSelector.addItem(STANDARD);
        themesSelector.addItem(DARK);
        themesSelector.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                final String selectedItem = themesSelector.getSelectedItem();
                setTheme(selectedItem);
View Full Code Here

        seconds = new PListBox(false, false);
        for (int i = 0; i < 60; i++) {
            seconds.addItem(i + "", i);
        }

        hours.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                if (calendar != null) {
                    calendar.set(Calendar.HOUR_OF_DAY, (Integer) hours.getSelectedValue());
                }
            }
        });
        minutes.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                if (calendar != null) {
                    calendar.set(Calendar.MINUTE, (Integer) minutes.getSelectedValue());
                }
            }
        });
        seconds.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                if (calendar != null) {
                    calendar.set(Calendar.SECOND, (Integer) seconds.getSelectedValue());
View Full Code Here

        final PListBox captionOriantationList = new PListBox(true);
        for (final CaptionOrientation captionOriantation : CaptionOrientation.values()) {
            captionOriantationList.addItem(captionOriantation.name(), captionOriantation);
        }
        captionOriantationList.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                final CaptionOrientation captionOriantation = (CaptionOrientation) captionOriantationList.getSelectedValue();
View Full Code Here

        listBox.addItem("Falabella");
        listBox.addItem("Friesian horse");
        listBox.addItem("Mustang");
        listBox.addItem("Altai horse");

        listBox.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                if (listBox.getSelectedIndex() != -1) {
                    PNotificationManager.showTrayNotification("Item selected : " + listBox.getSelectedItem());
                }
            }
        });

        final PListBox multiListBox = new PListBox(true, true);
        multiListBox.setVisibleItemCount(10);
        multiListBox.addItem("Altai horseBengin");
        multiListBox.addItem("American Warmblood");
        multiListBox.addItem("Falabella");
        multiListBox.addItem("Friesian horse");
        multiListBox.addItem("Mustang");
        multiListBox.addItem("Altai horse");

        multiListBox.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                PNotificationManager.showTrayNotification("Item selected : " + multiListBox.getSelectedItems());
            }
View Full Code Here

        leftListBox.addItem("Item2");
        leftListBox.addItem("Item3");
        leftListBox.addItem("Item4");
        leftListBox.addItem("Item5");
        leftListBox.setVisibleItemCount(10);
        leftListBox.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                PNotificationManager.showTrayNotification("Item selected : " + leftListBox.getSelectedItem());
            }
        });

        final PListBox rightListBox = twinListBox.getRightListBox();
        rightListBox.addItem("Item6");
        rightListBox.addItem("Item7");
        rightListBox.addItem("Item8");
        rightListBox.addItem("Item9");
        rightListBox.setVisibleItemCount(10);
        rightListBox.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                PNotificationManager.showTrayNotification("Item selected : " + rightListBox.getSelectedItem());
            }
        });

        twinListBox.addChangeHandler(new PChangeHandler() {

            @Override
            public void onChange(final PChangeEvent event) {
                PNotificationManager.showTrayNotification("Item changed");
            }
View Full Code Here

            listBox.addItem(ComparatorType.GE.getName());
            listBox.addItem(ComparatorType.GT.getName());
            listBox.addItem(ComparatorType.LE.getName());
            listBox.addItem(ComparatorType.LT.getName());

            listBox.addChangeHandler(new PChangeHandler() {

                @Override
                public void onChange(final PChangeEvent event) {
                    final String selectedItem = listBox.getSelectedItem();
                    if (selectedItem == null) return;
View Full Code Here

TOP

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

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.