X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FSpecialBoxProperty.java;h=f3993cc48fa500842ca7424eeff3ef0d8401485d;hb=73cae1c52c6d2c3a3715d65fc3773753f79d0c9a;hp=cb64849031f8dc13ecde8ddb3deb9f6b54fdd3a2;hpb=87be10c953a7c5a3b7b032e0e1c763beabfc8090;p=org.ibex.core.git diff --git a/src/org/xwt/SpecialBoxProperty.java b/src/org/xwt/SpecialBoxProperty.java index cb64849..f3993cc 100644 --- a/src/org/xwt/SpecialBoxProperty.java +++ b/src/org/xwt/SpecialBoxProperty.java @@ -101,8 +101,8 @@ class SpecialBoxProperty { else if (s.equals("pink")) newcolor = pink; else if (s.equals("yellow")) newcolor = yellow; else if (s.equals("white")) newcolor = white; - else if (Log.on) Log.log(this, "invalid color " + s); - + else if (Log.on) Log.log(this, "invalid color \"" + s + "\" at " + + Context.enter().interpreterSourceFile + ":" + Context.enter().interpreterLine); if (newcolor == b.color) return; b.color = newcolor; b.dirty(); @@ -145,7 +145,8 @@ class SpecialBoxProperty { else if (s.equals("pink")) newtextcolor = pink; else if (s.equals("yellow")) newtextcolor = yellow; else if (s.equals("white")) newtextcolor = white; - else if (Log.on) Log.log(this, "invalid textcolor " + s); + else if (Log.on) Log.log(this, "invalid color \"" + s + "\" at " + + Context.enter().interpreterSourceFile + ":" + Context.enter().interpreterLine); if (newtextcolor == b.textcolor) return; b.textcolor = newtextcolor; @@ -646,6 +647,15 @@ class SpecialBoxProperty { b.set(dmax, 1, stosh(value)); } }); + + 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); + } + }); }