|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sourceforge.espro.model.AbstractModel org.sourceforge.espro.model.Item
public class Item
The Item class support exactly one item and will be stored in the Questionnaire's items ArrayList. It knows all about how to view an item and how to get the elicited data from it.
Field Summary |
---|
Fields inherited from class org.sourceforge.espro.model.AbstractModel |
---|
pcs |
Constructor Summary | |
---|---|
Item()
A simple constructor. |
|
Item(Item i)
Creates a new Item from a given Item. |
|
Item(java.lang.String question,
ElicitationMethod method)
This is the constructor which will normally be used. |
Method Summary | |
---|---|
long |
getDuration()
Returns the number of milliseconds between calling start() and end(). |
java.lang.String |
getId()
Returns the id of the item. |
ElicitationMethod |
getMethod()
Returns the current method used in this item. |
Settings |
getSettings()
Returns the item settings. |
boolean |
isDone()
Returns if the Item is done. |
boolean |
isFrozen()
DOCUMENT ME! |
java.lang.String |
readableString()
Returns a readable string. |
void |
setDone(boolean done)
Sets the Item if it is done. |
void |
setFrozen(boolean frozen)
DOCUMENT ME! |
void |
setId(java.lang.String id)
Sets the id of the item. |
void |
setMethod(ElicitationMethod method)
Sets a method for the item. |
void |
setSaved(boolean saved)
Sets the saved state. |
void |
setSettings(Settings settings)
Sets the item settings. |
void |
start()
Starts the timer. |
void |
stop()
Stops the timer. |
java.lang.String |
toString()
Returns the item as string. |
Methods inherited from class org.sourceforge.espro.model.AbstractModel |
---|
addPropertyChangeListener, addPropertyChangeListener, isSaved, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Item()
public Item(java.lang.String question, ElicitationMethod method)
question
- The question to ask the subject.method
- The Method to elicite the probability.public Item(Item i)
i
- The item to copy a new item from.Method Detail |
---|
public java.lang.String getId()
public ElicitationMethod getMethod()
public Settings getSettings()
public boolean isDone()
public boolean isFrozen()
public java.lang.String readableString()
public void setDone(boolean done)
QuestionnaireAssistant
.
done
- True if the item is done, false otherwise.public void setFrozen(boolean frozen)
frozen
- DOCUMENT ME!public void setId(java.lang.String id)
id
- The id to the item.public void setMethod(ElicitationMethod method)
method
- The method to set.public void setSaved(boolean saved)
Fires a 'saved' property change if the state changes.
setSaved
in class AbstractModel
saved
- the saved to setpublic void setSettings(Settings settings)
settings
- The settings.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public void start()
public void stop()
public long getDuration()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |