| 202 | event("vetoableChange", e ); } |
| 203 | |
| 204 | public boolean imageUpdate(java.awt.Image img, int infoflags, |
| 205 | int x, int y, int width, int height) { |
| 206 | |
| 207 | BshMethod method = null; |
| 208 | try { |
| 209 | method = namespace.getMethod( "imageUpdate", |
| 210 | new Class [] { null, null, null, null, null, null } ); |
| 211 | } catch ( UtilEvalError e ) {/*squeltch*/ } |
| 212 | |
| 213 | if(method != null) |
| 214 | try { |
| 215 | CallStack callstack = new CallStack( namespace ); |
| 216 | method.invoke( |
| 217 | new Object[] { |
| 218 | img, new Primitive(infoflags), new Primitive(x), |
| 219 | new Primitive(y), new Primitive(width), |
| 220 | new Primitive(height) }, |
| 221 | declaringInterpreter, callstack, null |
| 222 | ); |
| 223 | } catch(EvalError e) { |
| 224 | declaringInterpreter.error( |
| 225 | "local event handler imageUpdate: method invocation error:" + e ); |
| 226 | } |
| 227 | return true; |
| 228 | } |
| 229 | |
| 230 | } |
| 231 | |