package org.gwt.formlayout.showcase.client;
import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
public class DescriptionPanel extends ContentPanel {
private TextArea textArea;
public DescriptionPanel() {
setLayout(new FitLayout());
setHeading("Description");
textArea = new TextArea();
textArea.setReadOnly(true);
add(textArea);
setMessage("Welcome the GXT FormLayout Showcase.\nThis application is intended to show the most common features of the layout");
Registry.register("descriptionPanel", this);
}
public void setMessage(String message) {
textArea.setValue(message);
}
}
|