Examples of PClickHandler


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

        for (int i = 0; i < 10; i++) {
            roleListBox.addItem("Role" + i, i);
        }

        final PButton selectedRole = new PButton("Selected roles [1,2]");
        selectedRole.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                roleListBox.setSelectedValue(1);
                roleListBox.setSelectedValue(2);

                PNotificationManager.showHumanizedNotification("Selected items " + roleListBox.getSelectedItems());
            }
        });
        final PButton unSelectedRole = new PButton("Selected roles [1,2]");
        unSelectedRole.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                roleListBox.setSelectedValue(1, false);
                roleListBox.setSelectedValue(2, false);
View Full Code Here

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

        final PButton submitButton = new PButton("Upload File");
        submitButton.showLoadingOnRequest(true);
        submitButton.setEnabledOnRequest(false);

        submitButton.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                fileUpload.submit();
            }
View Full Code Here

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

        final PButton deploy = new PButton("+");
        final KeyUpHandler keyUphandler = new KeyUpHandler(textbox, popup, deploy);
        textbox.setStyleName(PonySDKTheme.ORACLE_TEXT_BOX);
        textbox.addKeyUpHandler(keyUphandler);
        textbox.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                keyUphandler.refresh(textbox.getText());
            }
View Full Code Here

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

        final PFlowPanel inputPanel = new PFlowPanel();
        final PTextBox input = new PTextBox();
        final PButton add = new PButton("Add Level");
        add.setStyleName(PonySDKTheme.BUTTON_BLUE);
        add.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                if (input.getText().isEmpty()) breadCrumbs.addItem("level " + ++level);
                else breadCrumbs.addItem(input.getText());
View Full Code Here

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

            setCellHorizontalAlignment(down, PHorizontalAlignment.ALIGN_CENTER);
            add(nextPaginationLabel);
        }

        void initDeploy() {
            deploy.addClickHandler(new PClickHandler() {

                @Override
                public void onClick(final PClickEvent event) {
                    deployed = !deployed;
                    if (!deployed) {
View Full Code Here

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

            textBox.setText(textBox.getText());
            textbox.setFocus(true);
        }

        private void initHandlers() {
            down.addClickHandler(new PClickHandler() {

                @Override
                public void onClick(final PClickEvent clickEvent) {
                    goToNextPage();
                    refreshLabels();
                }

            });
            this.up.addClickHandler(new PClickHandler() {

                @Override
                public void onClick(final PClickEvent clickEvent) {
                    goToPreviousPage();
                    currentSelected = 0;
View Full Code Here

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

            for (final String s : elementsForCurrentPage) {

                final PLabel label = new PLabel(s);
                currentMatchingElements.add(label);
                label.addStyleName(PonySDKTheme.ORACLE_ITEM);
                label.addClickHandler(new PClickHandler() {

                    @Override
                    public void onClick(final PClickEvent event) {
                        OracleListBoxRenderer.this.onValueChange(new PValueChangeEvent<String>(this, s));
                        popup.hide();
View Full Code Here

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

        final PTextBox placeHolder = new PTextBox();
        panel.add(new PLabel("Place holder : "));
        panel.add(placeHolder);

        final PButton button = new PButton("Set");
        button.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                textBox.setPlaceholder(placeHolder.getText());
                textBoxReadOnly.setPlaceholder(placeHolder.getText());
            }
        });
        panel.add(button);

        final PTextBox masked = new PTextBox();
        final PTextBox maskedTextBox = new PTextBox();
        final PTextBox replacement = new PTextBox();
        final PCheckBox showMask = new PCheckBox("Show mask");
        final PButton applyMaskButton = new PButton("Apply mask");
        applyMaskButton.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                if (masked.getText().isEmpty()) return;
View Full Code Here

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

        // complexListActivity.getForm().addFormField(nameSearchField);
        // complexListActivity.getForm().addFormField(ageSearchField);

        final PButton addPonyButton = new PButton("Create new pony");
        addPonyButton.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent clickEvent) {
                showCreatePonyPopup();
            }
View Full Code Here

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

        setWidget(1, 0, leftListBox);
        setWidget(1, 2, rightListBox);

        switchButton = new PButton("<>");
        switchButton.addStyleName(PonySDKTheme.TWIN_LISTBOX_SWITCH_BUTTON);
        switchButton.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent clickEvent) {
                final List<ListItem> leftRemovedItems = new ArrayList<ListItem>();
                for (int i = leftListBox.getItemCount(); i > 0; i--) {
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.