Example usage for com.google.gwt.user.client.ui Label setText

List of usage examples for com.google.gwt.user.client.ui Label setText

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui Label setText.

Prototype

public void setText(String text) 

Source Link

Document

Sets the label's content to the given text.

Usage

From source file:org.teiid.authoring.client.widgets.DataSourcePropertyEditor.java

License:Apache License

public void setProperties(List<DataSourcePropertyBean> properties) {
    this.propertyList.clear();
    this.nameTextBoxMap.clear();
    VerticalPanel allPropsPanel = new VerticalPanel();

    for (DataSourcePropertyBean prop : properties) {
        HorizontalPanel nameValuePanel = new HorizontalPanel();
        Label nameLabel = new Label();
        DOM.setStyleAttribute(nameLabel.getElement(), "fontWeight", "bold");
        nameLabel.setWidth(NAME_WIDTH);//w  ww . ja va 2  s.c o m
        nameLabel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
        nameLabel.setText(prop.getDisplayName() + " --");
        nameValuePanel.add(nameLabel);

        TextBox valueTextBox = null;
        String propName = prop.getName();
        if (propName != null && propName.equalsIgnoreCase(PASSWORD_KEY)) {
            valueTextBox = new PasswordTextBox();
        } else {
            valueTextBox = new TextBox();
        }
        valueTextBox.setWidth(VALUE_WIDTH);
        valueTextBox.setText(prop.getValue());
        valueTextBox.addKeyUpHandler(new KeyUpHandler() {
            @Override
            public void onKeyUp(KeyUpEvent event) {
                updatePropertyValues();
            }
        });
        valueTextBox.addValueChangeHandler(new ValueChangeHandler<String>() {
            @Override
            public void onValueChange(ValueChangeEvent<String> event) {
                updatePropertyValues();
            }
        });
        nameValuePanel.add(valueTextBox);

        allPropsPanel.add(nameValuePanel);

        this.propertyList.add(prop);
        this.nameTextBoxMap.put(prop.getName(), valueTextBox);
    }
    panel.clear();
    if (properties.size() > 0) {
        panel.add(titleLabel);
        panel.add(allPropsPanel);
    }
}

From source file:org.thechiselgroup.biomixer.client.core.resources.ui.popup.ResourceSetAvatarPopupWidgetFactory.java

License:Apache License

private void addHeader(VerticalPanel panel) {
    if (headerUpdatedHandler == null) {
        Label header = new Label(headerText);
        header.addStyleName(CSS_POPUP_CONTENT_HEADER);
        panel.add(header);/*from  w ww  . java2 s.co m*/
    } else {
        final TextBox header = new TextBox();
        header.setText(headerText);
        header.setMaxLength(20); // TODO change to resizable text box
        header.addStyleName(CSS_POPUP_CONTENT_HEADER);
        header.addKeyUpHandler(new KeyUpHandler() {
            @Override
            public void onKeyUp(KeyUpEvent event) {
                headerUpdatedHandler.headerLabelChanged(header.getText());
            }
        });
        header.addBlurHandler(new BlurHandler() {
            @Override
            public void onBlur(BlurEvent event) {
                headerUpdatedHandler.headerLabelChanged(header.getText());
            }
        });
        panel.add(header);
    }

    Label subheader = new Label(subHeaderText);
    subheader.addStyleName(CSS_POPUP_CONTENT_SUBHEADER);
    panel.add(subheader);
}

From source file:org.uberfire.ext.plugin.client.perspective.editor.layout.editor.TargetDivDragComponent.java

License:Apache License

@Override
public IsWidget getPreviewWidget(RenderingContext ctx) {
    String id = ctx.getComponent().getProperties().get(ID_PARAMETER);
    FlowPanel panel = createDiv(id);//from  w  w  w.ja v  a2 s  . c  o m
    Label l = GWT.create(Label.class);
    l.setText(CommonConstants.INSTANCE.TargetDivPlaceHolder() + " " + id);
    panel.add(l);
    return panel;
}

From source file:org.uberfire.wbtest.client.core.UriUtilScreen.java

License:Apache License

