|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.content.items.Item
org.activemath.content.items.DynamicItem
org.activemath.content.items.DynamicItemText
public class DynamicItemText
Dynamic Item for dynamic text. Generates a omtext element according to the given parameters. A normal text has the omtext type "narrative", a link has the omtext type "remark".
| Field Summary | |
|---|---|
protected List<OJElement> |
cmpList
|
protected static String |
DESCRIPTION
|
protected static String |
ITEM
|
protected OJElement |
omtext
Contains the most information of this object. |
protected static String |
ServiceNameLink
|
protected static String |
ServiceNameNLG
|
protected static String |
TITLE
|
protected static String |
TYPE
This might be defined by OJConstants, because in JShopUtil this is defined again. |
protected String |
url
|
protected static String |
URL
|
| Fields inherited from class org.activemath.content.items.DynamicItem |
|---|
log, queryName, queryParameters, references, serializedNumber, serviceName, type, userId |
| Fields inherited from class org.activemath.content.items.Item |
|---|
copyrights, dependsOn, factory, flavorSet, forId, forIds, id, mbaseId, metadata, omdocTag, omdocType, relatedTo, relationsIn, relationsOut, shouldUseTitleFromID, theoryId, title, titles |
| Method Summary | |
|---|---|
void |
addContentMapFromPhrase(String phrase)
Add content map into the text. |
protected void |
buildDOM()
Here the omtext DOM object is built. |
OJElement |
getTextualDOM()
We can get the specialised DOM text as result here. |
protected void |
initMetadata()
|
void |
initTitles(String userId)
For this kind of DynamicItem, there are two ways to get the title: One is to use the NLG to get the textMap, which will call the mediator to get the Titel Map from Repository. |
List |
instanciateDynamicItem(String userId)
Here we execute the DynamicItemText. |
void |
setHelpLink(String url)
We build up the Link for Help for the item here. |
void |
setLink(String url)
|
void |
setText(String text,
String lang)
|
void |
setTitle(String title,
String lang)
|
| Methods inherited from class org.activemath.content.items.DynamicItem |
|---|
getCopyrightData, getCopyrightElement, getForId, getForIds, getIncomingRelations, getMetadata, getMetadataElement, getOutgoingRelations, getQueryName, getQueryParameters, getReferences, getSerializedNumber, getServiceName, getTitles, getType, hasFlavors, initQueryParameters, isLazyTask, isNLGText, isServiceCall, isText, setLink, toOJDynamicItem, toString |
| Methods inherited from class org.activemath.content.items.Item |
|---|
equals, getDependsOn, getDifficulty, getFlavorSet, getFullDOM, getId, getMBaseId, getNumWords, getOmdocTag, getOmdocType, getRelatedTo, getSystemId, getTheoryId, getTitle, getTitle, getTitle, getTitles, hashCode, setUseTitleFromID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String TYPE
protected static final String ServiceNameNLG
protected static final String ServiceNameLink
protected static final String URL
protected static final String TITLE
protected static final String DESCRIPTION
protected static final String ITEM
protected OJElement omtext
protected List<OJElement> cmpList
protected String url
| Method Detail |
|---|
public List instanciateDynamicItem(String userId)
instanciateDynamicItem in class DynamicItemuserId -
public void initTitles(String userId)
initTitles in class DynamicItemuserId - protected void buildDOM()
public void addContentMapFromPhrase(String phrase)
phrase - (fullname of the phrase)
public void setText(String text,
String lang)
public void setTitle(String title,
String lang)
protected void initMetadata()
public OJElement getTextualDOM()
getTextualDOM in class Itemnull if there is
a problem.public void setHelpLink(String url)
url - public void setLink(String url)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||