@Override
  public void showResults(Job job) {
    disclosurePanel.setOpen(true);
    Set<PairwiseComparison> comparisons = job.getComparison();
    comparisonsPanel.clear();
    List<PairwiseComparison> ordered = new ArrayList<PairwiseComparison>(comparisons);
    Collections.sort(
        ordered,
        new Comparator<PairwiseComparison>() {

          @Override
          public int compare(PairwiseComparison o1, PairwiseComparison o2) {
            if (o1.getSimilarity() != null & o2.getSimilarity() != null) {
              double parseDouble = o1.getSimilarity();
              double parseDouble2 = o2.getSimilarity();
              if (parseDouble > parseDouble2) {
                return -1;
              } else if (parseDouble < parseDouble2) {
                return 1;
              } else {
                return 0;
              }
            } else {
              return 0;
            }
          }
        });
    for (PairwiseComparison comparison : ordered) {
      HorizontalPanel pairwiseComparisonPanel = new HorizontalPanel();
      String firstId = comparison.getFirstDataset().getUri();
      PreviewWidget previewWidget =
          new PreviewWidget(firstId, GetPreviews.SMALL, "dataset?id=" + firstId, dispatchAsync);
      previewWidget.addStyleName("thumbnail");
      pairwiseComparisonPanel.add(previewWidget);
      pairwiseComparisonPanel.setCellVerticalAlignment(
          previewWidget, HasVerticalAlignment.ALIGN_MIDDLE);
      String secondId = comparison.getSecondDataset().getUri();
      PreviewWidget previewWidget2 =
          new PreviewWidget(secondId, GetPreviews.SMALL, "dataset?id=" + secondId, dispatchAsync);
      previewWidget.addStyleName("thumbnail");
      pairwiseComparisonPanel.add(previewWidget2);
      pairwiseComparisonPanel.setCellVerticalAlignment(
          previewWidget2, HasVerticalAlignment.ALIGN_MIDDLE);

      String text = " = ";

      ComparisonStatus comparisonStatus = job.getComparisonStatus().get(comparison.getUri());
      if (comparisonStatus == ComparisonStatus.ENDED) {
        text += "<b>" + comparison.getSimilarity() + "</b>";
      } else {
        text += "<b>" + comparisonStatus + "</b>";
      }
      HTML similarity = new HTML(text);
      pairwiseComparisonPanel.add(similarity);
      pairwiseComparisonPanel.setCellVerticalAlignment(
          similarity, HasVerticalAlignment.ALIGN_MIDDLE);

      comparisonsPanel.add(pairwiseComparisonPanel);
    }
  }
示例#2
0
文件: Toolbar.java 项目: ltly/firefly
    public CmdButton(String name, Widget icon, Command cmd, String label, String desc) {
      this.name = name;
      this.command = cmd;
      this.name = name;
      String htmlstr = label == null ? name : label;
      html = new HTML(htmlstr);
      if (desc != null) {
        html.setTitle(desc);
      }
      this.command = cmd;
      html.setWordWrap(false);
      if (command instanceof GeneralCommand) {
        addListeners();
        setButtonEnabled(((GeneralCommand) command).isEnabled());
      }

      GwtUtil.setStyles(iconHolderLeft, "padding", "none", "marginRight", "3px");
      GwtUtil.setStyle(html, "padding", "6px 0");
      container = GwtUtil.makeHoriPanel(null, null, iconHolderLeft, html, iconHolderRight);
      container.setCellVerticalAlignment(iconHolderLeft, VerticalPanel.ALIGN_MIDDLE);
      container.setCellVerticalAlignment(iconHolderRight, VerticalPanel.ALIGN_MIDDLE);
      setIconLeft(icon);
      setIconRight(null);
      GwtUtil.setStyle(container, "margin", "0px auto");
      initWidget(new SimplePanel(container));
    }
  public ConfigurationDialog(OkCancelDialogCallback callback) {
    setText("Configuration");
    setModal(true);
    this.okCancelDialogCallback = callback;

    setHTML("New dialog");

    VerticalPanel verticalPanel = new VerticalPanel();
    setWidget(verticalPanel);
    verticalPanel.setSize("100%", "100%");

    HorizontalPanel horizontalPanel = new HorizontalPanel();
    verticalPanel.add(horizontalPanel);
    verticalPanel.setCellHeight(horizontalPanel, "100%");
    verticalPanel.setCellWidth(horizontalPanel, "100%");
    horizontalPanel.setSize("324px", "29px");

    Label lblBrokerUrl = new Label("Broker url: ");
    horizontalPanel.add(lblBrokerUrl);

    final TextBox txtBrokerUrl = new TextBox();
    horizontalPanel.add(txtBrokerUrl);

    HorizontalPanel horizontalPanel_1 = new HorizontalPanel();
    verticalPanel.add(horizontalPanel_1);
    verticalPanel.setCellWidth(horizontalPanel_1, "100%");
    verticalPanel.setCellHorizontalAlignment(
        horizontalPanel_1, HasHorizontalAlignment.ALIGN_CENTER);

    Button btnAcept = new Button("Acept");
    btnAcept.addClickHandler(
        new ClickHandler() {
          public void onClick(ClickEvent event) {
            okCancelDialogCallback.okButtonClick(txtBrokerUrl.getText());
            hide();
          }
        });
    horizontalPanel_1.add(btnAcept);
    horizontalPanel_1.setCellVerticalAlignment(btnAcept, HasVerticalAlignment.ALIGN_MIDDLE);

    Button btnCancel = new Button("Cancel");
    btnCancel.addClickHandler(
        new ClickHandler() {
          public void onClick(ClickEvent event) {
            okCancelDialogCallback.cancelButtonClick();
            hide();
          }
        });
    horizontalPanel_1.add(btnCancel);
    horizontalPanel_1.setCellVerticalAlignment(btnCancel, HasVerticalAlignment.ALIGN_MIDDLE);
    horizontalPanel_1.setCellHorizontalAlignment(btnCancel, HasHorizontalAlignment.ALIGN_RIGHT);
  }
示例#4
0
  private void createRepeatWeeklyPanel(VerticalPanel verticalPanel) {
    HorizontalPanel horizontalPanel = new HorizontalPanel();
    verticalPanel.add(horizontalPanel);
    horizontalPanel.setWidth("239px");
    Label lblRepeatOn = new Label(myConstants.repeatOn() + ":");
    lblRepeatOn.setStyleName("gwt-Label-Header");
    horizontalPanel.add(lblRepeatOn);
    horizontalPanel.setCellVerticalAlignment(lblRepeatOn, HasVerticalAlignment.ALIGN_MIDDLE);
    lblRepeatOn.setSize("82px", "19px");

    WeekDayPanel weekDay = new WeekDayPanel(true, schedule);
    horizontalPanel.add(weekDay);
    horizontalPanel.setCellVerticalAlignment(weekDay, HasVerticalAlignment.ALIGN_MIDDLE);
  }
示例#5
0
  public PasswordWidget() {

    Label ls1 = new Label("Password");
    Label ls2 = new Label("Verify Password");

    HorizontalPanel hpS1 = new HorizontalPanel();
    hpS1.setSpacing(4);
    hpS1.add(ls1);
    hpS1.add(tbS1);
    hpS1.add(pSecretCount1);

    // secret 2
    HorizontalPanel hpS2 = new HorizontalPanel();
    hpS2.setSpacing(4);
    hpS2.add(ls2);
    hpS2.add(tbS2);
    hpS2.add(pSecretCount2);

    // secret container
    pSecret.add(pSecretError);
    pSecret.add(hpS1);
    pSecret.add(hpS2);

    pSecretCount1.add(new HTML("0"));
    pSecretCount2.add(new HTML("0"));

    pWidget.add(pSecret);

    initWidget(pWidget);

    tbS1.setWidth("300px");
    tbS2.setWidth("300px");

    tbS1.addChangeHandler(this);
    tbS2.addChangeHandler(this);
    tbS1.addKeyPressHandler(this);
    tbS2.addKeyPressHandler(this);

    pSecretError.addStyleName("core-CreateUserAccount-Error");
    hpS1.setCellVerticalAlignment(ls1, VerticalPanel.ALIGN_MIDDLE);
    hpS2.setCellVerticalAlignment(ls2, VerticalPanel.ALIGN_MIDDLE);
    hpS1.setCellVerticalAlignment(pSecretCount1, VerticalPanel.ALIGN_MIDDLE);
    hpS2.setCellVerticalAlignment(pSecretCount2, VerticalPanel.ALIGN_MIDDLE);
    pSecretCount1.setStyleName("core-CreateUserAccount-CharCountError");
    pSecretCount2.setStyleName("core-CreateUserAccount-CharCountError");
    ls1.setStyleName("core-CreateUserAccount-Field");
    ls2.setStyleName("core-CreateUserAccount-Field");
  }