@Inject
public UriUtilScreen(PlaceManager placeManager) {
    super(placeManager);

    final Label resultLabel = new Label();
    resultLabel.getElement().setId(Debug.shortName(getClass()) + "-resultLabel");

    final TextBox uriCheckerBox = new TextBox();
    uriCheckerBox.getElement().setId(Debug.shortName(getClass()) + "-uriCheckerBox");

    uriCheckerBox.addKeyUpHandler(new KeyUpHandler() {
        @Override/*from   ww  w  .  j  a  va 2  s  .  co m*/
        public void onKeyUp(KeyUpEvent event) {
            if (URIUtil.isValid(uriCheckerBox.getText())) {
                resultLabel.setText("Not valid.");
            } else {
                resultLabel.setText("Valid. Encoded form is <" + URIUtil.encode(uriCheckerBox.getText()) + ">");
            }
        }
    });

    panel.add(new Label("Type URIs into this box to see if they're valid:"));
    panel.add(uriCheckerBox);
    panel.add(resultLabel);
}

From source file:org.unitime.timetable.gwt.client.solver.suggestions.ConflictBasedStatisticsTree.java

License:Apache License

protected TreeItem generate(final CBSNode node) {
    P widget = new P("cbs-node");
    Label counter = new Label();
    counter.setText(node.getCount() + " \u00D7");
    widget.add(counter);/*w w  w  .  j  a  v  a  2  s.c o  m*/
    if (node.getHTML() != null) {
        HTML html = new HTML(node.getHTML());
        widget.add(html);
    } else {
        Label name = new Label();
        name.setText(node.getName());
        if (node.getPref() != null && iProperties != null) {
            PreferenceInterface pref = iProperties.getPreference(node.getPref());
            if (pref != null)
                name.getElement().getStyle().setColor(pref.getColor());
        }
        widget.add(name);
    }
    widget.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            ConflictBasedStatisticsTree.this.onClick(event, node);
        }
    });
    TreeItem item = new TreeItem(widget);
    if (node.hasNodes()) {
        for (CBSNode child : node.getNodes()) {
            item.addItem(generate(child));
        }
    }
    return item;
}

From source file:org.waveprotocol.wave.client.editor.debug.DebugOptions.java

License:Apache License

/**
 * Constructs the options and builds a widget to display them
 * @param editorImpl The editor the options are for
 *//*from ww  w.jav  a  2 s  .c o  m*/
DebugOptions(final EditorImpl editorImpl) {
    this.editor = editorImpl;
    final CursorDisplay cursorDisplay = new CursorDisplay(editorImpl);

    addCheckBox("Editor on", !editorImpl.debugIsDisabled(), new ValueChangeHandler<Boolean>() {
        public void onValueChange(ValueChangeEvent<Boolean> event) {
            editorImpl.debugSetDisabled(!event.getValue());
        }
    });

    addCheckBox("Receive/send ops", editorImpl.debugIsConnected(), new ValueChangeHandler<Boolean>() {
        @Override
        public void onValueChange(ValueChangeEvent<Boolean> event) {
            editorImpl.debugConnectOpSinks(event.getValue());
        }
    });

    addCheckBox("Cancel unsafe combos", EditorEventHandler.getCancelUnsafeCombos(),
            new ValueChangeHandler<Boolean>() {
                public void onValueChange(ValueChangeEvent<Boolean> event) {
                    EditorEventHandler.setCancelUnsafeCombos(event.getValue());
                }
            });

    addCheckBox("Show xy-selection cursor", cursorDisplay.getEnabled(), new ValueChangeHandler<Boolean>() {
        public void onValueChange(ValueChangeEvent<Boolean> event) {
            cursorDisplay.setEnabled(event.getValue());
        }
    });

    addCheckBox("Check local ops", ContentDocument.validateLocalOps, new ValueChangeHandler<Boolean>() {
        @Override
        public void onValueChange(ValueChangeEvent<Boolean> event) {
            ContentDocument.validateLocalOps = event.getValue();
        }
    });

    optionsPanel.add(new HTML("<br/>Permitted update event listeners:"));
    optionsPanel.add(updateEventsPanel);
    updateEventsPanel.getElement().getStyle().setPaddingLeft(10, Unit.PX);

    panel.add(optionsPanel);

    VerticalPanel rhs = new VerticalPanel();
    rhs.add(new HTML("XML to insert at current cursor location.<br/>"
            + "Ensure there is no extra whitespace anywhere between your tags!"));
    final TextArea contentInput = new TextArea();
    contentInput.setVisibleLines(10);
    contentInput.setCharacterWidth(40);
    rhs.add(contentInput);
    final Label errorLabel = new Label("");
    Button insertXmlButton = new Button("Insert");
    insertXmlButton.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            editor.focus(true);
            ContentRange selection = editor.getSelectionHelper().getOrderedSelectionPoints();
            if (selection == null) {
                errorLabel.setText("Don't know where to insert this");
                return;
            }

            XmlStringBuilder xml;
            try {
                xml = XmlStringBuilder.innerXml(DocProviders.POJO.parse(contentInput.getText()));
            } catch (RuntimeException e) {
                errorLabel.setText("Ill formed XML");
                return;
            }

            try {
                editor.getDocument().insertXml(selection.getSecond(), xml);
                errorLabel.setText("");
            } catch (RuntimeException e) {
                errorLabel.setText("Invalid XML: " + e.getMessage());
            }
        }
    });
    rhs.add(errorLabel);
    rhs.add(insertXmlButton);
    panel.add(rhs);
}

