public class ActivitySequence extends Object implements Editable, Domable
JClicProject
. The sequence are formed by
an ordered list of objects of type ActivitySequenceElement
,
internally stored in a ArrayList
. It stores also a transient pointer
to a current element, and provides several methods useful to deal with sequences.Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_NAME |
protected JClicProject |
project |
Constructor and Description |
---|
ActivitySequence(JClicProject project)
Creates new ActivitySequence
|
protected JClicProject project
public static final String ELEMENT_NAME
public ActivitySequence(JClicProject project)
public Editor getEditor(Editor parent)
Editable
Editor
associated to this object.public JClicProject getProject()
public void add(ActivitySequenceElement ase)
public void insertElementAt(ActivitySequenceElement ase, int index)
public void remove(ActivitySequenceElement ase)
public int getSize()
public Element getJDomElement()
getJDomElement
in interface Domable
public void setProperties(Element e, Object aux) throws Exception
setProperties
in interface Domable
Exception
public void clear()
public int getElementIndex(ActivitySequenceElement ase)
public ActivitySequenceElement getElement(int n, boolean updateCurrentAct)
public ActivitySequenceElement getElementByTag(String tag, boolean updateCurrentAct)
public ActivitySequenceElement[] getElements()
public boolean hasNextAct(boolean hasReturn)
public boolean hasPrevAct(boolean hasReturn)
public int getNavButtonsFlag()
public ActivitySequenceElement getCurrentAct()
public int getCurrentActNum()
public String getSequenceForElement(int e)
public ActivitySequenceElement getElementByActivityName(String activityName)
public boolean checkCurrentActivity(String name)
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.