uidesigner/com.nokia.carbide.cpp.uiq.components/components/controls/ControlBase/ControlBase.js
author dadubrow
Tue, 07 Apr 2009 08:57:24 -0500
branchRCL_2_0
changeset 63 6f3cc8fac9c7
parent 2 d760517a8095
permissions -rw-r--r--
[Bug 8811] Only track feature for first and last open editor.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
/*
cawthron
parents:
diff changeset
     2
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
cawthron
parents:
diff changeset
     3
* All rights reserved.
cawthron
parents:
diff changeset
     4
* This component and the accompanying materials are made available
cawthron
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
cawthron
parents:
diff changeset
     6
* which accompanies this distribution, and is available
cawthron
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
cawthron
parents:
diff changeset
     8
*
cawthron
parents:
diff changeset
     9
* Initial Contributors:
cawthron
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
cawthron
parents:
diff changeset
    11
*
cawthron
parents:
diff changeset
    12
* Contributors:
cawthron
parents:
diff changeset
    13
*
cawthron
parents:
diff changeset
    14
* Description: 
cawthron
parents:
diff changeset
    15
*
cawthron
parents:
diff changeset
    16
*/
cawthron
parents:
diff changeset
    17
cawthron
parents:
diff changeset
    18
cawthron
parents:
diff changeset
    19
function ControlBaseEventInfo() {
cawthron
parents:
diff changeset
    20
}
cawthron
parents:
diff changeset
    21
cawthron
parents:
diff changeset
    22
/** Only return a subset of events when a control is in a setting item list */
cawthron
parents:
diff changeset
    23
ControlBaseEventInfo.prototype.getEventGroups = function(instance) {
cawthron
parents:
diff changeset
    24
	if (instance.componentId == "com.nokia.carbide.uiq.CQikContainer")
cawthron
parents:
diff changeset
    25
		return ["Container"];
cawthron
parents:
diff changeset
    26
	else
cawthron
parents:
diff changeset
    27
		return ["Control"];
cawthron
parents:
diff changeset
    28
}
cawthron
parents:
diff changeset
    29
cawthron
parents:
diff changeset
    30
/** Only return a subset of events when a control is in a setting item list */
cawthron
parents:
diff changeset
    31
ControlBaseEventInfo.prototype.getDefaultEventName = function(instance) {
cawthron
parents:
diff changeset
    32
	return null;	// select component default
cawthron
parents:
diff changeset
    33
}