/*
 * @topic W080121 GUI Demo app
 * @brief class Widget implements IGuiComponent
 */
package guidemo;

public abstract class Widget implements IGuiComponent {
    private int x;
    private int y;
    private int w;
    private int h;
    private String caption;
    
    // constructors
    public Widget( int x, int y, int w, int h, String caption )
    {
        this.x = x;
        this.y = y;
        this.h = h;
        this.w = w;
        this.caption = caption;
    }
    
    // operations
    
    public String getCaption()
    {
        return caption;
    }
}//class Widget