|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.acewiki.core.EditorController
public class EditorController
This class controls the behavior and content of the predictive editor.
| Constructor Summary | |
|---|---|
EditorController()
|
|
| Method Summary | |
|---|---|
void |
addExtensibleCategory(java.lang.String category,
java.lang.String menuGroup,
java.lang.String type,
int wordNumber)
Adds a grammatical category that is extensible. |
void |
addMenuGroup(java.lang.String menuGroup,
int colorShift)
Adds a menu group. |
void |
addPlainCategory(java.lang.String category,
java.lang.String menuGroup)
Adds a grammatical category that is not extensible. |
java.lang.String[] |
getAutocompleteTokens()
Returns the tokens used for autocompletion of sentences. |
int |
getColorShift(java.lang.String menuBlockName)
Returns the color shift for the given menu group. |
java.util.List<java.lang.String> |
getExtensibleCategories()
Returns a list of all extensible categories. |
java.lang.String |
getMenuGroup(java.lang.String category)
Returns the menu group for the given category. |
java.util.List<java.lang.String> |
getMenuGroups()
Returns all menu groups in the order they appear in the editor. |
int |
getWordNumber(java.lang.String category)
Returns the word number for the given extensible category, or null if the category is not extensible. |
java.lang.String |
getWordType(java.lang.String category)
Returns the word type for the given extensible category, or null if the category is not extensible. |
void |
setAutocompleteTokens(java.lang.String... autocompleteTokens)
Sets the tokens that normally form the end of a sentence and that should be used to automatically complete sentences. |
void |
setDefaultMenuGroup(java.lang.String defaultMenuGroup)
Sets the menu group for all words that have no menu group assigned otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorController()
| Method Detail |
|---|
public void addMenuGroup(java.lang.String menuGroup,
int colorShift)
menuGroup - The name of the menu group to be added.colorShift - The color shift.public void setDefaultMenuGroup(java.lang.String defaultMenuGroup)
defaultMenuGroup - The name of the default menu group.public java.util.List<java.lang.String> getMenuGroups()
public java.util.List<java.lang.String> getExtensibleCategories()
public int getColorShift(java.lang.String menuBlockName)
menuBlockName - The name of the menu group.
public void addExtensibleCategory(java.lang.String category,
java.lang.String menuGroup,
java.lang.String type,
int wordNumber)
category - The extensible category name.menuGroup - The menu group for the category.type - The type of the respective ontology elements.wordNumber - The word number.
public void addPlainCategory(java.lang.String category,
java.lang.String menuGroup)
category - The category name.menuGroup - The menu group for the category.public java.lang.String getMenuGroup(java.lang.String category)
category - The category name.
public java.lang.String getWordType(java.lang.String category)
category - The category name.
public int getWordNumber(java.lang.String category)
category - The category name.
public void setAutocompleteTokens(java.lang.String... autocompleteTokens)
autocompleteTokens - public java.lang.String[] getAutocompleteTokens()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||