From source file:org.wso2.developerstudio.codenvy.core.client.ui.dashboard.page.DashboardPageViewImpl.java

License:Open Source License

/**
 * Generate the Dashboard Items for a single DEV_STUDIO project creation option available
 * @param dashboardItem//from w ww. j  av a 2  s. c  o m
 * @return
 */

public Button createDashBoardItem(DashboardItem dashboardItem) {
    HorizontalPanel itemPanel = new HorizontalPanel();
    itemPanel.setSpacing(ITEM_SPACING);

    Image itemImage = new Image();
    String itemName = dashboardItem.getName().toString();
    if (dashboardItem.getImageResource() != null) {
        itemImage.setResource(dashboardItem.getImageResource());
    } else {
        // log the error
    }
    itemImage.getElement().setId(dashboardItem.getName());

    Label itemLabel = new Label();
    itemLabel.setText(itemName);

    itemPanel.add(itemImage);
    itemPanel.add(itemLabel);
    itemPanel.setPixelSize(ITEM_WIDTH, ITEM_HEIGHT);

    Button itembutton = new Button();
    itembutton.setPixelSize(ITEMBUTTON_WIDTH, ITEMBUTTON_HEIGHT);
    itembutton.getElement().appendChild(itemPanel.getElement());
    itembutton.setStyleName(ITEM_STYLE);

    return itembutton;
}

From source file:org.wso2.developerstudio.codenvy.core.client.ui.dashboard.page.DashboardPageViewImpl.java

License:Open Source License

/**
 * Create the dashboard category headings
 * @param entry//from  ww  w  .  j  a  v  a2 s.  c  om
 * @return
 */

public HorizontalPanel createCategoryHeaderPanel(Map.Entry<String, List<DashboardItem>> entry) {

    HorizontalPanel categoryHeaderPanel = new HorizontalPanel();
    categoryHeaderPanel.setSpacing(CAT_HEADER_SPACING);
    Label categoryHeader = new Label();

    Image catImage = new Image();
    String catName = entry.getKey();
    categoryHeader.setText(catName);
    if (entry.getValue().get(0).getImageResource() != null) {
        catImage.setResource(entry.getValue().get(0).getCategory().getImageResource());
        categoryHeaderPanel.add(catImage);
    } else {
        // log the error
    }
    categoryHeaderPanel.add(categoryHeader);
    categoryHeaderPanel.setStyleName(CATEGORY_STYLE);

    return categoryHeaderPanel;
}

From source file:parceirosDaEstrada.web.client.paineis.PainelCadastrarCaronas.java

License:Open Source License

/**
 * @wbp.parser.entryPoint//from  www. j a  va 2s.  co m
 */
