|
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 * Interface to a flag shown in property dialog |
|
17 * |
|
18 */ |
|
19 package com.nokia.tracebuilder.engine; |
|
20 |
|
21 /** |
|
22 * Extends the property dialog flag interface by providing means to receive |
|
23 * template change notifications from the UI |
|
24 * |
|
25 */ |
|
26 public interface TraceObjectPropertyDialogDynamicFlag extends |
|
27 TraceObjectPropertyDialogFlag { |
|
28 |
|
29 /** |
|
30 * Called by the UI when user changes the template |
|
31 * |
|
32 * @param template |
|
33 * the new template |
|
34 * @return true if flag changed, false if not |
|
35 */ |
|
36 public boolean templateChanged(TraceObjectPropertyDialogTemplate template); |
|
37 |
|
38 /** |
|
39 * Called by the UI when user changes a property flag |
|
40 * |
|
41 * @param flag |
|
42 * the flag that was changed |
|
43 * @return true if flag changed, false if not |
|
44 */ |
|
45 public boolean flagChanged(TraceObjectPropertyDialogFlag flag); |
|
46 |
|
47 /** |
|
48 * Queried by the UI after template has changed. If this returns false, the |
|
49 * UI checkbox is disabled and the flag value is set to isAlwaysEnabled |
|
50 * |
|
51 * @return availability flag |
|
52 */ |
|
53 public boolean isAvailable(); |
|
54 |
|
55 /** |
|
56 * If this returns true, the flag value is set even if the checkbox is |
|
57 * disabled |
|
58 * |
|
59 * @return the always enabled flag |
|
60 */ |
|
61 public boolean isAlwaysEnabled(); |
|
62 |
|
63 } |