DemoPanel.java
上传用户:zhengdagz
上传日期:2014-03-06
资源大小:1956k
文件大小:1k
源码类别:

xml/soap/webservice

开发平台:

Java

  1. /*
  2.  * DemoPanel.java
  3.  *
  4.  * Created on April 18, 2005, 8:16 AM
  5.  *
  6.  * To change this template, choose Tools | Options and locate the template under
  7.  * the Source Creation and Management node. Right-click the template and choose
  8.  * Open. You can then make changes to the template in the Source Editor.
  9.  */
  10. package org.jdesktop.demo.binding;
  11. import java.awt.Container;
  12. /**
  13.  * Defines a single GUI panel used in a multi-panel graphical demo. A DemoPanel 
  14.  * delivers a self-contained Container which displays some GUI functionality, and
  15.  * which has a name and description. The host for the whole demo can use the name
  16.  * to allow selection of the demo, and the description to describe it to the user.
  17.  * To use, just implement this interface and return your GUI Container
  18.  * in {@link #getContents()}. 
  19.  *
  20.  * @author rbair
  21.  */
  22. public interface DemoPanel {
  23.     /** Returns the (simple) name of the demo. */
  24.     public String getName();
  25.     
  26.     /** 
  27.      * Returns an HTML-formatted string describing the demo; this can be several 
  28.      * sentences long. */
  29.     public String getHtmlDescription();
  30.     
  31.     /** 
  32.      * Returns a Container with the GUI for the demo. The Container will already
  33.      * be instantiated and configured, and not dependent on external components or
  34.      * configuration; ready-to-use and to add to a frame for display. 
  35.      */
  36.     public Container getContents();
  37. }