|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.model.tconview.TconView
public class TconView
A corpus table of contents view.
Each corpus has one or more table of contents views. There are five types of views:
Each table of contents view has an optional label for the radio button in the table of contents window. Radio buttons are used and labels should be specified if a corpus has more than one table of contents view.
Field Summary | |
---|---|
static int |
BY_AUTHOR_VIEW_TYPE
By author, then by pub year. |
static int |
CATEGORY_VIEW_TYPE
A list of categories, each of which contains a list of works. |
static int |
LIST_PUB_YEAR_VIEW_TYPE
A list of works in increasing order by publication year. |
static int |
LIST_TAG_VIEW_TYPE
A list of works in alphabetical order by tag (the default view). |
static int |
LIST_VIEW_TYPE
A list of works in a specified order. |
Constructor Summary | |
---|---|
TconView()
Creates a new table of contents view. |
Method Summary | |
---|---|
void |
addCategory(TconCategory category)
Adds a category. |
void |
addWorkTag(java.lang.String workTag)
Adds a work tag. |
java.util.List |
getCategories()
Gets the list of categories. |
java.lang.Long |
getId()
Gets the unique id. |
java.lang.String |
getRadioButtonLabel()
Gets the radio button label. |
int |
getViewType()
Gets the type of the view. |
java.util.List |
getWorkTags()
Gets the list of work tags. |
void |
setRadioButtonLabel(java.lang.String radioButtonLabel)
Sets the radio button label. |
void |
setViewType(int viewType)
Sets the type of the view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LIST_TAG_VIEW_TYPE
public static final int LIST_PUB_YEAR_VIEW_TYPE
public static final int LIST_VIEW_TYPE
public static final int CATEGORY_VIEW_TYPE
public static final int BY_AUTHOR_VIEW_TYPE
Constructor Detail |
---|
public TconView()
Method Detail |
---|
public java.lang.Long getId()
public int getViewType()
public void setViewType(int viewType)
viewType
- The type of the view. public java.lang.String getRadioButtonLabel()
public void setRadioButtonLabel(java.lang.String radioButtonLabel)
radioButtonLabel
- The radio button label, or null if none. public java.util.List getWorkTags()
public void addWorkTag(java.lang.String workTag)
The new work tag is added to the ned of the ordered list of work tags.
workTag
- Work tag. public java.util.List getCategories()
public void addCategory(TconCategory category)
The new category is added to the end of the ordered list of categories.
category
- Category.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |