KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > wings > util > AnchorProperties


1 /*
2  * $Id: AnchorProperties.java,v 1.3 2004/12/01 07:54:29 hengels 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.util;
15
16 import org.wings.SimpleURL;
17
18 /**
19  * This class contains the properties for the AnchorStack.
20  */

21 public final class AnchorProperties {
22     private final SimpleURL url;
23     private final String JavaDoc target;
24     private final String JavaDoc formEventName;
25     private final String JavaDoc formEventValue;
26
27     public AnchorProperties(SimpleURL url, String JavaDoc target) {
28         this.url = url;
29         this.target = target;
30         this.formEventName = null;
31         this.formEventValue = null;
32     }
33
34     public AnchorProperties(String JavaDoc pFormEventName, String JavaDoc pFormEventValue) {
35         formEventName = pFormEventName;
36         formEventValue = pFormEventValue;
37         this.url = null;
38         this.target = null;
39     }
40
41     public SimpleURL getURL() {
42         return url;
43     }
44
45     public String JavaDoc getTarget() {
46         return target;
47     }
48
49     public String JavaDoc getFormEventName() {
50         return formEventName;
51     }
52
53     public String JavaDoc getFormEventValue() {
54         return formEventValue;
55     }
56
57     public boolean isFormAnchor() {
58         return formEventName != null;
59     }
60 }
61
62
63
Popular Tags