trace/tracebuilder/com.nokia.tracebuilder/src/com/nokia/tracebuilder/engine/TraceObjectPropertyDialogDynamicFlag.java
author Jussi Ryoma <ext-jussi.s.ryoma@nokia.com>
Tue, 24 Aug 2010 14:01:48 +0300
changeset 16 72f198be1c1d
parent 10 ed1c9f64298a
permissions -rw-r--r--
Crash Analyser Carbide Extension 1.4.0

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
* Interface to a flag shown in property dialog
*
*/
package com.nokia.tracebuilder.engine;

/**
 * Extends the property dialog flag interface by providing means to receive
 * template change notifications from the UI
 * 
 */
public interface TraceObjectPropertyDialogDynamicFlag extends
		TraceObjectPropertyDialogFlag {

	/**
	 * Called by the UI when user changes the template
	 * 
	 * @param template
	 *            the new template
	 * @return true if flag changed, false if not
	 */
	public boolean templateChanged(TraceObjectPropertyDialogTemplate template);

	/**
	 * Called by the UI when user changes a property flag
	 * 
	 * @param flag
	 *            the flag that was changed
	 * @return true if flag changed, false if not
	 */
	public boolean flagChanged(TraceObjectPropertyDialogFlag flag);

	/**
	 * Queried by the UI after template has changed. If this returns false, the
	 * UI checkbox is disabled and the flag value is set to isAlwaysEnabled
	 * 
	 * @return availability flag
	 */
	public boolean isAvailable();

	/**
	 * If this returns true, the flag value is set even if the checkbox is
	 * disabled
	 * 
	 * @return the always enabled flag
	 */
	public boolean isAlwaysEnabled();

}