KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > SDownloadButton


1 /*
2  * $Id: SDownloadButton.java,v 1.4 2005/04/08 15:05:18 blueshift Exp $
3  * Copyright 2000,2005 wingS development team.
4  *
5  * This file is part of wingS (http://www.j-wings.org).
6  *
7  * wingS is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU Lesser General Public License
9  * as published by the Free Software Foundation; either version 2.1
10  * of the License, or (at your option) any later version.
11  *
12  * Please see COPYING for the complete licence.
13  */

14 package org.wings;
15
16 /**
17  * @author armin
18  * created at 24.02.2004 13:05:00
19  */

20 public class SDownloadButton extends SAbstractClickable {
21
22     Resource resource;
23
24     public SDownloadButton(Resource pResource) {
25         resource = pResource;
26     }
27
28     public SDownloadButton(String JavaDoc text, Resource pResource) {
29         super(text);
30         resource = pResource;
31     }
32
33     public SDownloadButton(SIcon icon, Resource pResource) {
34         super(icon);
35         resource = pResource;
36     }
37
38     public boolean isEpochCheckEnabled() {
39         return false;
40     }
41
42     public SimpleURL getURL() {
43         return resource.getURL();
44     }
45
46
47 }
48
Popular Tags