Search in sources :

Example 1 with ContentPanel

use of com.sencha.gxt.widget.core.client.ContentPanel in project activityinfo by bedatadriven.

the class RecordActivity method start.

@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
    FormInputView formInputView = new FormInputView(formStore, place.getRecordRef());
    ContentPanel contentPanel = new ContentPanel();
    contentPanel.setHeading("Record");
    contentPanel.add(formInputView);
    panel.setWidget(contentPanel);
}
Also used : FormInputView(org.activityinfo.ui.client.input.view.FormInputView) ContentPanel(com.sencha.gxt.widget.core.client.ContentPanel)

Example 2 with ContentPanel

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

the class ContentView method createView.

@Override
public void createView() {
    this.container = new ContentPanel();
    this.container.setHeaderVisible(false);
    this.tabPanel = new PlainTabPanel();
    this.container.setWidget(this.tabPanel);
    this.tabPanel.setTabScroll(true);
    this.defaultTabItem = new TabItemConfig("Sample Mail Application");
    this.defaultTabItemContent = new HTML("");
    this.tabPanel.add(this.defaultTabItemContent, this.defaultTabItem);
}
Also used : PlainTabPanel(com.sencha.gxt.widget.core.client.PlainTabPanel) TabItemConfig(com.sencha.gxt.widget.core.client.TabItemConfig) HTML(com.google.gwt.user.client.ui.HTML) ContentPanel(com.sencha.gxt.widget.core.client.ContentPanel)

Example 3 with ContentPanel

use of com.sencha.gxt.widget.core.client.ContentPanel 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)

Example 4 with ContentPanel

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

the class ShellView method createContentPanel.

private ContentPanel createContentPanel() {
    ContentPanel cp = new ContentPanel();
    cp.setHeaderVisible(false);
    return cp;
}
Also used : ContentPanel(com.sencha.gxt.widget.core.client.ContentPanel)

Aggregations

ContentPanel (com.sencha.gxt.widget.core.client.ContentPanel)4 HTML (com.google.gwt.user.client.ui.HTML)2 PlainTabPanel (com.sencha.gxt.widget.core.client.PlainTabPanel)1 TabItemConfig (com.sencha.gxt.widget.core.client.TabItemConfig)1 VerticalLayoutContainer (com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer)1 FieldLabel (com.sencha.gxt.widget.core.client.form.FieldLabel)1 TextField (com.sencha.gxt.widget.core.client.form.TextField)1 FormInputView (org.activityinfo.ui.client.input.view.FormInputView)1