JavaFX/Classes/Category.java

25 lines
837 B
Java
Raw Permalink Normal View History

package Classes;
public enum Category {
2017-11-19 13:44:40 +00:00
2017-11-19 15:30:22 +00:00
all ( "all", "black" ),
business ( "business", "red" ),
entertainment ( "entertainment", "skyblue" ),
gaming ( "gaming", "green" ),
health ( "health", "yellow" ),
music ( "music", "purple" ),
sport ( "sport", "brown" ),
science ( "science", "#f14405" ),
nature ( "nature", "#16c668" ),
economics ( "economics", "#d1991b" ),
politics ( "politics", "#6825f4" ),
technology ( "technology", "#1e7ebe" );
2017-11-19 13:44:40 +00:00
protected String color;
protected String label;
Category(String label, String color){ this.label = label; this.color = color; }
public String getLabel(){ return this.label; }
public String getColor(){ return this.color; }
}