/* */ package quicktime.app.ui;
/* */
/* */ import quicktime.QTException;
/* */ import quicktime.QTRuntimeException;
/* */ import quicktime.QTSession;
/* */ import quicktime.app.event.MouseButtonAdapter;
/* */ import quicktime.app.event.MouseTargetListener;
/* */ import quicktime.app.event.QTMouseEvent;
/* */
/* */ /** @deprecated */
/* */ public class ButtonActivator extends MouseButtonAdapter
/* */ implements MouseTargetListener
/* */ {
/* */
/* */ /** @deprecated */
/* */ protected Object target;
/* */
/* */ /** @deprecated */
/* */ public void mousePressed(QTMouseEvent paramQTMouseEvent)
/* */ {
/* 31 */ if ((paramQTMouseEvent.getTarget() instanceof QTButton)) {
/* 32 */ QTButton localQTButton = (QTButton)paramQTMouseEvent.getTarget();
/* */ try {
/* 34 */ localQTButton.pressed();
/* */ } catch (QTException localQTException) {
/* 36 */ QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), localQTButton, "pressed");
/* */ }
/* */ }
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void mouseReleased(QTMouseEvent paramQTMouseEvent)
/* */ {
/* 48 */ if ((paramQTMouseEvent.getTarget() instanceof QTButton)) {
/* 49 */ QTButton localQTButton = (QTButton)paramQTMouseEvent.getTarget();
/* */ try {
/* 51 */ localQTButton.released();
/* */ } catch (QTException localQTException) {
/* 53 */ QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), localQTButton, "pressed");
/* */ }
/* */ }
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void mouseTargetEntered(QTMouseEvent paramQTMouseEvent)
/* */ {
/* 65 */ if ((paramQTMouseEvent.getTarget() instanceof QTButton)) {
/* 66 */ QTButton localQTButton = (QTButton)paramQTMouseEvent.getTarget();
/* */ try {
/* 68 */ localQTButton.entered(paramQTMouseEvent);
/* */ } catch (QTException localQTException) {
/* 70 */ QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), localQTButton, "pressed");
/* */ }
/* */ }
/* */ }
/* */
/* */ /** @deprecated */
/* */ public void mouseTargetExited(QTMouseEvent paramQTMouseEvent)
/* */ {
/* 82 */ if ((paramQTMouseEvent.getTarget() instanceof QTButton)) {
/* 83 */ QTButton localQTButton = (QTButton)paramQTMouseEvent.getTarget();
/* */ try {
/* 85 */ localQTButton.exited(paramQTMouseEvent);
/* */ } catch (QTException localQTException) {
/* 87 */ QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), localQTButton, "pressed");
/* */ }
/* */ }
/* */ }
/* */
/* */ static
/* */ {
/* 13 */ if ((QTSession.isCurrentOS(4)) && (QTSession.getJavaVersion() >= 65540))
/* 14 */ throw new QTRuntimeException("Unsupported on Mac OS X and Java 1.4 and higher.");
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\Extensions\QTJava.zip
* Qualified Name: quicktime.app.ui.ButtonActivator
* JD-Core Version: 0.6.2
*/