public static class FrevoMain.KeywordCategory
extends java.lang.Object
String
objects (keywords)
and a corresponding image.Constructor and Description |
---|
FrevoMain.KeywordCategory(java.lang.String name,
java.util.ArrayList<java.lang.String> keywords,
java.lang.String imagepath)
Constructs a new category with the given name, list of keywords and
the path to an image
File . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getImagePath()
Returns the path to the representative image of this category.
|
java.util.ArrayList<java.lang.String> |
getKeywords()
Returns a list of keywords in
String objects. |
java.lang.String |
getName()
Returns the name of this category.
|
void |
setElements(int elements)
Sets the number of elements that are associated to this category.
|
java.lang.String |
toString()
Returns a human-readable name of this category with the number of
elements written in brackets.
|
public FrevoMain.KeywordCategory(java.lang.String name, java.util.ArrayList<java.lang.String> keywords, java.lang.String imagepath)
File
.name
- The name of this category.keywords
- A list of String
objects for the
corresponding keywords.imagepath
- A path to an image representing this category.public java.lang.String getName()
public java.util.ArrayList<java.lang.String> getKeywords()
String
objects.public java.lang.String getImagePath()
public void setElements(int elements)
elements
- The new number of elements associated to this category.public java.lang.String toString()
toString
in class java.lang.Object