Package com.gwtext.client.widgets.event

Examples of com.gwtext.client.widgets.event.ButtonListenerAdapter


        setStore(store);


        createButton = new ToolbarButton("Add property value");
        createButton.setCls("toolbar-button");
        createButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                onAddPropertyValue();
            }
        });
        if (!project.hasWritePermission(Application.get().getUserId())) {
            createButton.disable();
        }

        deleteButton = new ToolbarButton("Delete property value");
        deleteButton.setCls("toolbar-button");
        if (!project.hasWritePermission(Application.get().getUserId())) {
            deleteButton.disable();
        }
        deleteButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                int selectedRow = getCellSelectionModel().getSelectedCell()[0];
                if (selectedRow < 0) {
                    return;
View Full Code Here


        public SelectionDialog(com.gwtext.client.widgets.Window parent, Selectable selectable) {
            super();
            this.parent = parent;
            this.selectable = selectable;

            Button selectButton = new Button("Select", new ButtonListenerAdapter() {
                @Override
                public void onClick(Button button, EventObject e) {
                    Collection<EntityData> selection = SelectionDialog.this.selectable.getSelection();
                    if (selection != null && selection.size() > 0) {
                        EntityData singleSelection = selection.iterator().next();
View Full Code Here

            //window.setCloseAction(Window.HIDE);
            selectWindow.setPlain(true);

            com.gwtext.client.widgets.Button cancelButton = new com.gwtext.client.widgets.Button("Cancel");
            cancelButton.addListener(new ButtonListenerAdapter() {
                @Override
                public void onClick(Button button, EventObject e) {
                    selectWindow.hide();
                }
            });

            com.gwtext.client.widgets.Button selectButton = new com.gwtext.client.widgets.Button("Select");
            selectButton.addListener(new ButtonListenerAdapter() {
                @Override
                public void onClick(Button button, EventObject e) {
                    Collection<EntityData> selection = getSelectable().getSelection();
                    if (selection == null || selection.size() == 0) {
                        MessageBox.alert("No selection", "No class selected. Please select a class from the tree.");
View Full Code Here

        window.setCloseAction(Window.CLOSE);
        final TabPanel configPanel = getConfigurationPanel();
        window.add(configPanel);
        window.setButtonAlign(Position.CENTER);

        window.addButton(new Button("OK", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                if (isValidConfiguration(configPanel)) {
                    saveConfiguration(configPanel);
                    window.close();
                }
                else {
                    MessageBox.alert("Invalid configuration", "The configuration is not valid. Please fix it, and try again");
                }
            }
        }));

        window.addButton(new Button("Cancel", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                window.close();
            }
        }));
View Full Code Here

        selectWindow.setButtonAlign(Position.CENTER);

        selectWindow.setPlain(true);

        com.gwtext.client.widgets.Button cancelButton = new com.gwtext.client.widgets.Button("Cancel");
        cancelButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                selectWindow.hide();
                selectWindow.destroy();
            }
        });

        com.gwtext.client.widgets.Button selectButton = new com.gwtext.client.widgets.Button("Select");
        selectButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                Collection<EntityData> tmpselection = classSelectionPanel.getSelection();
                if (tmpselection == null || tmpselection.size() == 0) {
                    MessageBox.alert("No selection", "No class selected. Please select a class from the tree.");
View Full Code Here

        selectWindow.setPaddings(5);
        selectWindow.setButtonAlign(Position.CENTER);
        selectWindow.setPlain(true);

        com.gwtext.client.widgets.Button cancelButton = new com.gwtext.client.widgets.Button("Cancel");
        cancelButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                selectWindow.hide();
                selectWindow.destroy();
            }
        });

        com.gwtext.client.widgets.Button selectButton = new com.gwtext.client.widgets.Button("Select");
        selectButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                Collection<EntityData> tmpselection = classSelectionPanel.getSelection();
                if (tmpselection == null || tmpselection.size() == 0) {
                    MessageBox.alert("No selection", "No entity selected. Please make a selection in the right panel.");
View Full Code Here

            selectWindow.setCloseAction(Window.HIDE);
            selectWindow.setPlain(true);

            com.gwtext.client.widgets.Button cancelButton = new com.gwtext.client.widgets.Button("Cancel");
            cancelButton.addListener(new ButtonListenerAdapter() {
                @Override
                public void onClick(Button button, EventObject e) {
                    selectWindow.hide();
                }
            });

            com.gwtext.client.widgets.Button selectButton = new com.gwtext.client.widgets.Button("Select");
            selectButton.addListener(new ButtonListenerAdapter() {
                @Override
                public void onClick(Button button, EventObject e) {
                    Collection<EntityData> selection = getSelectable().getSelection();
                    if (selection == null || selection.size() == 0) {
                        MessageBox.alert("No selection", "No class selected. Please select a class from the tree.");
View Full Code Here

            toolbar = new Toolbar();
            toolbar.addText("<span style=\"color:#CC0000;font-weight:bold;\">This is a read-only view. Changes will not be saved!</span>");
            popupWindow.setBottomToolbar(toolbar);
           
            popupWindow.setButtonAlign(Position.CENTER);
            okButton = new Button("Close", new ButtonListenerAdapter() {
                @Override
                public void onClick(Button button, EventObject e) {
                    onCancel(field);
                }
            });
            saveButton = new Button("Save", new ButtonListenerAdapter() {
                @Override
                public void onClick(Button button, EventObject e) {
                    onConfirm(field);
                }
            });
            cancelButton = new Button("Cancel", new ButtonListenerAdapter() {
                @Override
                public void onClick(Button button, EventObject e) {
                    onCancel(field);
                }
            });
View Full Code Here

        reasonField.setLabel("Reason for change:");
        ((TextArea)reasonField.getFieldComponent()).setHeight(120);
        add(reasonField, new AnchorLayoutData("100% - 53"));

        Button retireButton = new Button("Retire");
        retireButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                if (ProjectManager.get().getProject(projectId).get().hasWritePermission()) {
                    onRetire();
                } else {
                    MessageBox.alert("No permission", "You do not have enough privileges to retire classes.");
                }
            }
        });

        Button cancelButton = new Button("Cancel");
        cancelButton.addListener(new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                clear();
                destroy();
View Full Code Here

                    performSignIn(isLoginWithHttps, win, userNameField, passwordField);
                }
            }
        });

        Button signInButton = new Button("Sign In", new ButtonListenerAdapter() {
            @Override
            public void onClick(Button button, EventObject e) {
                performSignIn(isLoginWithHttps, win, userNameField, passwordField);
            }
        });
View Full Code Here

TOP

Related Classes of com.gwtext.client.widgets.event.ButtonListenerAdapter

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.