event.java

来自「用java写的jt-jpeg。jt表示java time package」· Java 代码 · 共 41 行

JAVA
41
字号
/*
 |
 | Event.java
 |
 | Event class
 | James Shin Young
 |
 | Created:  January 8, 1998
 |
 | Copyright (c) 1998 by James Shin Young and the Regents
 | of the University of California.  All rights reserved.
 |
 | Permission to use, copy, modify, and distribute this software
 | and its documentation for NON-COMMERCIAL purposes and without
 | fee is hereby granted provided that this copyright notice
 | appears in all copies.
 |
 */

package jcp;

/**
 *  Event class for use by components
 *  @author James Shin Young
 *  @see Component
 */

public class Event
{
    private Port port;
    private Object signal;

    public Event(Object signal,Port port) {
        this.port = port;
        this.signal = signal;
    }

    public final Port port() { return port; }
    public final Object signal() { return signal; }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?