equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 package javax.microedition.amms; |
|
18 |
|
19 import javax.microedition.media.Controllable; |
|
20 import javax.microedition.media.Control; |
|
21 import javax.microedition.amms.control.audio3d.LocationControl; |
|
22 |
|
23 |
|
24 /** |
|
25 * Please refer JSR 234 for more details. |
|
26 * |
|
27 */ |
|
28 public class Spectator implements Controllable |
|
29 { |
|
30 /** |
|
31 * All method calls are delegated to this Controllable object |
|
32 */ |
|
33 private Controllable iControllable; |
|
34 |
|
35 /** |
|
36 * Package private constructor. Can be used only from GlobalManager. |
|
37 * @param aControllable Used to delegate all operations. |
|
38 */ |
|
39 Spectator(Controllable aControllable) |
|
40 { |
|
41 iControllable = aControllable; |
|
42 } |
|
43 |
|
44 /** |
|
45 * From JSR. This is never called. Added to state that constructor |
|
46 * is private. |
|
47 */ |
|
48 private Spectator() |
|
49 { |
|
50 } |
|
51 |
|
52 /** |
|
53 * From JSR |
|
54 */ |
|
55 public Control getControl(java.lang.String aControlType) |
|
56 { |
|
57 return iControllable.getControl(aControlType); |
|
58 } |
|
59 |
|
60 /** |
|
61 * From JSR |
|
62 */ |
|
63 public Control[] getControls() |
|
64 { |
|
65 return iControllable.getControls(); |
|
66 } |
|
67 |
|
68 } |