| 17 |
|
*/ |
| 18 |
|
public final String REVISION = "$Revision$"; |
| 19 |
|
|
| 20 |
+ |
public static final int HOUR = 0; |
| 21 |
+ |
public static final int DAY = 1; |
| 22 |
+ |
public static final int WEEK = 2; |
| 23 |
+ |
public static final int MONTH = 3; |
| 24 |
+ |
|
| 25 |
+ |
|
| 26 |
|
//---STATIC METHODS--- |
| 27 |
|
|
| 28 |
|
//---CONSTRUCTORS--- |
| 29 |
|
|
| 30 |
|
public ReportPage(String location, String description, int type){ |
| 31 |
|
|
| 32 |
< |
if (type < 0 || type > 3){ |
| 32 |
> |
if (type < HOUR || type > MONTH){ |
| 33 |
|
System.out.println("Could not add the page."); |
| 34 |
|
} |
| 35 |
|
|
| 76 |
|
private int _type; |
| 77 |
|
|
| 78 |
|
//---STATIC ATTRIBUTES--- |
| 73 |
– |
|
| 74 |
– |
public static int HOUR = 0; |
| 75 |
– |
public static int DAY = 1; |
| 76 |
– |
public static int WEEK = 2; |
| 77 |
– |
public static int MONTH = 3; |
| 79 |
|
|
| 80 |
|
} |