_XUserInputInterception.java (ef39d40d) _XUserInputInterception.java (bb6af6bc)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 259 unchanged lines hidden (view full) ---

268 * @return returns <CODE>TRUE</CODE> in erery case
269 */
270 public boolean keyReleased( KeyEvent oEvent ){
271 log.println("XKeyHandler 1: keyReleased-Event");
272 m_keyReleased1 = true;
273 return true;
274 }
275 /**
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 259 unchanged lines hidden (view full) ---

268 * @return returns <CODE>TRUE</CODE> in erery case
269 */
270 public boolean keyReleased( KeyEvent oEvent ){
271 log.println("XKeyHandler 1: keyReleased-Event");
272 m_keyReleased1 = true;
273 return true;
274 }
275 /**
276 * This event does nothing usefull
276 * This event does nothing useful
277 * @param oEvent refers to the object that fired the event.
278 */
279 public void disposing( EventObject oEvent ){
280 log.println("XKeyHandler 1: disposing-Event");
281 }
282 }
283 /**
284 * Listener which added and its method must be called

--- 20 unchanged lines hidden (view full) ---

305 */
306 public boolean keyReleased( KeyEvent oEvent ){
307 log.println("XKeyHandler 2: keyReleased-Event: " +
308 "This should not be happen because listener is removed!");
309 m_keyReleased2 = true;
310 return true;
311 }
312 /**
277 * @param oEvent refers to the object that fired the event.
278 */
279 public void disposing( EventObject oEvent ){
280 log.println("XKeyHandler 1: disposing-Event");
281 }
282 }
283 /**
284 * Listener which added and its method must be called

--- 20 unchanged lines hidden (view full) ---

305 */
306 public boolean keyReleased( KeyEvent oEvent ){
307 log.println("XKeyHandler 2: keyReleased-Event: " +
308 "This should not be happen because listener is removed!");
309 m_keyReleased2 = true;
310 return true;
311 }
312 /**
313 * This event does nothing usefull
313 * This event does nothing useful
314 * @param oEvent refers to the object that fired the event.
315 */
316 public void disposing( EventObject oEvent ){
317 log.println("XKeyHandler 2: disposing-Event: " +
318 "This should not be happen because listener is removed!");
319 }
320 }
321

--- 20 unchanged lines hidden (view full) ---

342 * @return returns <CODE>TRUE</CODE> in erery case
343 */
344 public boolean mouseReleased( MouseEvent oEvent ){
345 log.println("XMouseClickHandler 1: mouseReleased-Event");
346 m_mouseReleased1 = true;
347 return true;
348 }
349 /**
314 * @param oEvent refers to the object that fired the event.
315 */
316 public void disposing( EventObject oEvent ){
317 log.println("XKeyHandler 2: disposing-Event: " +
318 "This should not be happen because listener is removed!");
319 }
320 }
321

--- 20 unchanged lines hidden (view full) ---

342 * @return returns <CODE>TRUE</CODE> in erery case
343 */
344 public boolean mouseReleased( MouseEvent oEvent ){
345 log.println("XMouseClickHandler 1: mouseReleased-Event");
346 m_mouseReleased1 = true;
347 return true;
348 }
349 /**
350 * This event does nothing usefull
350 * This event does nothing useful
351 * @param oEvent refers to the object that fired the event.
352 */
353 public void disposing( EventObject oEvent ){
354 log.println("XMouseClickHandler 1: disposing-Event");
355 }
356 };
357
358 /**

--- 21 unchanged lines hidden (view full) ---

380 */
381 public boolean mouseReleased( MouseEvent oEvent ){
382 log.println("XMouseClickHandler 2: mouseReleased-Event: " +
383 "This should not be happen because listener is removed!");
384 m_mouseReleased2 = true;
385 return true;
386 }
387 /**
351 * @param oEvent refers to the object that fired the event.
352 */
353 public void disposing( EventObject oEvent ){
354 log.println("XMouseClickHandler 1: disposing-Event");
355 }
356 };
357
358 /**

--- 21 unchanged lines hidden (view full) ---

380 */
381 public boolean mouseReleased( MouseEvent oEvent ){
382 log.println("XMouseClickHandler 2: mouseReleased-Event: " +
383 "This should not be happen because listener is removed!");
384 m_mouseReleased2 = true;
385 return true;
386 }
387 /**
388 * This event does nothing usefull
388 * This event does nothing useful
389 * @param oEvent refers to the object that fired the event.
390 */
391 public void disposing( EventObject oEvent ){
392 log.println("XMouseClickHandler 2: disposing-Event: " +
393 " This should not be happen because listener is removed!");
394 }
395 };
396

--- 15 unchanged lines hidden (view full) ---

412 private int eventType = 0;
413 /**
414 * represents a <CODE>XModel</CODE> of a document
415 */
416 private XModel xModel = null;
417
418 /**
419 * Creates an instacne of this class. The parameter <CODE>eType</CODE> represents
389 * @param oEvent refers to the object that fired the event.
390 */
391 public void disposing( EventObject oEvent ){
392 log.println("XMouseClickHandler 2: disposing-Event: " +
393 " This should not be happen because listener is removed!");
394 }
395 };
396

--- 15 unchanged lines hidden (view full) ---

412 private int eventType = 0;
413 /**
414 * represents a <CODE>XModel</CODE> of a document
415 */
416 private XModel xModel = null;
417
418 /**
419 * Creates an instacne of this class. The parameter <CODE>eType</CODE> represents
420 * the kind of event wich will be triggert at <CODE>run()</CODE>
420 * the kind of event which will be triggert at <CODE>run()</CODE>
421 * @param model the model of a document
422 * @param eType the kind of event which should be trigger
423 */
424 public EventTrigger(XModel model, int eType)
425 {
426 this.xModel = model;
427 this.eventType = eType;
428 }
429
430 /**
421 * @param model the model of a document
422 * @param eType the kind of event which should be trigger
423 */
424 public EventTrigger(XModel model, int eType)
425 {
426 this.xModel = model;
427 this.eventType = eType;
428 }
429
430 /**
431 * Triggers the event wich is represented by <CODE>eventType</CODE>
431 * Triggers the event which is represented by <CODE>eventType</CODE>
432 * The scenarios are:
433 * <ul>
434 * <li>EventTest.EventTriggerType.MOUSE_KLICK_INTO_DOC
435 * which calls
436 * <li><CODE>clickIntoDoc</CODE></LI>
437 * </LI>
438 * <li>EventTest.EventTriggerType.KEY_TEXT_INTO_DOC
439 * which calls

--- 96 unchanged lines hidden ---
432 * The scenarios are:
433 * <ul>
434 * <li>EventTest.EventTriggerType.MOUSE_KLICK_INTO_DOC
435 * which calls
436 * <li><CODE>clickIntoDoc</CODE></LI>
437 * </LI>
438 * <li>EventTest.EventTriggerType.KEY_TEXT_INTO_DOC
439 * which calls

--- 96 unchanged lines hidden ---