1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the GNU General Public License v3+, or later.
7 // See license.mkd for licensing and copyright information.
8 // ---------------------------------------------------------------------------
10 package cc
.squirreljme
.vm
.springcoat
;
12 import cc
.squirreljme
.jvm
.mle
.brackets
.UIDisplayBracket
;
13 import cc
.squirreljme
.jvm
.mle
.callbacks
.UIDisplayCallback
;
14 import net
.multiphasicapps
.classfile
.ClassName
;
15 import net
.multiphasicapps
.classfile
.MethodNameAndType
;
18 * Calls into SpringCoat and performs the callback.
22 public class UIDisplayCallbackAdapter
23 extends UIDrawableCallbackAdapter
24 implements UIDisplayCallback
26 /** The class used to call back. */
27 private static final ClassName CALLBACK_CLASS
=
29 "cc/squirreljme/jvm/mle/callbacks/UIDisplayCallback");
32 * Initializes the callback.
34 * @param __machine The machine to refer to.
35 * @param __callback The callback to forward to.
36 * @throws NullPointerException On null arguments.
39 public UIDisplayCallbackAdapter(SpringMachine __machine
,
40 SpringObject __callback
)
41 throws NullPointerException
43 super(UIDisplayCallbackAdapter
.CALLBACK_CLASS
, __machine
, __callback
);
51 public void later(UIDisplayBracket __display
, int __serialId
)
54 MethodNameAndType
.ofArguments("later", null,
55 "Lcc/squirreljme/jvm/mle/brackets/UIDisplayBracket;",
56 "I"), this.mapDrawable(__display
), __serialId
);