From ba5342f860a33c8ff502603b221bb0eab5f8351e Mon Sep 17 00:00:00 2001 From: Jaroslav Tulach Date: Sat, 7 Oct 2017 15:03:07 +0200 Subject: [PATCH] Basic implementation of two basic JavaBeans classes --- .../classlib/java/util/TEventListener.java | 20 +++++++++++++ .../classlib/java/util/TEventObject.java | 30 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 classlib/src/main/java/org/teavm/classlib/java/util/TEventListener.java create mode 100644 classlib/src/main/java/org/teavm/classlib/java/util/TEventObject.java diff --git a/classlib/src/main/java/org/teavm/classlib/java/util/TEventListener.java b/classlib/src/main/java/org/teavm/classlib/java/util/TEventListener.java new file mode 100644 index 000000000..6bd039691 --- /dev/null +++ b/classlib/src/main/java/org/teavm/classlib/java/util/TEventListener.java @@ -0,0 +1,20 @@ +/* + * Copyright 2014 Alexey Andreev. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.teavm.classlib.java.util; + +public interface TEventListener { + +} diff --git a/classlib/src/main/java/org/teavm/classlib/java/util/TEventObject.java b/classlib/src/main/java/org/teavm/classlib/java/util/TEventObject.java new file mode 100644 index 000000000..82aaf36a1 --- /dev/null +++ b/classlib/src/main/java/org/teavm/classlib/java/util/TEventObject.java @@ -0,0 +1,30 @@ +/* + * Copyright 2014 Alexey Andreev. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.teavm.classlib.java.util; + +import org.teavm.classlib.java.io.TSerializable; + +public class TEventObject implements TSerializable { + private final Object source; + + public TEventObject(Object source) { + this.source = source; + } + + public Object getSource() { + return source; + } +}