Examples of addClickHandler()


Examples of com.google.gwt.user.client.ui.TextBox.addClickHandler()

                         "Driver:" );
        final TextBox driverInput = new TextBox();
        if ( rdbmsConf.getDbDriver() != null && rdbmsConf.getDbDriver().trim().length() > 0 ) {
            driverInput.setValue( rdbmsConf.getDbDriver() );
        }
        driverInput.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent w) {
                repoDisplayArea.setVisible( false );
                saveRepoConfigForm.setVisible( false );
            }
        } );
View Full Code Here

Examples of com.google.gwt.user.client.ui.ToggleButton.addClickHandler()

        }
        ToggleButton star = new ToggleButton(
            Icons.editorIcons.StarEmpty().createImage(),
            Icons.editorIcons.StarFull().createImage());
        star.setDown(entry.isStarred());
        star.addClickHandler(new ClickHandler(){
          public void onClick(ClickEvent event) {
            ToggleButton btn = (ToggleButton)event.getSource();
            if (btn.isDown()) {
              CommandEvent.fire(new SystemStarDocumentCommand(id));
            } else {
View Full Code Here

Examples of com.google.livingstories.client.util.SquareImage.addClickHandler()

    contentPanel.clear();
    int i = 0;
    for (AssetContentItem image : images) {
      final SquareImage imageWidget = new SquareImage(image.getPreviewUrl(), ITEM_SIZE);
      final int imageIndex = i++;
      imageWidget.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          navigate(imageIndex);
        }
      });
View Full Code Here

Examples of com.gwtext.client.widgets.ToolbarButton.addClickHandler()

                final TextBox userName = new TextBox();
                form.addAttribute( constants.NewUserName(), userName );

                com.google.gwt.user.client.ui.Button create = new com.google.gwt.user.client.ui.Button( constants.OK() );
                form.addAttribute( "", create );
                create.addClickHandler( new ClickHandler() {
                    public void onClick(ClickEvent w) {
                        if ( userName.getText() != null && userName.getText().length() != 0 ) {
                            RepositoryServiceFactory.getService().createUser( userName.getText(), new GenericCallback<java.lang.Void>() {
                                public void onSuccess(Void a) {
                                    refresh();
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PAnchor.addClickHandler()

        final PTreeItem firstItem = new PTreeItem("First item");

        final PAnchor anchor = new PAnchor("Second item");
        final PTreeItem secondItem = new PTreeItem(anchor);
        anchor.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                secondItem.setState(secondItem.getState() ? false : true);
            }
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PButton.addClickHandler()

    }

    @Override
    public void addPageIndex(final int pageIndex, final PCommand command) {
        final PButton button = new PButton(String.valueOf(pageIndex + 1));
        button.addClickHandler(new PClickHandler() {

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

Examples of com.ponysdk.ui.server.basic.PHTML.addClickHandler()

        header.addStyleName("header");
        final PAnchor close = new PAnchor();
        close.addStyleName("close");
        final PHTML buy = new PHTML("<div></div>");
        buy.addStyleName("buy");
        buy.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent clickEvent) {
                PNotificationManager.showHumanizedNotification("Buy clicked!");
            }
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PImage.addClickHandler()

                // up image
                final PImage upImage = new PImage(ARROW_UP_IMAGE_URL);
                upImage.setTitle("Move column up");
                buttonPanel.add(upImage);
                buttonPanel.setCellHorizontalAlignment(upImage, PHorizontalAlignment.ALIGN_LEFT);
                upImage.addClickHandler(new PClickHandler() {

                    @Override
                    public void onClick(final PClickEvent event) {
                        final int index = labels.indexOf(label) - 1;
                        labels.remove(label);
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PLabel.addClickHandler()

            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.PRadioButton.addClickHandler()

            final PRadioButton radioButton = new PRadioButton(caption, item);
            if (debugID != null) {
                radioButton.ensureDebugId(debugID + "[" + item + "]");
            }

            radioButton.addClickHandler(new PClickHandler() {

                @Override
                public void onClick(PClickEvent event) {
                    selectItem(item);
                }
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.