01: /*
02: * Copyright 2006 Ethan Nicholas. All rights reserved.
03: * Use is subject to license terms.
04: */
05: package jaxx.runtime.css;
06:
07: /** Represents a data binding bound to an attribute at runtime. Used by {@link Pseudoclasses} to keep
08: * track of which data bindings are in effect.
09: */
10: public class DataBinding {
11: private String id;
12:
13: public DataBinding(String id) {
14: this .id = id;
15: }
16:
17: public String getId() {
18: return id;
19: }
20:
21: public boolean equals(Object o) {
22: return (o instanceof DataBinding && ((DataBinding) o).getId()
23: .equals(getId()));
24: }
25:
26: public int hashCode() {
27: return id.hashCode();
28: }
29: }
|