|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jbbres.lib.actions.tools.categories.SimpleCategory
public class SimpleCategory
Provides a basic implementations for the
Category
interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.jbbres.lib.actions.elements.Category |
---|
Category.SearchField |
Constructor Summary | |
---|---|
SimpleCategory(java.lang.String categoryName)
Creates a new Category , with the given name and the default
category icon. |
|
SimpleCategory(java.lang.String categoryName,
javax.swing.ImageIcon categoryIcon)
Creates a new Category , with the given name and icon. |
|
SimpleCategory(java.lang.String categoryName,
java.lang.String categoryDescription,
javax.swing.ImageIcon categoryIcon)
Creates a new Category , with the given name, description and
icon. |
Method Summary | |
---|---|
int |
compareTo(Category c)
|
boolean |
equals(java.lang.Object c)
|
java.lang.String |
getDescription()
Returns the description of the category. |
javax.swing.ImageIcon |
getIcon()
Returns the icon representing the category. |
java.lang.String |
getID()
Returns the unique ID of the category. |
java.lang.String |
getName()
Returns the name of the category. |
void |
setDescription(java.lang.String categoryDescription)
Sets the description of the category. |
void |
setIcon(javax.swing.ImageIcon categoryIcon)
Sets the icon representing the category. |
void |
setID(java.lang.String id)
Sets the iD. |
void |
setName(java.lang.String categoryName)
Sets the name of the category. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleCategory(java.lang.String categoryName)
Category
, with the given name and the default
category icon.
categoryName
- - name of the categorypublic SimpleCategory(java.lang.String categoryName, javax.swing.ImageIcon categoryIcon)
Category
, with the given name and icon.
categoryName
- - name of the categorycategoryIcon
- - icon representing the categorypublic SimpleCategory(java.lang.String categoryName, java.lang.String categoryDescription, javax.swing.ImageIcon categoryIcon)
Category
, with the given name, description and
icon.
categoryName
- - name of the categorycategoryDescription
- - description of the categorycategoryIcon
- - icon representing the categoryMethod Detail |
---|
public void setDescription(java.lang.String categoryDescription)
categoryDescription
- - description of the categorypublic java.lang.String getDescription()
Category
This method not used by Action(s) yet.
getDescription
in interface Category
public void setIcon(javax.swing.ImageIcon categoryIcon)
categoryIcon
- - icon representing the categorypublic javax.swing.ImageIcon getIcon()
Category
getIcon
in interface Category
public void setName(java.lang.String categoryName)
categoryName
- - name of the categorypublic java.lang.String getName()
Category
getName
in interface Category
public java.lang.String getID()
Category
An action can define that it is member of a category by stating #id in its list of categories.
getID
in interface Category
public void setID(java.lang.String id)
id
- the new iDpublic boolean equals(java.lang.Object c)
equals
in class java.lang.Object
public int compareTo(Category c)
compareTo
in interface java.lang.Comparable<Category>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |