public final class Category extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Category.Location |
| Constructor and Description |
|---|
Category(String name)
Create a new category.
|
Category(String name,
Category.Location location)
Create a new category.
|
Category(String name,
Category.Location location,
boolean onByDefault)
Create a new category.
|
Category(String name,
int priority,
Category.Location location,
boolean onByDefault)
Deprecated.
priority will be removed, as it had not been used (deprecated since 2.8)
|
| Modifier and Type | Method and Description |
|---|---|
Category.Location |
getLocation() |
String |
getName() |
int |
getPriority() |
boolean |
isDefaultOff()
Checks whether the category has been turned off
by default by the category author.
|
String |
toString() |
public Category(String name, int priority, Category.Location location, boolean onByDefault)
name - name of the categorypriority - a value between 0 and 100 (inclusive)public Category(String name)
name - name of the categorypublic Category(String name, Category.Location location)
name - name of the categorypublic Category(String name, Category.Location location, boolean onByDefault)
name - name of the categorypublic String getName()
public int getPriority()
public boolean isDefaultOff()
public Category.Location getLocation()