示例#6
0
  public MainPanel() {
    super(Unit.PX);

    Image logoUfcg = new Image(Adicionais.RESOURCES.logoUfcg());
    Image logoAdicionais = new Image(Adicionais.RESOURCES.logoAdicionais());
    HorizontalPanel header = new HorizontalPanel();
    header.add(logoUfcg);
    header.setCellVerticalAlignment(logoUfcg, HasVerticalAlignment.ALIGN_MIDDLE);
    header.add(logoAdicionais);
    header.setCellHorizontalAlignment(logoAdicionais, HasHorizontalAlignment.ALIGN_RIGHT);
    header.setWidth("100%");
    header.setStyleName(Adicionais.RESOURCES.css().header());
    this.addNorth(header, 88);

    VerticalPanel footer = new VerticalPanel();
    Label developersLabel =
        new Label("Desenvolvido por Cleber Gonçalves de Sousa e Vitor Morato Almeida");
    developersLabel.setStyleName(Adicionais.RESOURCES.css().developers());
    footer.add(developersLabel);

    this.addSouth(footer, 23);
    footer.setWidth("100%");
    footer.setStyleName(Adicionais.RESOURCES.css().footer());

    this.contentArea = new SimplePanel();
    this.contentArea.setStyleName(Adicionais.RESOURCES.css().content());
    this.add(this.contentArea);
  }
  private VerticalPanel getPanel() {
    VerticalPanel panel = new VerticalPanel();
    panel.setStyleName("StudioPopup");

    VerticalPanel info = new VerticalPanel();
    info.setSpacing(10);

    Label lbl = new Label();
    lbl.setStyleName("StudioPopup-Msg-Strong");
    lbl.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
    lbl.setText("Add Value");

    Label lblName = new Label();
    lblName.setStyleName("StudioPopup-Msg");
    lblName.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    lblName.setText("Value");

    enumValue = new TextBox();
    enumValue.setWidth("155px");

    HorizontalPanel namePanel = new HorizontalPanel();
    namePanel.setSpacing(10);
    namePanel.add(lblName);
    namePanel.add(enumValue);
    namePanel.setCellVerticalAlignment(lblName, HasVerticalAlignment.ALIGN_MIDDLE);

    info.add(lbl);
    info.add(namePanel);

    panel.add(info);
    panel.add(getButtonPanel());

    return panel;
  }
示例#8
0
  /**
   * Maak een nieuw infopanel.
   *
   * @param message Het weer te geven bericht
   */
  public InfoPanel(String message) {
    HorizontalPanel container = new HorizontalPanel();
    Image imgInfo = new Image(Resources.INSTANCE.icon_info());
    lblMessage.setHTML(message);

    container.add(imgInfo);
    container.add(lblMessage);
    container.setCellWidth(imgInfo, "70px");
    container.setCellHorizontalAlignment(imgInfo, HasHorizontalAlignment.ALIGN_CENTER);
    container.setCellVerticalAlignment(lblMessage, HasVerticalAlignment.ALIGN_MIDDLE);
    container.setCellVerticalAlignment(imgInfo, HasVerticalAlignment.ALIGN_MIDDLE);

    initWidget(container);
    setStyleName("infopanel");
    setSize("480px", "60px");
  }
示例#9
0
  /**
   * Add in a collection of buttons assembled as a ToolbarGroup
   *
   * @param group ToolbarGroup to add.
   */
  public void add(ToolbarGroup group) {

    // check to see if there's already a separator added before this group
    if (!(bar.getWidget(bar.getWidgetCount() - 1) instanceof Image)) {
      bar.add(group.getLeadingSeparator());
      bar.setCellVerticalAlignment(group.getLeadingSeparator(), ALIGN_MIDDLE);
    }

    // if the group has a label tag, add it before the buttons
    if (group.getLabel() != null) {
      bar.add(group.getGroupLabel());
      bar.setCellVerticalAlignment(group.getGroupLabel(), ALIGN_MIDDLE);
    }

    // add the buttons to the bar and buttons collection
    for (ToolbarButton btn : group.getButtons()) {
      bar.add(btn.getPushButton());
    }
    bar.add(group.getTrailingSeparator());
    bar.setCellVerticalAlignment(group.getTrailingSeparator(), ALIGN_MIDDLE);
    groups.add(group);
  }
示例#10
0
  /** Status */
  public Status() {
    super(false, true);
    hPanel = new HorizontalPanel();
    image = new Image(OKMBundleResources.INSTANCE.indicator());
    msg = new HTML("");
    space = new HTML("");

    hPanel.add(image);
    hPanel.add(msg);
    hPanel.add(space);

    hPanel.setCellVerticalAlignment(image, HasAlignment.ALIGN_MIDDLE);
    hPanel.setCellVerticalAlignment(msg, HasAlignment.ALIGN_MIDDLE);
    hPanel.setCellHorizontalAlignment(image, HasAlignment.ALIGN_CENTER);
    hPanel.setCellWidth(image, "30px");
    hPanel.setCellWidth(space, "7px");

    hPanel.setHeight("25px");

    msg.setStyleName("okm-NoWrap");

    super.hide();
    setWidget(hPanel);
  }
示例#11
0
 /**
  * Add a special element to the toolbar. Support for separator and glue.
  *
  * @param key id of element to add
  */
 public void add(int key) {
   switch (key) {
     case Toolbar.SEPARATOR:
       Image img = new Image("style/images/toolbarDivider.png"); // $NON-NLS-1$
       bar.add(img);
       bar.setCellVerticalAlignment(img, ALIGN_MIDDLE);
       break;
     case Toolbar.GLUE:
       SimplePanel panel = new SimplePanel();
       bar.add(panel);
       bar.setCellWidth(panel, "100%"); // $NON-NLS-1$
       break;
     default:
       // add error logging message
   }
 }
  /** constructor */
  public LoginUiHorizontal() {

    HorizontalPanel hp = new HorizontalPanel();
    hp.add(wLoading);
    hp.add(pUi);

    pWidget.add(hp);

    initWidget(pWidget);

    // observers
    bLogin.addClickListener(this);
    bForgot.addClickListener(this);

    tbConsumerKey.addClickListener(this);
    tbConsumerKey.addChangeListener(this);
    tbConsumerKey.addKeyboardListener(this);
    tbConsumerKey.addFocusListener(this);

    tbConsumerSecret.addClickListener(this);
    tbConsumerSecret.addChangeListener(this);
    tbConsumerSecret.addKeyboardListener(this);
    tbConsumerSecret.addFocusListener(this);

    tbConsumerSecretPass.addClickListener(this);
    tbConsumerSecretPass.addChangeListener(this);
    tbConsumerSecretPass.addKeyboardListener(this);
    tbConsumerSecretPass.addFocusListener(this);

    cbRemberMe.addKeyboardListener(this);
    cbRemberMe.addClickListener(this);

    hAccountLogin.addClickListener(this);
    hForgotPassword.addClickListener(this);

    // style
    pWidget.setStyleName("login-Ui");

    // defaults
    pError.setVisible(false);

    hp.setCellVerticalAlignment(wLoading, VerticalPanel.ALIGN_MIDDLE);

    // debug
    // pWidget.addStyleName("test2");

  }
  private void drawForgotPassword() {

    // reset ui
    pUi.clear();

    bForgot.setTitle(
        "This will reset your password, and send you a email of the new password to login.");

    HorizontalPanel hp = new HorizontalPanel();
    hp.setSpacing(4);
    hp.add(tbConsumerKey);
    hp.add(bForgot);
    hp.add(hAccountLogin);

    pUi.add(hp);

    // style
    hForgotPassword.addStyleName("login-Ui-InputOptions");
    hp.setCellVerticalAlignment(hAccountLogin, VerticalPanel.ALIGN_BOTTOM);
  }
