|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 package javax.microedition.midlet; |
|
20 |
|
21 import com.nokia.mj.impl.rt.midp.MidletApplicationBase; |
|
22 |
|
23 /** |
|
24 * A package private class in javax.microedition.midlet package for |
|
25 * accessing protected abstract methods of MIDlet class. |
|
26 * @see com.nokia.mj.impl.rt.midp.MidletApplicationBase. |
|
27 * @author Nokia Corporation |
|
28 * @version $Rev$ |
|
29 */ |
|
30 final class MidletApplication extends MidletApplicationBase |
|
31 { |
|
32 |
|
33 /*** ----------------------------- PACKAGE ---------------------------- */ |
|
34 |
|
35 /** |
|
36 * Constructor is called by the constructor of the MIDlet class. |
|
37 * @param midlet Just created MIDlet which will be forwarded to the |
|
38 * base class that will hold a reference to the MIDlet |
|
39 * during its life time. |
|
40 */ |
|
41 MidletApplication(MIDlet midlet) |
|
42 { |
|
43 super(midlet); |
|
44 } |
|
45 |
|
46 /*** ---------------------------- PROTECTED --------------------------- */ |
|
47 |
|
48 /** |
|
49 * For calling the startApp() method of the MIDlet. |
|
50 * @see javax.microedition.midlet.MIDlet#startApp() |
|
51 */ |
|
52 protected void invokeStartApp() |
|
53 throws MIDletStateChangeException |
|
54 { |
|
55 getMidlet().startApp(); |
|
56 } |
|
57 |
|
58 |
|
59 /** |
|
60 * For calling the destroyApp() method of the MIDlet. |
|
61 * @see javax.microedition.midlet.MIDlet#destroyApp(boolean) |
|
62 */ |
|
63 protected void invokeDestroyApp(boolean unconditional) |
|
64 throws MIDletStateChangeException |
|
65 { |
|
66 getMidlet().destroyApp(unconditional); |
|
67 } |
|
68 |
|
69 /** |
|
70 * For calling the pauseApp() method of the MIDlet. |
|
71 * @see javax.microedition.midlet.MIDlet#pauseApp() |
|
72 */ |
|
73 protected void invokePauseApp() |
|
74 { |
|
75 getMidlet().pauseApp(); |
|
76 } |
|
77 } |