1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    2
    Vote Rating
    0
    tsurendra is on a distinguished road

      0  

    Default Unanswered: How to get an Id of a widget in GXT

    Unanswered: How to get an Id of a widget in GXT


    here I got a problem with the setId of a window at the time of getId in order to retrieve the window name in a loop. Here is a snippet:

    int counter1 =1; final Integer counter = new Integer(counter1); windowDoneTextButton.addSelectHandler(new SelectHandler() { @Override public void onSelect(SelectEvent event) { if (counter <= 100) { window.setId(new Integer(counter).toString()); windowQuestionVerticalLayoutContainer.setId(new Integer(counter).toString()); window.hide(); addItemSplitButton.removeFromParent(); Label questionTitleLabelOfWindowQuestionTextField = new Label(); questionTitleLabelOfWindowQuestionTextField.setText(windowQuestionTextField.getValue()); Label questionHelpTextLabelOfWindowQuestionHelpTextTextField = new Label(); questionHelpTextLabelOfWindowQuestionHelpTextTextField.setText(windowQuestionHelpTextTextField.getValue()); FormPanel editFormPanel = new FormPanel(); HorizontalPanel editHorizontalPanel = new HorizontalPanel(); TextButton editButton = new TextButton(); editButton.addSelectHandler(new SelectHandler() { @Override public void onSelect(SelectEvent event) { addItemSplitButton.removeFromParent(); window.show(); homePageVerticalLayoutContainer.add(window); homePageVerticalLayoutContainer.add(addItemSplitButton); } });

  2. #2
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    411
    Answers
    20
    Vote Rating
    21
    icfantv will become famous soon enough icfantv will become famous soon enough

      0  

    Default


    Would you mind editing your post and using the #-button in the tool bar to wrap it in CODE tags so that we can read this a little easier? It would also make helping you easier. Thanks.

  3. #3
    Sencha User
    Join Date
    Jan 2013
    Posts
    2
    Vote Rating
    0
    tsurendra is on a distinguished road

      0  

    Default How can refer a widget by using getId

    How can refer a widget by using getId


    Code:
    int counter1 =1;
            final Integer counter = new Integer(counter1);
            if (counter <= 1000) {
            windowDoneTextButton.addSelectHandler(new SelectHandler() {
                    @Override
                    public void onSelect(SelectEvent event) {
                        windowQuestionVerticalLayoutContainer.setId(new Integer(counter).toString());
                        window.hide();
                        addItemSplitButton.removeFromParent();
                        final FormPanel editFormPanel = new  FormPanel();
                        editFormPanel.setId(new Integer(counter).toString());
                        editFormPanel.setPosition(560, 0);
                        TextButton editButton  =  new TextButton();
                        TextButton copyButton  =  new TextButton();
                        TextButton deleteButton  =  new TextButton();
                        editButton.setText("Edit");
                        editButton.addSelectHandler(new SelectHandler() {
                            
                            @Override
                            public void onSelect(SelectEvent event) {
                                System.out.println(editFormPanel.getId());
                                System.out.println(windowQuestionVerticalLayoutContainer.getId());
                                if(editFormPanel.getId().equals(windowQuestionVerticalLayoutContainer.getId())) {
    //                                    windowQuestionVerticalLayoutContainer.removeFromParent();    
    //          windowQuestionVerticalLayoutContainer.sremove(windowQuestionVerticalLayoutContainer);
                                                windowQuestionVerticalLayoutContainer.remove(Integer.parseInt(windowQuestionVerticalLayoutContainer.getId()));
                                    }
    //                            windowQuestionVerticalLayoutContainer.getId();
                                window.show();
                                centerContentHomePageVerticalLayoutContainer.add(window);
                                }
                            });

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi