// Copyright (c) 2007, Mihai Preda. // Available under the MIT License (see COPYING). import javax.microedition.lcdui.Command; class Cmd extends Command { static private int priority = 0; Cmd(String label, int id, int commandType) { super(label, commandType, ++priority); this.id = id; } Cmd(String label, int id) { this(label, id, Command.SCREEN); } Cmd(int labelId, int id, int commandType) { this(L.s[labelId], id, commandType); } Cmd(int labelId, int id) { this(L.s[labelId], id); } int getId() { return id; } int id; }