DescriptionPanel.java :  » GWT » gxt-jglayout » org » gwt » formlayout » showcase » client » Java Open Source

Java Open Source » GWT » gxt jglayout 
gxt jglayout » org » gwt » formlayout » showcase » client » DescriptionPanel.java
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);
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.