1

ここで、ループでウィンドウ名を取得するために getId の時点でウィンドウの setId に問題が発生しました。ここにスニペットがあります:

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);
                  }
              });
4

0 に答える 0