uidesigner/com.nokia.sdt.series60.componentlibrary/components/transient/SingleLineDataQuery_2.0.js
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 the License "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 include("../implLibrary.js") |
|
18 |
|
19 // IComponentValidator |
|
20 |
|
21 function SingleLineDataQuery20Validator() { |
|
22 } |
|
23 |
|
24 SingleLineDataQuery20Validator.prototype.validate = function(instance, laf) { |
|
25 var messages = null; |
|
26 // in case the baseline sdk is changed from 2.1 and 2.0 |
|
27 var properties = instance.properties; |
|
28 if (properties.type == null) { |
|
29 var message = createSimpleModelError(instance, |
|
30 "type", |
|
31 lookupString("InvalidTypeError"), |
|
32 [ instance.name ] ); |
|
33 messages = new java.util.ArrayList(); |
|
34 messages.add(message); |
|
35 } |
|
36 return messages; |
|
37 } |
|
38 |
|
39 SingleLineDataQuery20Validator.prototype.queryPropertyChange = function(instance, propertyPath, |
|
40 newVal, laf) { |
|
41 // Only need to check at load time |
|
42 return null; |
|
43 } |
|
44 |