1 14 package org.wings.util; 15 16 import org.wings.SimpleURL; 17 18 21 public final class AnchorProperties { 22 private final SimpleURL url; 23 private final String target; 24 private final String formEventName; 25 private final String formEventValue; 26 27 public AnchorProperties(SimpleURL url, String target) { 28 this.url = url; 29 this.target = target; 30 this.formEventName = null; 31 this.formEventValue = null; 32 } 33 34 public AnchorProperties(String pFormEventName, 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 } 61 62 63 | Popular Tags |