01: /*
02: * Copyright 2000,2005 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13: package org.wings.util;
14:
15: import org.wings.SimpleURL;
16:
17: /**
18: * This class contains the properties for the AnchorStack.
19: */
20: public final class AnchorProperties {
21: private final SimpleURL url;
22: private final String target;
23: private final String formEventName;
24: private final String formEventValue;
25:
26: public AnchorProperties(SimpleURL url, String target) {
27: this .url = url;
28: this .target = target;
29: this .formEventName = null;
30: this .formEventValue = null;
31: }
32:
33: public AnchorProperties(String pFormEventName,
34: String 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 getTarget() {
46: return target;
47: }
48:
49: public String getFormEventName() {
50: return formEventName;
51: }
52:
53: public String getFormEventValue() {
54: return formEventValue;
55: }
56:
57: public boolean isFormAnchor() {
58: return formEventName != null;
59: }
60: }
|