Search in sources :

Example 1 with FieldLabel

use of com.sencha.gxt.widget.core.client.form.FieldLabel in project oxCore by GluuFederation.

the class GwtUtils method createFieldLabel.

public static FieldLabel createFieldLabel(Widget widget, String label) {
    final FieldLabel f = new FieldLabel(widget, label);
    f.setLabelSeparator("");
    return f;
}
Also used : FieldLabel(com.sencha.gxt.widget.core.client.form.FieldLabel)

Example 2 with FieldLabel

use of com.sencha.gxt.widget.core.client.form.FieldLabel in project mvp4g2-examples by mvp4g.

the class DetailView method createView.

@Override
public void createView() {
    this.container = new ContentPanel();
    this.container.setHeaderVisible(false);
    this.container.setBodyStyle("padding: 12px;");
    VerticalLayoutContainer vlc = new VerticalLayoutContainer();
    this.container.setWidget(vlc);
    FieldLabel fl01 = new FieldLabel();
    fl01.setText("Sender");
    sender = new TextField();
    sender.setReadOnly(true);
    fl01.setWidget(sender);
    vlc.add(fl01, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
    FieldLabel fl02 = new FieldLabel();
    fl02.setText("Email sender");
    emailSender = new TextField();
    emailSender.setReadOnly(true);
    fl02.setWidget(emailSender);
    vlc.add(fl02, new VerticalLayoutContainer.VerticalLayoutData(1, -1));
    FieldLabel fl03 = new FieldLabel();
    fl03.setText("Text");
    VerticalLayoutContainer vlc01 = new VerticalLayoutContainer();
    vlc01.setScrollMode(ScrollSupport.ScrollMode.AUTOY);
    vlc01.setBorders(true);
    body = new HTML();
    vlc01.add(body, new VerticalLayoutContainer.VerticalLayoutData(1, 1));
    fl03.setWidget(vlc01);
    vlc.add(fl03, new VerticalLayoutContainer.VerticalLayoutData(1, 1));
}
Also used : VerticalLayoutContainer(com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer) FieldLabel(com.sencha.gxt.widget.core.client.form.FieldLabel) TextField(com.sencha.gxt.widget.core.client.form.TextField) HTML(com.google.gwt.user.client.ui.HTML) ContentPanel(com.sencha.gxt.widget.core.client.ContentPanel)

Aggregations

FieldLabel (com.sencha.gxt.widget.core.client.form.FieldLabel)2 HTML (com.google.gwt.user.client.ui.HTML)1 ContentPanel (com.sencha.gxt.widget.core.client.ContentPanel)1 VerticalLayoutContainer (com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer)1 TextField (com.sencha.gxt.widget.core.client.form.TextField)1