示例#14
0
  public AddDesigner() {

    mainPanel = new HorizontalPanel();
    addDesignerPanel = new VerticalPanel();
    addDesignerPanel.setSpacing(10);
    addDesignerPanel.setWidth("700px");

    formPanel = new FormPanel();
    System.err.println(GWT.getModuleBaseURL());
    formPanel.setAction(GWT.getModuleBaseURL() + "addStuffServlet");
    formPanel.setEncoding(FormPanel.ENCODING_MULTIPART);
    formPanel.setMethod(FormPanel.METHOD_GET);
    formPanel.setWidget(mainPanel);
    formPanel.addFormHandler(
        new FormHandler() {

          public void onSubmit(final FormSubmitEvent event) {
            if (designerBox.getText().length() == 0) {
              Window.alert("Campo Desenhista está vazio");
              event.setCancelled(true);
              return;
            }
          }

          public void onSubmitComplete(FormSubmitCompleteEvent arg0) {
            Window.alert("Novo Desenhista cadastrado com sucesso");
            designerBox.setText("");
            titleTree.clear();

            if (titleService == null) {
              titleService = GWT.create(TitleService.class);
            }

            AsyncCallback<ArrayList<Designer>> callback =
                new AsyncCallback<ArrayList<Designer>>() {

                  public void onFailure(Throwable caught) {

                    Window.alert("DEU PAU!!!");
                  }

                  public void onSuccess(ArrayList<Designer> result) {

                    for (int i = 0; i < result.size(); i++) {
                      Designer title = result.get(i);
                      titleTree.addItem(title.getDesigner());
                    }
                  }
                };

            titleService.getDesignerList(callback);
          }
        });

    /* Escritor */
    designerPanel = new HorizontalPanel();
    designerPanel.setSpacing(5);
    designerLabel = new Label("Desenhista: ");
    designerPanel.add(designerLabel);
    designerPanel.setCellHorizontalAlignment(designerLabel, HorizontalPanel.ALIGN_LEFT);
    designerPanel.setCellVerticalAlignment(designerLabel, VerticalPanel.ALIGN_MIDDLE);
    designerBox = new TextBox();
    designerBox.setName("designer");
    designerPanel.add(designerBox);
    designerPanel.setCellHorizontalAlignment(designerBox, HorizontalPanel.ALIGN_LEFT);
    designerPanel.setCellVerticalAlignment(designerBox, VerticalPanel.ALIGN_MIDDLE);

    /* OK */
    okPanel = new HorizontalPanel();
    okPanel.setSpacing(10);
    okButton = new Button();
    okButton.setText("Cadastra");
    okButton.addClickListener(
        new ClickListener() {
          public void onClick(Widget sender) {
            formPanel.submit();
          }
        });

    okPanel.add(okButton);
    okPanel.setCellHorizontalAlignment(okButton, HorizontalPanel.ALIGN_CENTER);
    okPanel.setCellVerticalAlignment(okButton, VerticalPanel.ALIGN_MIDDLE);

    if (titleService == null) {
      titleService = GWT.create(TitleService.class);
    }

    titleTree = new Tree();
    titleTree.setAnimationEnabled(true);

    AsyncCallback<ArrayList<Designer>> callback =
        new AsyncCallback<ArrayList<Designer>>() {

          public void onFailure(Throwable caught) {

            Window.alert("DEU PAU!!!");
          }

          public void onSuccess(ArrayList<Designer> result) {

            for (int i = 0; i < result.size(); i++) {
              Designer title = result.get(i);
              titleTree.addItem(title.getDesigner());
            }
          }
        };

    titleService.getDesignerList(callback);

    addDesignerPanel.add(designerPanel);
    addDesignerPanel.add(okPanel);
    mainPanel.add(addDesignerPanel);
    mainPanel.add(titleTree);

    initWidget(formPanel);
  }
  private void drawLoginInputs() {

    // default
    tbConsumerSecret.setVisible(true);
    tbConsumerSecretPass.setVisible(false);

    // reset ui
    pUi.clear();

    cbRemberMe.setText("Remember Me");

    hAccountCreate = new Hyperlink("Create Account", "account_Create");

    tbConsumerKey.setTitle(inputLabel_ConsumerKey);
    tbConsumerSecret.setTitle(inputLabel_consumerSecret);
    tbConsumerSecretPass.setTitle(inputLabel_consumerSecret);

    // hide loading by default
    hideLoading();

    // main login inputs
    HorizontalPanel ploginItems = new HorizontalPanel();
    ploginItems.setWidth("100%");
    ploginItems.add(tbConsumerKey);
    ploginItems.add(tbConsumerSecret);
    ploginItems.add(tbConsumerSecretPass);
    ploginItems.add(bLogin);

    // login options
    HorizontalPanel pOptions = new HorizontalPanel();
    // pOptions.setSpacing(4);
    pOptions.add(cbRemberMe);
    pOptions.add(hForgotPassword);
    pOptions.add(hAccountCreate);

    VerticalPanel vp = new VerticalPanel();
    vp.setWidth("100%");
    vp.add(ploginItems);
    vp.add(pOptions);

    // TODO - move this to a floating overlay
    vp.add(pError);

    pUi.add(vp);

    drawInputLabel_key();
    drawInputLabel_secret();

    tbConsumerKey.addStyleName("login-Ui-InputConsumerKey");
    tbConsumerSecret.addStyleName("login-Ui-InputConsumerSecret");
    tbConsumerSecretPass.addStyleName("login-Ui-InputConsumerSecret");
    pOptions.setCellHorizontalAlignment(hForgotPassword, HorizontalPanel.ALIGN_RIGHT);
    pOptions.setCellHorizontalAlignment(hAccountCreate, HorizontalPanel.ALIGN_RIGHT);
    pOptions.setCellVerticalAlignment(hForgotPassword, VerticalPanel.ALIGN_BOTTOM);
    pOptions.setCellVerticalAlignment(hAccountCreate, VerticalPanel.ALIGN_BOTTOM);
    pOptions.addStyleName("login-Ui-InputOptions");
    pOptions.setWidth("100%");

    // vp.addStyleName("test1");
    // pOptions.addStyleName("test2");
  }
  public com.google.gwt.user.client.ui.Widget createAndBindUi(
      final com.rhiscom.bpm.console.client.ui.quadrature.CuadraturaPagosCMRViewImpl owner) {

    com.rhiscom.bpm.console.client.ui.quadrature.CuadraturaPagosCMRViewImpl_BinderImpl_GenBundle
        clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay =
            (com.rhiscom.bpm.console.client.ui.quadrature
                    .CuadraturaPagosCMRViewImpl_BinderImpl_GenBundle)
                GWT.create(
                    com.rhiscom.bpm.console.client.ui.quadrature
                        .CuadraturaPagosCMRViewImpl_BinderImpl_GenBundle.class);
    com.rhiscom.bpm.console.client.ui.quadrature.CuadraturaPagosCMRViewImpl_BinderImpl_GenCss_style
        style = clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style();
    java.lang.String domId0 = com.google.gwt.dom.client.Document.get().createUniqueId();
    com.google.gwt.user.client.ui.Label title =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HTMLPanel htmlPanel =
        new com.google.gwt.user.client.ui.HTMLPanel(
            template
                .html1(
                    "" + style.titleBackground() + "",
                    "" + style.titleBackgroundPosition() + "",
                    domId0)
                .asString());
    com.google.gwt.user.client.ui.Label lblError =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel3 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label6 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.ListBox sucursalSeleccionada =
        (com.google.gwt.user.client.ui.ListBox)
            GWT.create(com.google.gwt.user.client.ui.ListBox.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel5 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label8 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.datepicker.client.DateBox dateOfBusinessDateBox =
        owner.dateOfBusinessDateBox;
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel7 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.Button filterButton =
        (com.google.gwt.user.client.ui.Button)
            GWT.create(com.google.gwt.user.client.ui.Button.class);
    com.google.gwt.user.client.ui.Button excelButton =
        (com.google.gwt.user.client.ui.Button)
            GWT.create(com.google.gwt.user.client.ui.Button.class);
    com.google.gwt.user.client.ui.Label f_Label10 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblVersionPOS =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel9 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel4 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label14 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label f_Label15 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel13 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label18 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblPagoNormal =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel17 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label20 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblPagoRepactado =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel19 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label22 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblPagoAnulado =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel21 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label24 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalPagos =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel23 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel16 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel12 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label27 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label f_Label28 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel26 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label30 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalAbonos =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel29 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label32 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalAbonoNormal =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel31 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel33 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label35 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalAbonosSCTFA =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel34 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel25 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label38 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label f_Label39 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel37 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label41 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTrx217 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel40 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label43 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTrx402 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel42 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label45 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel44 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label47 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalCRCMR =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel46 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel36 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel11 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label51 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label f_Label52 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel50 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label54 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalPagosSAT =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel53 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label56 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalAnulacionesSAT =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel55 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label58 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel57 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label60 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalFinalSAT =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel59 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel49 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label63 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label f_Label64 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel62 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label66 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalPagosRSAT =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel65 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label68 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalAnulacionesRSAT =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel67 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label70 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel69 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.Label f_Label72 =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.Label lblTotalFinalRSAT =
        (com.google.gwt.user.client.ui.Label) GWT.create(com.google.gwt.user.client.ui.Label.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel71 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel61 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel73 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel48 =
        (com.google.gwt.user.client.ui.HorizontalPanel)
            GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel2 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 =
        (com.google.gwt.user.client.ui.VerticalPanel)
            GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);

    title.setStyleName("" + style.title() + "");
    title.setText("Cuadratura Pagos CMR");
    htmlPanel.setWidth("100%");
    f_VerticalPanel2.add(htmlPanel);
    f_HorizontalPanel3.setHorizontalAlignment(
        com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_CENTER);
    lblError.setStyleName("lblError");
    lblError.setHorizontalAlignment(
        com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_CENTER);
    lblError.setWidth("99%");
    lblError.setText("Debe ingresar fecha de negocio");
    lblError.setHeight("20px");
    f_HorizontalPanel3.add(lblError);
    f_HorizontalPanel3.setWidth("100%");
    f_VerticalPanel2.add(f_HorizontalPanel3);
    f_Label6.setWidth("100px");
    f_Label6.setText("Sucursal");
    f_Label6.setHeight("");
    f_VerticalPanel5.add(f_Label6);
    sucursalSeleccionada.setWidth("100px");
    sucursalSeleccionada.setHeight("25px");
    f_VerticalPanel5.add(sucursalSeleccionada);
    f_HorizontalPanel4.add(f_VerticalPanel5);
    f_Label8.setText("Fecha de negocio");
    f_VerticalPanel7.add(f_Label8);
    f_VerticalPanel7.add(dateOfBusinessDateBox);
    f_HorizontalPanel4.add(f_VerticalPanel7);
    filterButton.setText("Buscar");
    f_HorizontalPanel4.add(filterButton);
    excelButton.setText("Exportar");
    f_HorizontalPanel4.add(excelButton);
    f_Label10.setText("Versión");
    f_VerticalPanel9.add(f_Label10);
    lblVersionPOS.setStyleName("" + style.secondTitle() + "");
    lblVersionPOS.setWidth("100px");
    lblVersionPOS.setHeight("25px");
    f_VerticalPanel9.add(lblVersionPOS);
    f_HorizontalPanel4.add(f_VerticalPanel9);
    f_HorizontalPanel4.setStyleName("" + style.filters() + "");
    f_HorizontalPanel4.setWidth("100%");
    f_VerticalPanel2.add(f_HorizontalPanel4);
    f_Label14.setStyleName("" + style.secondTitle() + "");
    f_Label14.setText("PLACUAD");
    f_VerticalPanel13.add(f_Label14);
    f_Label15.setStyleName("" + style.secondTitle() + "");
    f_Label15.setWidth("100%");
    f_Label15.setText("CMR");
    f_VerticalPanel13.add(f_Label15);
    f_VerticalPanel13.setWidth("100%");
    f_VerticalPanel12.add(f_VerticalPanel13);
    f_Label18.setHorizontalAlignment(
        com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_LEFT);
    f_Label18.setWidth("215px");
    f_Label18.setText("Pago Normal");
    f_Label18.setHeight("25px");
    f_HorizontalPanel17.add(f_Label18);
    f_HorizontalPanel17.setCellVerticalAlignment(
        f_Label18, com.google.gwt.user.client.ui.HasVerticalAlignment.ALIGN_MIDDLE);
    lblPagoNormal.setWidth("100px");
    lblPagoNormal.setHeight("25px");
    f_HorizontalPanel17.add(lblPagoNormal);
    f_HorizontalPanel17.setCellHorizontalAlignment(
        lblPagoNormal, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel17.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel17.setWidth("100%");
    f_VerticalPanel16.add(f_HorizontalPanel17);
    f_Label20.setWidth("215px");
    f_Label20.setText("Pago Repactado");
    f_Label20.setHeight("25px");
    f_HorizontalPanel19.add(f_Label20);
    lblPagoRepactado.setWidth("100px");
    lblPagoRepactado.setHeight("25px");
    f_HorizontalPanel19.add(lblPagoRepactado);
    f_HorizontalPanel19.setCellHorizontalAlignment(
        lblPagoRepactado, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel19.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel19.setWidth("100%");
    f_VerticalPanel16.add(f_HorizontalPanel19);
    f_Label22.setWidth("215px");
    f_Label22.setText("Pagos Anulados");
    f_Label22.setHeight("25px");
    f_HorizontalPanel21.add(f_Label22);
    lblPagoAnulado.setWidth("100px");
    lblPagoAnulado.setHeight("25px");
    f_HorizontalPanel21.add(lblPagoAnulado);
    f_HorizontalPanel21.setCellHorizontalAlignment(
        lblPagoAnulado, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel21.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel21.setWidth("100%");
    f_VerticalPanel16.add(f_HorizontalPanel21);
    f_Label24.setStyleName("" + style.redTitle() + "");
    f_Label24.setWidth("215px");
    f_Label24.setText("Total Pagos");
    f_Label24.setHeight("25px");
    f_HorizontalPanel23.add(f_Label24);
    lblTotalPagos.setStyleName("" + style.redTitle() + "");
    lblTotalPagos.setWidth("100px");
    lblTotalPagos.setHeight("25px");
    f_HorizontalPanel23.add(lblTotalPagos);
    f_HorizontalPanel23.setCellHorizontalAlignment(
        lblTotalPagos, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel23.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel23.setWidth("100%");
    f_VerticalPanel16.add(f_HorizontalPanel23);
    f_VerticalPanel16.setWidth("100%");
    f_VerticalPanel12.add(f_VerticalPanel16);
    f_VerticalPanel12.setStyleName("" + style.borderDecorator() + "");
    f_VerticalPanel12.setWidth("350px");
    f_HorizontalPanel11.add(f_VerticalPanel12);
    f_Label27.setStyleName("" + style.secondTitle() + "");
    f_Label27.setText("SCTFA");
    f_VerticalPanel26.add(f_Label27);
    f_Label28.setStyleName("" + style.secondTitle() + "");
    f_Label28.setWidth("100%");
    f_Label28.setText("CMR");
    f_VerticalPanel26.add(f_Label28);
    f_VerticalPanel26.setWidth("100%");
    f_VerticalPanel25.add(f_VerticalPanel26);
    f_Label30.setWidth("215px");
    f_Label30.setText("Total Abonos");
    f_Label30.setHeight("25px");
    f_HorizontalPanel29.add(f_Label30);
    f_HorizontalPanel29.setCellWidth(f_Label30, "150px");
    f_HorizontalPanel29.setCellHeight(f_Label30, "25px");
    lblTotalAbonos.setWidth("100px");
    lblTotalAbonos.setHeight("25px");
    f_HorizontalPanel29.add(lblTotalAbonos);
    f_HorizontalPanel29.setCellHorizontalAlignment(
        lblTotalAbonos, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel29.setCellWidth(lblTotalAbonos, "150px");
    f_HorizontalPanel29.setCellHeight(lblTotalAbonos, "25px");
    f_HorizontalPanel29.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel29.setWidth("100%");
    f_VerticalPanel25.add(f_HorizontalPanel29);
    f_Label32.setWidth("215px");
    f_Label32.setText("Total Anulación Abono Normal");
    f_Label32.setHeight("25px");
    f_HorizontalPanel31.add(f_Label32);
    lblTotalAbonoNormal.setHorizontalAlignment(
        com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    lblTotalAbonoNormal.setWidth("100px");
    lblTotalAbonoNormal.setHeight("25px");
    f_HorizontalPanel31.add(lblTotalAbonoNormal);
    f_HorizontalPanel31.setCellHorizontalAlignment(
        lblTotalAbonoNormal, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel31.setCellWidth(lblTotalAbonoNormal, "150px");
    f_HorizontalPanel31.setCellHeight(lblTotalAbonoNormal, "25px");
    f_HorizontalPanel31.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel31.setWidth("100%");
    f_VerticalPanel25.add(f_HorizontalPanel31);
    f_HorizontalPanel33.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel33.setWidth("100%");
    f_HorizontalPanel33.setHeight("25px");
    f_VerticalPanel25.add(f_HorizontalPanel33);
    f_Label35.setStyleName("" + style.redTitle() + "");
    f_Label35.setWidth("215px");
    f_Label35.setText("Total Abonos");
    f_Label35.setHeight("25px");
    f_HorizontalPanel34.add(f_Label35);
    f_HorizontalPanel34.setCellWidth(f_Label35, "198px");
    f_HorizontalPanel34.setCellHeight(f_Label35, "25px");
    lblTotalAbonosSCTFA.setStyleName("" + style.redTitle() + "");
    lblTotalAbonosSCTFA.setWidth("100px");
    lblTotalAbonosSCTFA.setHeight("25px");
    f_HorizontalPanel34.add(lblTotalAbonosSCTFA);
    f_HorizontalPanel34.setCellHorizontalAlignment(
        lblTotalAbonosSCTFA, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel34.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel34.setWidth("100%");
    f_VerticalPanel25.add(f_HorizontalPanel34);
    f_VerticalPanel25.setStyleName("" + style.borderDecorator() + "");
    f_VerticalPanel25.setWidth("350px");
    f_HorizontalPanel11.add(f_VerticalPanel25);
    f_VerticalPanel36.setHorizontalAlignment(
        com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_LEFT);
    f_Label38.setStyleName("" + style.secondTitle() + "");
    f_Label38.setText("CRCMR");
    f_VerticalPanel37.add(f_Label38);
    f_Label39.setStyleName("" + style.secondTitle() + "");
    f_Label39.setText("CMR");
    f_VerticalPanel37.add(f_Label39);
    f_VerticalPanel37.setWidth("100%");
    f_VerticalPanel36.add(f_VerticalPanel37);
    f_Label41.setWidth("215px");
    f_Label41.setText("TRX 217 y 238");
    f_Label41.setHeight("25px");
    f_HorizontalPanel40.add(f_Label41);
    lblTrx217.setWidth("100px");
    lblTrx217.setHeight("25px");
    f_HorizontalPanel40.add(lblTrx217);
    f_HorizontalPanel40.setCellHorizontalAlignment(
        lblTrx217, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel40.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel40.setWidth("100%");
    f_VerticalPanel36.add(f_HorizontalPanel40);
    f_Label43.setWidth("215px");
    f_Label43.setText("TRX 402 y 401");
    f_Label43.setHeight("25px");
    f_HorizontalPanel42.add(f_Label43);
    lblTrx402.setWidth("100px");
    lblTrx402.setHeight("25px");
    f_HorizontalPanel42.add(lblTrx402);
    f_HorizontalPanel42.setCellHorizontalAlignment(
        lblTrx402, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel42.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel42.setWidth("100%");
    f_VerticalPanel36.add(f_HorizontalPanel42);
    f_Label45.setWidth("40%");
    f_Label45.setHeight("25px");
    f_HorizontalPanel44.add(f_Label45);
    f_HorizontalPanel44.setCellHorizontalAlignment(
        f_Label45, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel44.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel44.setWidth("100%");
    f_VerticalPanel36.add(f_HorizontalPanel44);
    f_Label47.setStyleName("" + style.redTitle() + "");
    f_Label47.setWidth("215px");
    f_Label47.setText("Total Abonos");
    f_Label47.setHeight("25px");
    f_HorizontalPanel46.add(f_Label47);
    lblTotalCRCMR.setStyleName("" + style.redTitle() + "");
    lblTotalCRCMR.setWidth("100px");
    lblTotalCRCMR.setHeight("25px");
    f_HorizontalPanel46.add(lblTotalCRCMR);
    f_HorizontalPanel46.setCellHorizontalAlignment(
        lblTotalCRCMR, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel46.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel46.setWidth("100%");
    f_VerticalPanel36.add(f_HorizontalPanel46);
    f_VerticalPanel36.setStyleName("" + style.borderDecorator() + "");
    f_VerticalPanel36.setWidth("350px");
    f_HorizontalPanel11.add(f_VerticalPanel36);
    f_HorizontalPanel11.setSpacing(2);
    f_HorizontalPanel11.setWidth("100%");
    f_VerticalPanel2.add(f_HorizontalPanel11);
    f_VerticalPanel2.setCellWidth(f_HorizontalPanel11, "100%");
    f_Label51.setStyleName("" + style.secondTitle() + "");
    f_Label51.setText("");
    f_VerticalPanel50.add(f_Label51);
    f_Label52.setStyleName("" + style.secondTitle() + "");
    f_Label52.setText("SAT");
    f_VerticalPanel50.add(f_Label52);
    f_VerticalPanel50.setWidth("100%");
    f_VerticalPanel49.add(f_VerticalPanel50);
    f_Label54.setWidth("215px");
    f_Label54.setText("TRX 217 y 238");
    f_Label54.setHeight("25px");
    f_HorizontalPanel53.add(f_Label54);
    lblTotalPagosSAT.setWidth("100px");
    lblTotalPagosSAT.setHeight("25px");
    f_HorizontalPanel53.add(lblTotalPagosSAT);
    f_HorizontalPanel53.setCellHorizontalAlignment(
        lblTotalPagosSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel53.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel53.setWidth("100%");
    f_VerticalPanel49.add(f_HorizontalPanel53);
    f_Label56.setWidth("215px");
    f_Label56.setText("TRX 402 y 401");
    f_Label56.setHeight("25px");
    f_HorizontalPanel55.add(f_Label56);
    lblTotalAnulacionesSAT.setWidth("100px");
    lblTotalAnulacionesSAT.setHeight("25px");
    f_HorizontalPanel55.add(lblTotalAnulacionesSAT);
    f_HorizontalPanel55.setCellHorizontalAlignment(
        lblTotalAnulacionesSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel55.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel55.setWidth("100%");
    f_VerticalPanel49.add(f_HorizontalPanel55);
    f_Label58.setWidth("40%");
    f_Label58.setHeight("25px");
    f_HorizontalPanel57.add(f_Label58);
    f_HorizontalPanel57.setCellHorizontalAlignment(
        f_Label58, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel57.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel57.setWidth("100%");
    f_VerticalPanel49.add(f_HorizontalPanel57);
    f_Label60.setStyleName("" + style.redTitle() + "");
    f_Label60.setWidth("215px");
    f_Label60.setText("Total Abonos");
    f_Label60.setHeight("25px");
    f_HorizontalPanel59.add(f_Label60);
    lblTotalFinalSAT.setStyleName("" + style.redTitle() + "");
    lblTotalFinalSAT.setWidth("100px");
    lblTotalFinalSAT.setHeight("25px");
    f_HorizontalPanel59.add(lblTotalFinalSAT);
    f_HorizontalPanel59.setCellHorizontalAlignment(
        lblTotalFinalSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel59.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel59.setWidth("100%");
    f_VerticalPanel49.add(f_HorizontalPanel59);
    f_VerticalPanel49.setStyleName("" + style.borderDecorator() + "");
    f_VerticalPanel49.setWidth("350px");
    f_HorizontalPanel48.add(f_VerticalPanel49);
    f_Label63.setStyleName("" + style.secondTitle() + "");
    f_Label63.setText("");
    f_VerticalPanel62.add(f_Label63);
    f_Label64.setStyleName("" + style.secondTitle() + "");
    f_Label64.setText("RSAT");
    f_VerticalPanel62.add(f_Label64);
    f_VerticalPanel62.setWidth("100%");
    f_VerticalPanel61.add(f_VerticalPanel62);
    f_Label66.setWidth("215px");
    f_Label66.setText("TRX 217 y 238");
    f_Label66.setHeight("25px");
    f_HorizontalPanel65.add(f_Label66);
    lblTotalPagosRSAT.setWidth("100px");
    lblTotalPagosRSAT.setHeight("25px");
    f_HorizontalPanel65.add(lblTotalPagosRSAT);
    f_HorizontalPanel65.setCellHorizontalAlignment(
        lblTotalPagosRSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel65.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel65.setWidth("100%");
    f_VerticalPanel61.add(f_HorizontalPanel65);
    f_Label68.setWidth("215px");
    f_Label68.setText("TRX 402 y 401");
    f_Label68.setHeight("25px");
    f_HorizontalPanel67.add(f_Label68);
    lblTotalAnulacionesRSAT.setWidth("100px");
    lblTotalAnulacionesRSAT.setHeight("25px");
    f_HorizontalPanel67.add(lblTotalAnulacionesRSAT);
    f_HorizontalPanel67.setCellHorizontalAlignment(
        lblTotalAnulacionesRSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel67.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel67.setWidth("100%");
    f_VerticalPanel61.add(f_HorizontalPanel67);
    f_Label70.setWidth("40%");
    f_Label70.setHeight("25px");
    f_HorizontalPanel69.add(f_Label70);
    f_HorizontalPanel69.setCellHorizontalAlignment(
        f_Label70, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel69.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel69.setWidth("100%");
    f_VerticalPanel61.add(f_HorizontalPanel69);
    f_Label72.setStyleName("" + style.redTitle() + "");
    f_Label72.setWidth("215px");
    f_Label72.setText("Total Abonos");
    f_Label72.setHeight("25px");
    f_HorizontalPanel71.add(f_Label72);
    lblTotalFinalRSAT.setStyleName("" + style.redTitle() + "");
    lblTotalFinalRSAT.setWidth("100px");
    lblTotalFinalRSAT.setHeight("25px");
    f_HorizontalPanel71.add(lblTotalFinalRSAT);
    f_HorizontalPanel71.setCellHorizontalAlignment(
        lblTotalFinalRSAT, com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_RIGHT);
    f_HorizontalPanel71.setStyleName("" + style.borderSimple() + "");
    f_HorizontalPanel71.setWidth("100%");
    f_VerticalPanel61.add(f_HorizontalPanel71);
    f_VerticalPanel61.setStyleName("" + style.borderDecorator() + "");
    f_VerticalPanel61.setWidth("350px");
    f_HorizontalPanel48.add(f_VerticalPanel61);
    f_VerticalPanel73.setHorizontalAlignment(
        com.google.gwt.user.client.ui.HasHorizontalAlignment.ALIGN_LEFT);
    f_VerticalPanel73.setWidth("350px");
    f_HorizontalPanel48.add(f_VerticalPanel73);
    f_HorizontalPanel48.setSpacing(2);
    f_HorizontalPanel48.setWidth("100%");
    f_VerticalPanel2.add(f_HorizontalPanel48);
    f_VerticalPanel2.setWidth("100%");
    f_VerticalPanel1.add(f_VerticalPanel2);
    f_VerticalPanel1.setWidth("100%");

    UiBinderUtil.TempAttachment attachRecord0 = UiBinderUtil.attachToDom(htmlPanel.getElement());
    com.google.gwt.user.client.Element domId0Element =
        com.google.gwt.dom.client.Document.get().getElementById(domId0).cast();
    attachRecord0.detach();
    htmlPanel.addAndReplaceElement(title, domId0Element);

    final com.google.gwt.event.dom.client.ClickHandler
        handlerMethodWithNameVeryUnlikelyToCollideWithUserFieldNames1 =
            new com.google.gwt.event.dom.client.ClickHandler() {
              public void onClick(com.google.gwt.event.dom.client.ClickEvent event) {
                owner.onClickCSV(event);
              }
            };
    filterButton.addClickHandler(handlerMethodWithNameVeryUnlikelyToCollideWithUserFieldNames1);

    final com.google.gwt.event.dom.client.ClickHandler
        handlerMethodWithNameVeryUnlikelyToCollideWithUserFieldNames2 =
            new com.google.gwt.event.dom.client.ClickHandler() {
              public void onClick(com.google.gwt.event.dom.client.ClickEvent event) {
                owner.onClickExcel(event);
              }
            };
    excelButton.addClickHandler(handlerMethodWithNameVeryUnlikelyToCollideWithUserFieldNames2);

    owner.filterButton = filterButton;
    owner.lblError = lblError;
    owner.lblPagoAnulado = lblPagoAnulado;
    owner.lblPagoNormal = lblPagoNormal;
    owner.lblPagoRepactado = lblPagoRepactado;
    owner.lblTotalAbonoNormal = lblTotalAbonoNormal;
    owner.lblTotalAbonos = lblTotalAbonos;
    owner.lblTotalAbonosSCTFA = lblTotalAbonosSCTFA;
    owner.lblTotalAnulacionesRSAT = lblTotalAnulacionesRSAT;
    owner.lblTotalAnulacionesSAT = lblTotalAnulacionesSAT;
    owner.lblTotalCRCMR = lblTotalCRCMR;
    owner.lblTotalFinalRSAT = lblTotalFinalRSAT;
    owner.lblTotalFinalSAT = lblTotalFinalSAT;
    owner.lblTotalPagos = lblTotalPagos;
    owner.lblTotalPagosRSAT = lblTotalPagosRSAT;
    owner.lblTotalPagosSAT = lblTotalPagosSAT;
    owner.lblTrx217 = lblTrx217;
    owner.lblTrx402 = lblTrx402;
    owner.lblVersionPOS = lblVersionPOS;
    owner.sucursalSeleccionada = sucursalSeleccionada;
    clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style().ensureInjected();

    return f_VerticalPanel1;
  }
  public CourseFinderDialog() {
    super(true, false);
    setText(MESSAGES.courseSelectionDialog());

    iFilter = new AriaTextBox();
    iFilter.setStyleName("gwt-SuggestBox");
    iFilter.getElement().getStyle().setWidth(600, Unit.PX);

    iFilterSelect = new AriaButton(MESSAGES.buttonSelect());
    iFilterSelect.addClickHandler(
        new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            CourseFinderTab tab = getSelectedTab();
            if (tab != null && tab.getValue() != null) iFilter.setValue((String) tab.getValue());
            hide();
            SelectionEvent.fire(CourseFinderDialog.this, getValue());
          }
        });

    HorizontalPanel filterWithSelect = new HorizontalPanel();
    filterWithSelect.add(iFilter);
    filterWithSelect.add(iFilterSelect);
    filterWithSelect.setCellVerticalAlignment(iFilter, HasVerticalAlignment.ALIGN_MIDDLE);
    filterWithSelect.setCellVerticalAlignment(iFilterSelect, HasVerticalAlignment.ALIGN_MIDDLE);
    iFilterSelect.getElement().getStyle().setMarginLeft(5, Unit.PX);

    iDialogPanel = new VerticalPanel();
    iDialogPanel.setSpacing(5);
    iDialogPanel.add(filterWithSelect);
    iDialogPanel.setCellHorizontalAlignment(filterWithSelect, HasHorizontalAlignment.ALIGN_CENTER);

    addCloseHandler(
        new CloseHandler<PopupPanel>() {
          public void onClose(CloseEvent<PopupPanel> event) {
            RootPanel.getBodyElement().getStyle().setOverflow(Overflow.AUTO);
          }
        });

    final Timer finderTimer =
        new Timer() {
          @Override
          public void run() {
            if (iTabs != null) {
              for (CourseFinderTab tab : iTabs) tab.setValue(iFilter.getValue(), false);
            }
          }
        };

    iFilter.addKeyUpHandler(
        new KeyUpHandler() {
          @Override
          public void onKeyUp(KeyUpEvent event) {
            finderTimer.schedule(250);
            if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
              CourseFinderTab tab = getSelectedTab();
              if (tab != null && tab.getValue() != null) iFilter.setValue((String) tab.getValue());
              hide();
              SelectionEvent.fire(CourseFinderDialog.this, getValue());
              return;
            } else if (event.getNativeKeyCode() == KeyCodes.KEY_ESCAPE) {
              hide();
              return;
            }
            if (event.isControlKeyDown() || event.isAltKeyDown()) {
              for (Map.Entry<Character, Integer> entry : iTabAccessKeys.entrySet())
                if (event.getNativeKeyCode() == Character.toLowerCase(entry.getKey())
                    || event.getNativeKeyCode() == Character.toUpperCase(entry.getKey())) {
                  iTabPanel.selectTab(entry.getValue());
                  event.preventDefault();
                  event.stopPropagation();
                }
            }
            if (iTabs != null) {
              for (CourseFinderTab tab : iTabs) tab.onKeyUp(event);
            }
          }
        });

    iFilter.addValueChangeHandler(
        new ValueChangeHandler<String>() {
          @Override
          public void onValueChange(ValueChangeEvent<String> event) {
            if (iTabs != null) {
              for (CourseFinderTab tab : iTabs) tab.setValue(event.getValue(), true);
            }
          }
        });
    addValueChangeHandler(
        new ValueChangeHandler<String>() {
          @Override
          public void onValueChange(ValueChangeEvent<String> event) {
            if (iTabs != null) {
              for (CourseFinderTab tab : iTabs) tab.setValue(event.getValue(), true);
            }
          }
        });

    iFilter.addBlurHandler(
        new BlurHandler() {
          @Override
          public void onBlur(BlurEvent event) {
            if (isShowing()) {
              Scheduler.get()
                  .scheduleDeferred(
                      new ScheduledCommand() {
                        @Override
                        public void execute() {
                          iFilter.setFocus(true);
                        }
                      });
            }
          }
        });

    setWidget(iDialogPanel);
  }
  public DialogListaPontoEncontro(
      final InfoCaronaServerAsync controller, final String idSessao, final String idCarona) {
    novosPontos = "";
    listaNovosPontosEncontros = new ArrayList<InfoPontoEncontro>();
    this.idCarona = idCarona;
    this.controller = controller;

    setText("Pontos de Encontro - ID: " + idCarona);
    setAnimationEnabled(true);
    setGlassEnabled(true);
    center();

    VerticalPanel panelListaPontoEncontro = new VerticalPanel();
    tabelaPontoEncontro = new CellTable<InfoPontoEncontro>();
    tabelaPontoEncontro.setWidth("400px");
    dataProvider = new ListDataProvider<InfoPontoEncontro>();

    SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class);
    SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 0, true);
    pager.setDisplay(tabelaPontoEncontro);
    pager.setPageSize(5);

    TextColumn<InfoPontoEncontro> colunaIdPontoEncontro =
        new TextColumn<InfoPontoEncontro>() {
          @Override
          public String getValue(InfoPontoEncontro pontoEncontro) {
            return pontoEncontro.getIdPontoEncontro();
          }
        };

    TextColumn<InfoPontoEncontro> colunaPontosEncontro =
        new TextColumn<InfoPontoEncontro>() {
          @Override
          public String getValue(InfoPontoEncontro pontoEncontro) {
            return pontoEncontro.getPontoEncontro();
          }
        };

    tabelaPontoEncontro.addColumn(colunaPontosEncontro, "Pontos de Encontro");
    listaPontoEncontros = new ArrayList<InfoPontoEncontro>();
    populaTabela();

    HorizontalPanel hPanel01 = new HorizontalPanel();
    final TextBox boxNovoPontoEncontro = new TextBox();
    boxNovoPontoEncontro.setWidth("200px");
    boxNovoPontoEncontro.setStyleName("boxModificada");

    Button buttonAdicionarOutroPontoEncontro = new Button();
    buttonAdicionarOutroPontoEncontro.setStyleName("botaoModificado");
    buttonAdicionarOutroPontoEncontro.setTitle("Adicionar Sugestão");
    buttonAdicionarOutroPontoEncontro.addClickHandler(
        new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            if (boxNovoPontoEncontro.getText().trim().equals("")) {
              DialogMensagemUsuario dialogErro =
                  new DialogMensagemUsuario("Falhou", "Ponto de Encontro Inválido");
              dialogErro.show();
            } else {
              novosPontos += boxNovoPontoEncontro.getText().trim() + ";";
              InfoPontoEncontro novoPontoEncontro =
                  new InfoPontoEncontro("00", boxNovoPontoEncontro.getText().trim());
              boxNovoPontoEncontro.setText("");

              listaNovosPontosEncontros.add(novoPontoEncontro);
              listaPontoEncontros = new ArrayList<InfoPontoEncontro>();

              for (InfoPontoEncontro novoPonto : listaNovosPontosEncontros) {
                listaPontoEncontros.add(novoPonto);
              }

              populaTabela();
            }
          }
        });

    Image imageFiltro = new Image("imagens/adicionar.png");
    imageFiltro.setSize("15px", "15px");
    buttonAdicionarOutroPontoEncontro.getElement().appendChild(imageFiltro.getElement());

    Button buttonSalvarNovosPontos = new Button("Salvar");
    buttonSalvarNovosPontos.setStyleName("botaoModificado");
    buttonSalvarNovosPontos.addClickHandler(
        new ClickHandler() {

          @Override
          public void onClick(ClickEvent event) {
            controller.cadastrarNovosPontosEncontro(
                idSessao,
                idCarona,
                novosPontos,
                new AsyncCallback<String>() {

                  @Override
                  public void onFailure(Throwable caught) {
                    DialogMensagemUsuario dialogSucess =
                        new DialogMensagemUsuario("Erro", caught.getMessage());
                    dialogSucess.show();
                  }

                  @Override
                  public void onSuccess(String result) {
                    DialogMensagemUsuario dialogSucess =
                        new DialogMensagemUsuario(
                            "ID: " + result, "Pontos de Encontro Cadastrados com Sucesso!");
                    dialogSucess.show();
                    hide();
                  }
                });
          }
        });

    Button buttonFechar = new Button("Fechar");
    buttonFechar.setStyleName("botaoModificado");

    buttonFechar.addClickHandler(
        new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            hide();
          }
        });

    colunaPontosEncontro.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);

    hPanel01.setCellVerticalAlignment(boxNovoPontoEncontro, HasVerticalAlignment.ALIGN_BOTTOM);
    hPanel01.setCellVerticalAlignment(buttonSalvarNovosPontos, HasVerticalAlignment.ALIGN_TOP);
    hPanel01.setCellVerticalAlignment(
        buttonAdicionarOutroPontoEncontro, HasVerticalAlignment.ALIGN_TOP);
    hPanel01.setCellVerticalAlignment(buttonFechar, HasVerticalAlignment.ALIGN_TOP);
    hPanel01.setCellHorizontalAlignment(boxNovoPontoEncontro, HasHorizontalAlignment.ALIGN_CENTER);
    hPanel01.setCellHorizontalAlignment(
        buttonSalvarNovosPontos, HasHorizontalAlignment.ALIGN_CENTER);
    hPanel01.setCellHorizontalAlignment(
        buttonAdicionarOutroPontoEncontro, HasHorizontalAlignment.ALIGN_CENTER);
    hPanel01.setCellHorizontalAlignment(buttonFechar, HasHorizontalAlignment.ALIGN_CENTER);
    hPanel01.setWidth("100%");
    hPanel01.setSpacing(6);

    hPanel01.add(boxNovoPontoEncontro);
    hPanel01.add(buttonAdicionarOutroPontoEncontro);
    hPanel01.add(buttonSalvarNovosPontos);
    hPanel01.add(buttonFechar);

    panelListaPontoEncontro.add(tabelaPontoEncontro);
    panelListaPontoEncontro.add(pager);
    panelListaPontoEncontro.add(hPanel01);

    panelListaPontoEncontro.setCellVerticalAlignment(
        tabelaPontoEncontro, HasVerticalAlignment.ALIGN_MIDDLE);
    panelListaPontoEncontro.setCellVerticalAlignment(pager, HasVerticalAlignment.ALIGN_MIDDLE);

    panelListaPontoEncontro.setCellHorizontalAlignment(
        tabelaPontoEncontro, HasHorizontalAlignment.ALIGN_CENTER);
    panelListaPontoEncontro.setCellHorizontalAlignment(pager, HasHorizontalAlignment.ALIGN_CENTER);
    panelListaPontoEncontro.setSpacing(8);

    setWidget(panelListaPontoEncontro);
  }
示例#19
0
  private void initLayout() {

    table = new FlexTable();
    table.setWidth("100%");

    HTML conceptLab = new HTML(constants.exportConcept());
    HTML exportLab = new HTML(constants.exportFormat());
    HTML schemeLab = new HTML(constants.exportScheme());
    HTML dateLab = new HTML(constants.exportDate());
    HTML termCodeLab = new HTML(constants.exportTermCode());

    conceptLab.setWordWrap(false);
    exportLab.setWordWrap(false);
    schemeLab.setWordWrap(false);
    dateLab.setWordWrap(false);
    termCodeLab.setWordWrap(false);

    table.setWidget(0, 0, schemeLab);
    table.setWidget(0, 1, getScheme());
    table.setWidget(1, 0, conceptLab);
    table.setWidget(1, 1, getConcept());
    table.setWidget(2, 0, exportLab);
    table.setWidget(2, 1, getExportFormat());
    // table.setWidget(3, 0, termCodeLab);
    // table.setWidget(3, 1, getTermCode());
    // table.setWidget(4, 0, dateLab);
    // table.setWidget(4, 1, getDatePanel());

    table.getColumnFormatter().setWidth(0, "15%");
    table.getColumnFormatter().setWidth(1, "75%");

    final VerticalPanel exportOption = new VerticalPanel();
    exportOption.setSize("100%", "100%");
    exportOption.add(GridStyle.setTableRowStyle(table, "#F4F4F4", "#E8E8E8", 3));

    final Button export = new Button(constants.exportButton());
    final CheckBox chkZip = new CheckBox(constants.exportUseZip());

    HorizontalPanel bottombar = new HorizontalPanel();
    bottombar.setSpacing(5);
    bottombar.add(chkZip);
    bottombar.add(export);
    bottombar.setSize("100%", "100%");
    bottombar.setStyleName("bottombar");
    bottombar.setCellHorizontalAlignment(chkZip, HasHorizontalAlignment.ALIGN_LEFT);
    bottombar.setCellHorizontalAlignment(export, HasHorizontalAlignment.ALIGN_RIGHT);
    bottombar.setCellVerticalAlignment(export, HasVerticalAlignment.ALIGN_MIDDLE);

    // ButtonbarWidget bottomBarPanel = new ButtonbarWidget(null, bottombar);

    /*ld.setSize("100%", "100%");
    spacer.setSize("100%", "100%");
    spacer.setCellHorizontalAlignment(ld, HasHorizontalAlignment.ALIGN_CENTER);
    spacer.setCellVerticalAlignment(ld, HasVerticalAlignment.ALIGN_MIDDLE);

     Window.addResizeHandler(new ResizeHandler()
        {
        	public void onResize(ResizeEvent event) {
        		spacer.setSize("100%", "100%");
    		}
    	});*/

    VerticalPanel optionPanel = new VerticalPanel();
    optionPanel.setSize("100%", "100%");
    optionPanel.setStyleName("borderbar");
    optionPanel.add(exportOption);
    // optionPanel.add(spacer);
    optionPanel.add(bottombar);
    // optionPanel.setCellHeight(spacer, "100%");
    optionPanel.setCellVerticalAlignment(exportOption, HasVerticalAlignment.ALIGN_TOP);
    optionPanel.setCellVerticalAlignment(bottombar, HasVerticalAlignment.ALIGN_BOTTOM);

    HorizontalPanel langPanel = new HorizontalPanel();
    /*Image img = new Image("images/map-grey.gif");
    final Label lang = new Label(constants.exportSelectLang());
    lang.setSize("150", "100%");
    lang.setStyleName("displayexportLang");
    lang.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
    lang.addClickHandler(new ClickHandler() {
    	public void onClick(ClickEvent event) {
    		if(selectLanguage == null || !selectLanguage.isLoaded)
    			selectLanguage = new SelectLanguage();
    		selectLanguage.show();
    	}
    });

    langPanel.setSize("10%", "100%");
    langPanel.add(img);
    langPanel.add(new HTML("&nbsp;"));
    langPanel.add(lang);
    langPanel.add(new HTML("&nbsp;"));
    langPanel.add(new HTML("&nbsp;"));
    langPanel.setCellWidth(lang, "100%");
    langPanel.setCellHeight(lang, "100%");
    langPanel.setCellVerticalAlignment(img, HasVerticalAlignment.ALIGN_MIDDLE);
    langPanel.setCellVerticalAlignment(lang, HasVerticalAlignment.ALIGN_MIDDLE);
    langPanel.setCellHorizontalAlignment(lang, HasHorizontalAlignment.ALIGN_RIGHT);
    langPanel.setSpacing(1);*/

    VerticalPanel tempmainPanel = new VerticalPanel();
    tempmainPanel.setSpacing(10);
    tempmainPanel.add(optionPanel);

    BodyPanel mainPanel = new BodyPanel(constants.exportTitle(), tempmainPanel, langPanel);

    mainBodypanel.setSize("100%", "100%");
    mainBodypanel.add(mainPanel);
    mainBodypanel.setCellHorizontalAlignment(mainPanel, HasHorizontalAlignment.ALIGN_CENTER);
    mainBodypanel.setCellVerticalAlignment(mainPanel, HasVerticalAlignment.ALIGN_TOP);
    mainBodypanel.setCellWidth(mainPanel, "100%");
    mainBodypanel.setCellHeight(mainPanel, "100%");

    panel.clear();
    panel.setSize("100%", "100%");
    panel.add(mainBodypanel);
    panel.add(loadingDialog);
    panel.setCellHorizontalAlignment(mainPanel, HasHorizontalAlignment.ALIGN_CENTER);
    panel.setCellVerticalAlignment(mainPanel, HasVerticalAlignment.ALIGN_TOP);
    showLoading(false);

    // =================

    export.addClickHandler(
        new ClickHandler() {
          public void onClick(ClickEvent event) {
            if (!format.getValue((format.getSelectedIndex())).equals("")
                && !format.getValue(format.getSelectedIndex()).equals("--None--")) {
              exp.setFormat(format.getValue(format.getSelectedIndex()));
            } else {
              exp.setFormat(null);
            }
            String expformat = exp.getFormat();
            if (expformat == null || expformat.equals("")) {
              Window.alert(constants.exportSelectFormat());
            } else if (exp.getStartDate() != null || exp.getEndDate() != null) {
              if (exp.getStartDate() == null || exp.getEndDate() == null) {
                Window.alert(constants.exportSelectDateRange());
              }
            } else {
              showLoading(true);
              exp.setExpLanguage(userSelectedLanguage);
              exp.setTermCode(termCodeBox.getValue().equals("") ? null : termCodeBox.getValue());

              AsyncCallback<String> callback =
                  new AsyncCallback<String>() {
                    public void onSuccess(String key) {
                      String formattype = format.getValue(format.getSelectedIndex());

                      String filename =
                          "export_"
                              + formattype.toLowerCase()
                              + "_"
                              + DateTimeFormat.getFormat("ddMMyyyyhhmmss").format(new Date());

                      if (formattype.equals(ExportFormat.SKOS)
                          || formattype.equals(ExportFormat.SKOSXL)) filename += ".rdf";
                      else if (formattype.equals(ExportFormat.TBX)) filename += ".tbx";
                      else if (formattype.equals(ExportFormat.OWL_SIMPLE_FORMAT))
                        filename += ".owl";
                      else if (formattype.equals(ExportFormat.OWL_COMPLETE_FORMAT))
                        filename += ".owl";
                      else if (formattype.equals(ExportFormat.RDBMS_SQL_FORMAT)) filename += ".sql";

                      Window.open(
                          GWT.getHostPageBaseURL()
                              + "downloadExportData?filename="
                              + filename
                              + "&key="
                              + key
                              + "&size="
                              + ConfigConstants.ZIPSIZE
                              + "&forcezip="
                              + chkZip.getValue(),
                          "_download",
                          "");
                      showLoading(false);
                    }

                    public void onFailure(Throwable caught) {
                      showLoading(false);
                      ExceptionManager.showException(caught, constants.exportDataFail());
                    }
                  };
              Service.exportService.export(exp, MainApp.userId, 74, MainApp.userOntology, callback);
            }
          }
        });
  }