Attempt at getting the launcher working properly.
[SquirrelJME.git] / modules / midp-lcdui / src / main / java / javax / microedition / lcdui / CommandLayoutPolicy.java
blobf7a90e5f67ea50dcebff425631e984a2bf22a96c
1 // -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
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 javax.microedition.lcdui;
12 import cc.squirreljme.runtime.cldc.annotation.Api;
13 import cc.squirreljme.runtime.lcdui.SerializedEvent;
15 /**
16 * This interface is called when commands need to be laid out onto the display.
18 * This allows the use of:
19 * - {@link Displayable#setCommand(Command, int)}.
20 * - {@link Displayable#setMenu(Menu, int)}.
21 * - {@link Displayable#removeCommandOrMenu(int)}.
23 * @since 2020/09/27
25 @SuppressWarnings("InterfaceWithOnlyOneDirectInheritor")
26 @Api
27 public interface CommandLayoutPolicy
29 /**
30 * Callback for when the policy is being updated.
32 * @param __d The displayable getting the policy set.
33 * @since 2020/09/27
35 @Api
36 @SerializedEvent
37 void onCommandLayout(Displayable __d);