public CaptionPanel carregaPainel() {
    CaptionPanel cadastrarCaronaPanel = new CaptionPanel("Preencha os dados da nova carona:");
    cadastrarCaronaPanel.setSize("754px", "542px");

    LayoutPanel layoutPanel = new LayoutPanel();
    cadastrarCaronaPanel.setContentWidget(layoutPanel);
    layoutPanel.setSize("725px", "492px");

    Label lblOrigem = new Label("Origem:");
    layoutPanel.add(lblOrigem);
    layoutPanel.setWidgetLeftWidth(lblOrigem, 170.0, Unit.PX, 56.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(lblOrigem, 33.0, Unit.PX, 15.0, Unit.PX);

    Label destinoText = new Label("Destino: ");
    layoutPanel.add(destinoText);
    layoutPanel.setWidgetLeftWidth(destinoText, 170.0, Unit.PX, 56.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(destinoText, 73.0, Unit.PX, 15.0, Unit.PX);

    Label dataText = new Label("Selecione a data:");
    layoutPanel.add(dataText);
    layoutPanel.setWidgetLeftWidth(dataText, 170.0, Unit.PX, 114.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(dataText, 122.0, Unit.PX, 15.0, Unit.PX);

    Label label = new Label("Hor\u00E1rio (HH:mm):");
    layoutPanel.add(label);
    layoutPanel.setWidgetLeftWidth(label, 170.0, Unit.PX, 114.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(label, 313.0, Unit.PX, 15.0, Unit.PX);

    Label vagasText = new Label("Numero de Vagas:");
    layoutPanel.add(vagasText);
    layoutPanel.setWidgetLeftWidth(vagasText, 170.0, Unit.PX, 137.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(vagasText, 355.0, Unit.PX, 15.0, Unit.PX);

    Label estadoOriText = new Label("Estado: ");
    layoutPanel.add(estadoOriText);
    layoutPanel.setWidgetLeftWidth(estadoOriText, 520.0, Unit.PX, 56.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(estadoOriText, 32.0, Unit.PX, 15.0, Unit.PX);

    Label estadoDesText = new Label("Estado: ");
    layoutPanel.add(estadoDesText);
    layoutPanel.setWidgetLeftWidth(estadoDesText, 520.0, Unit.PX, 56.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(estadoDesText, 72.0, Unit.PX, 15.0, Unit.PX);

    origemBox = new TextBox();
    layoutPanel.add(origemBox);
    origemBox.setWidth("250px");
    layoutPanel.setWidgetLeftRight(origemBox, 235.0, Unit.PX, 230.0, Unit.PX);
    layoutPanel.setWidgetTopBottom(origemBox, 32.0, Unit.PX, 433.0, Unit.PX);

    destinoBox = new TextBox();
    layoutPanel.add(destinoBox);
    destinoBox.setWidth("250px");
    layoutPanel.setWidgetLeftRight(destinoBox, 235.0, Unit.PX, 230.0, Unit.PX);
    layoutPanel.setWidgetTopBottom(destinoBox, 72.0, Unit.PX, 393.0, Unit.PX);

    datePicker = new DatePicker();
    layoutPanel.add(datePicker);
    layoutPanel.setWidgetLeftWidth(datePicker, 311.0, Unit.PX, 142.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(datePicker, 121.0, Unit.PX, 169.0, Unit.PX);

    horaBox = new TextBox();
    layoutPanel.add(horaBox);
    layoutPanel.setWidgetLeftRight(horaBox, 302.0, Unit.PX, 185.0, Unit.PX);
    layoutPanel.setWidgetTopBottom(horaBox, 312.0, Unit.PX, 153.0, Unit.PX);

    vagasBox = new TextBox();
    layoutPanel.add(vagasBox);
    layoutPanel.setWidgetLeftRight(vagasBox, 302.0, Unit.PX, 185.0, Unit.PX);
    layoutPanel.setWidgetTopBottom(vagasBox, 354.0, Unit.PX, 111.0, Unit.PX);

    ListBox listBoxEstadosOri = new ListBox();
    final String ESTADOS[] = { "AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA", "MT", "MS", "MG",
            "PA", "PB", "PR", "PE", "PI", "RN", "RJ", "RS", "RO", "RR", "SC", "SP", "SE", "TO" };

    for (String itemEstado : ESTADOS) {
        listBoxEstadosOri.addItem(itemEstado);
    }
    listBoxEstadosOri.setSelectedIndex(14);
    layoutPanel.add(listBoxEstadosOri);
    layoutPanel.setWidgetLeftWidth(listBoxEstadosOri, 571.0, Unit.PX, 68.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(listBoxEstadosOri, 32.0, Unit.PX, 23.0, Unit.PX);

    ListBox listBoxEstadosDes = new ListBox();
    for (String itemEstado : ESTADOS) {
        listBoxEstadosDes.addItem(itemEstado);
    }
    listBoxEstadosDes.setSelectedIndex(14);
    layoutPanel.add(listBoxEstadosDes);
    layoutPanel.setWidgetLeftWidth(listBoxEstadosDes, 571.0, Unit.PX, 68.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(listBoxEstadosDes, 72.0, Unit.PX, 23.0, Unit.PX);

    final Label mensagemErro = new Label("");
    mensagemErro.setSize("0px", "0px");
    mensagemErro.setStyleName("ext-el-mask-msg div");
    layoutPanel.add(mensagemErro);
    layoutPanel.setWidgetLeftRight(mensagemErro, 183.0, Unit.PX, 286.0, Unit.PX);
    layoutPanel.setWidgetTopBottom(mensagemErro, 418.0, Unit.PX, 47.0, Unit.PX);
    mensagemErro.setVisible(false);

    Button cadastrarCaronaButton = new Button("Cadastrar Carona");
    layoutPanel.add(cadastrarCaronaButton);
    layoutPanel.setWidgetLeftWidth(cadastrarCaronaButton, 466.0, Unit.PX, 125.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(cadastrarCaronaButton, 418.0, Unit.PX, 24.0, Unit.PX);

    // determina acao ao clicar o botato de cadastrar a carona
    cadastrarCaronaButton.addClickHandler(new ClickHandler() {
        @SuppressWarnings("deprecation")
        public void onClick(ClickEvent event) {
            try {
                String data = "";
                if (datePicker.getValue() != null) {
                    data = datePicker.getValue().getDate() + "/" + (datePicker.getValue().getMonth() + 1) + "/"
                            + (datePicker.getValue().getYear() + 1900);
                } else {
                    if (!origemBox.getText().equals("") && !destinoBox.getText().equals(""))
                        throw new Exception("Selecione uma data!");
                }
                SistemaWebMain.getSistema().cadastrarCarona(idUsuarioLogado, origemBox.getText(),
                        destinoBox.getText(), data, horaBox.getText(), vagasBox.getText());

                mensagemErro.setVisible(false);
                mensagemErro.setSize("0px", "0px");
                mensagemErro.setText("");
                Window.alert("Carona criada com sucesso!");

            } catch (Exception e) {
                mensagemErro.setText(e.getMessage().replace("", "\u00E1") + "!");
                mensagemErro.setVisible(true);
                mensagemErro.setSize("250px", "21px");
            }
        }
    });
    return cadastrarCaronaPanel;
}

From source file:parceirosDaEstrada.web.client.paineis.PainelOpcoesDeCarona.java

License:Open Source License

/**
 * @wbp.parser.entryPoint//from ww  w .  ja  va 2 s  .co m
 */
public LayoutPanel carregaPainelDadosDaCarona() {

    layoutPanel = new LayoutPanel();
    layoutPanel.setSize("783px", "522px");

    Label textTituloCarona = new Label("Trajeto " + carona.getTrajeto());
    layoutPanel.add(textTituloCarona);
    textTituloCarona.setSize("300px", "40px");
    layoutPanel.setWidgetLeftWidth(textTituloCarona, 156.0, Unit.PX, 242.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(textTituloCarona, 25.0, Unit.PX, 40.0, Unit.PX);

    CaptionPanel captionPanel = new CaptionPanel("Dados Da Carona");
    layoutPanel.add(captionPanel);
    captionPanel.setSize("640px", "260px");
    layoutPanel.setWidgetLeftRight(captionPanel, 14.0, Unit.PX, 57.0, Unit.PX);
    layoutPanel.setWidgetTopBottom(captionPanel, 0.0, Unit.PX, 183.0, Unit.PX);

    Label Label_1 = new Label("Dona da Carona:");
    layoutPanel.add(Label_1);
    layoutPanel.setWidgetLeftWidth(Label_1, 30.0, Unit.PX, 100.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(Label_1, 76.0, Unit.PX, 21.0, Unit.PX);
    Label_1.setSize("100px", "21px");

    Label Label_2 = new Label("Data:");
    layoutPanel.add(Label_2);
    layoutPanel.setWidgetLeftWidth(Label_2, 30.0, Unit.PX, 100.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(Label_2, 118.0, Unit.PX, 21.0, Unit.PX);
    Label_2.setSize("100px", "21px");

    Label Label_3 = new Label("Hor\u00E1rio:");
    layoutPanel.add(Label_3);
    Label_3.setSize("100px", "21px");
    layoutPanel.setWidgetLeftWidth(Label_3, 30.0, Unit.PX, 100.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(Label_3, 145.0, Unit.PX, 21.0, Unit.PX);

    Label Label_4 = new Label("Vagas:");
    layoutPanel.add(Label_4);
    Label_4.setSize("100px", "21px");
    layoutPanel.setWidgetLeftWidth(Label_4, 30.0, Unit.PX, 100.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(Label_4, 171.0, Unit.PX, 21.0, Unit.PX);

    Label Label_5 = new Label("Ponto De Encontro:");
    layoutPanel.add(Label_5);
    Label_5.setSize("120px", "21px");
    layoutPanel.setWidgetLeftRight(Label_5, 30.0, Unit.PX, 188.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(Label_5, 198.0, Unit.PX, 21.0, Unit.PX);

    buttonSolicitarVaga = new Button();
    buttonSolicitarVaga.setText("Solicitar Vaga");
    layoutPanel.add(buttonSolicitarVaga);
    buttonSolicitarVaga.setTitle("Solicitar vaga nessa carona");
    buttonSolicitarVaga.setSize("140px", "30px");
    layoutPanel.setWidgetLeftWidth(buttonSolicitarVaga, 208.0, Unit.PX, 140.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(buttonSolicitarVaga, 225.0, Unit.PX, 61.0, Unit.PX);

    buttonVoltar = new Button();
    layoutPanel.add(buttonVoltar);
    layoutPanel.setWidgetLeftWidth(buttonVoltar, 353.0, Unit.PX, 140.0, Unit.PX);
    layoutPanel.setWidgetTopBottom(buttonVoltar, 225.0, Unit.PX, 161.0, Unit.PX);
    buttonVoltar.setText("Voltar");
    buttonVoltar.setTitle("Voltar ao painel de localizar caronas");
    buttonVoltar.setSize("140px", "30px");

    Label textDonoCarona = new Label(carona.getDono().getNome());
    layoutPanel.add(textDonoCarona);
    textDonoCarona.setSize("100px", "21px");
    layoutPanel.setWidgetLeftWidth(textDonoCarona, 136.0, Unit.PX, 100.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(textDonoCarona, 76.0, Unit.PX, 26.0, Unit.PX);

    Label textData = new Label(carona.getData());
    layoutPanel.add(textData);
    textData.setSize("100px", "21px");
    layoutPanel.setWidgetLeftWidth(textData, 80.0, Unit.PX, 100.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(textData, 118.0, Unit.PX, 21.0, Unit.PX);

    Label textHora = new Label(carona.getHora());
    layoutPanel.add(textHora);
    textHora.setSize("100px", "21px");
    layoutPanel.setWidgetLeftWidth(textHora, 80.0, Unit.PX, 100.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(textHora, 145.0, Unit.PX, 21.0, Unit.PX);

    Label textVagas = new Label(carona.getVagas());
    layoutPanel.add(textVagas);
    textVagas.setSize("100px", "21px");
    layoutPanel.setWidgetLeftWidth(textVagas, 80.0, Unit.PX, 100.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(textVagas, 171.0, Unit.PX, 21.0, Unit.PX);

    Label textPonto = new Label("(Nenhum ponto definido)");
    if (carona.getPontoDeEncontro() != null)
        textPonto.setText((carona.getPontoDeEncontro()));
    layoutPanel.add(textPonto);
    textPonto.setSize("300px", "21px");
    layoutPanel.setWidgetLeftWidth(textPonto, 156.0, Unit.PX, 536.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(textPonto, 198.0, Unit.PX, 21.0, Unit.PX);

    CaptionPanel captionPanel_1 = new CaptionPanel("Sugerir Novo Ponto de Encontro");
    layoutPanel.add(captionPanel_1);
    layoutPanel.setWidgetLeftWidth(captionPanel_1, 14.0, Unit.PX, 647.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(captionPanel_1, 280.0, Unit.PX, 133.0, Unit.PX);
    captionPanel_1.setSize("640px", "129px");

    pontoSugeridoBox = new TextBox();
    layoutPanel.add(pontoSugeridoBox);
    layoutPanel.setWidgetLeftRight(pontoSugeridoBox, 163.0, Unit.PX, 26.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(pontoSugeridoBox, 313.0, Unit.PX, 30.0, Unit.PX);
    pontoSugeridoBox.setSize("320px", "20px");

    buttonSugerirPonto = new Button();
    buttonSugerirPonto.setText("Sugerir Ponto");
    layoutPanel.add(buttonSugerirPonto);
    buttonSugerirPonto.setTitle("Sugerir um novo ponto de encontro nessa carona");
    buttonSugerirPonto.setSize("190px", "30px");
    layoutPanel.setWidgetLeftWidth(buttonSugerirPonto, 303.0, Unit.PX, 214.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(buttonSugerirPonto, 349.0, Unit.PX, 30.0, Unit.PX);

    Label Label_7 = new Label("Ponto de Encontro:");
    layoutPanel.add(Label_7);
    Label_7.setSize("120px", "21px");
    layoutPanel.setWidgetLeftWidth(Label_7, 33.0, Unit.PX, 120.0, Unit.PX);
    layoutPanel.setWidgetTopHeight(Label_7, 322.0, Unit.PX, 21.0, Unit.PX);

    return layoutPanel;
}