/*********************************************************************************
* TotalCross Software Development Kit *
* Copyright (C) 2003 Fabian Kroeher *
* Copyright (C) 2003-2012 SuperWaba Ltda. *
* All Rights Reserved *
* *
* This library and virtual machine is distributed in the hope that it will *
* be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* This file is covered by the GNU LESSER GENERAL PUBLIC LICENSE VERSION 3.0 *
* A copy of this license is located in file license.txt at the root of this *
* SDK or can be downloaded here: *
* http://www.gnu.org/licenses/lgpl-3.0.txt *
* *
*********************************************************************************/
package totalcross.pim.ce.builtin;
/**
* represents a collection of ITasks
* @author Fabian Kroeher (fabian@kroeher.net)
*
*/
public class ITasks extends IObjects
{
/**
* create a new instance of ITasks and fills it with newly created instances
* of IAppointment which are generated by reading out the native String which comes
* from CeIoBuiltIn.dll by calling the superclass constructor of IObject
* @param nativeString the native String (as StringExt) from CeIoBuiltIn.dll
*/
public ITasks(StringExt nativeString)
{
super(nativeString);
}
/* (non-Javadoc)
* @see pimal.pocketpc.builtin.IObjects#newObject(pimal.pocketpc.builtin.StringExt)
*/
public IObject newObject(StringExt nativeString)
{
return new ITask(nativeString);
}
/**
* returns the ITask at the given index
* @param position the index of the ITask to be returned
* @return the ITask at the given index
*/
public ITask iTaskAt(int position)
{
return (ITask)objects.items[position];
}
}