Package com.smartgwt.client.core

Examples of com.smartgwt.client.core.Rectangle


        pickListGrid.setCellFormatter(getSearchStrategy());
        pickListGrid.setShowHeader(false);
    }

    private void showPickListGrid() {
        Rectangle searchTextRect = searchTextItem.getPageRect();
        pickListGrid.setLeft(searchTextRect.getLeft());
        pickListGrid.setWidth(searchTextRect.getWidth());
        pickListGrid.setTop(searchTextRect.getTop() + searchTextRect.getHeight());
        pickListGrid.setHeight(PICKLIST_HEIGHT);
        pickListGrid.setWidth(PICKLIST_HEIGHT);
        pickListGrid.redraw();
    }
View Full Code Here


            addIconClickHandler(new IconClickHandler() {
                public void onIconClick(IconClickEvent event) {

                    // get global coordinates of the clicked picker icon
                    Rectangle iconRect = getIconPageRect(event.getIcon());

                    // lazily create the YesNoMaybe picker dialog the first time a yesNoMaybe editor is clicked
                    if (YesNoMaybeItem.dialog == null) {
                        YesNoMaybeItem.makeDialog();
                    }
                    // remember what editor is active, so we can set its value from the picker dialog
                    YesNoMaybeItem.currentEditor = YesNoMaybeItem.this;

                    // show the picker dialog
                    YesNoMaybeItem.showDialog(iconRect.getLeft(), iconRect.getTop());
                }
            });
        }
View Full Code Here

        final IButton button = new IButton("Show Example");
        button.setWidth(140);
        button.setIcon("silk/layout_content.png");
        button.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                Rectangle rect = button.getPageRect();
                final Canvas animateOutline = new Canvas();
                animateOutline.setBorder("2px solid black");
                animateOutline.setTop(rect.getTop());
                animateOutline.setLeft(rect.getLeft());
                animateOutline.setWidth(rect.getLeft());
                animateOutline.setHeight(rect.getHeight());

                animateOutline.show();
                animateOutline.animateRect(0, 0, Page.getWidth(), Page.getHeight(), new AnimationCallback() {
                    public void execute(boolean earlyFinish) {
                        animateOutline.hide();
                        final FullScreenApplication appWindow = new FullScreenApplication();
                        appWindow.addCloseClickHandler(new CloseClickHandler() {
                            public void onCloseClick(CloseClientEvent event) {
                                animateOutline.setRect(0, 0, Page.getWidth(), Page.getHeight());
                                animateOutline.show();
                                appWindow.destroy();
                                Rectangle targetRect = button.getPageRect();
                                animateOutline.animateRect(targetRect.getLeft(), targetRect.getTop(), targetRect.getWidth(),
                                        targetRect.getHeight(), new AnimationCallback() {
                                            public void execute(boolean earlyFinish) {
                                                animateOutline.hide();
                                            }
                                        }, 500);
View Full Code Here

        }
        else if ( icon.getSrc().equals( filedsIcon.getSrc() ) ) {
          if ( fieldsDialog == null ) {
            fieldsDialog = new FieldsDialog();
          }
          Rectangle iconRect = searchItem.getIconPageRect( event.getIcon() );
          fieldsDialog.setFields( searchFields );
          fieldsDialog.show();
          fieldsDialog.moveTo( iconRect.getLeft() - DIALOG_WIDTH + 20, iconRect.getTop() );
        }
        else {
          fireSearchEvent();
        }
      }
View Full Code Here

TOP

Related Classes of com.smartgwt.client.core.Rectangle

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.