/*******************************************************************************
 * Copyright (c) 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/

package org.eclipse.birt.report.engine.script.internal.instance;

import org.eclipse.birt.report.engine.api.script.instance.ILabelInstance;
import org.eclipse.birt.report.engine.content.ILabelContent;
import org.eclipse.birt.report.engine.executor.ExecutionContext;

/**
 * A class representing the runtime state of a label
 */
public class LabelInstance extends ReportItemInstance implements ILabelInstance
{

	public LabelInstance( ILabelContent label, ExecutionContext context  )
	{
		super( label, context );
	}

	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.script.instance.ILabelInstance#getText()
	 */
	public String getText( )
	{
		return ( ( ILabelContent ) content ).getLabelText( );
	}

	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.script.instance.ILabelInstance#setText(java.lang.String)
	 */
	public void setText( String value )
	{
		( ( ILabelContent ) content ).setLabelText( value );
	}

}
