+
+ specialBoxProperties.put("redirect", new SpecialBoxProperty() {
+ public void put(Box b, Object value) { }
+ public Object get(Box b) {
+ if (b.redirect == null) return null;
+ if (b.redirect == b) return Boolean.TRUE;
+ return get(b.redirect);
+ }
+ });
+
+ specialBoxProperties.put("apply", new SpecialBoxProperty() {
+ public void put(Box b, Object value) { }
+ public Object get(final Box b) { return new Apply(b); }
+ });
+
+ specialBoxProperties.put("id", new SpecialBoxProperty() {
+ public void put(Box b, Object value) { }
+ public Object get(Box b) { return b.id; }
+ });