Class CLOCategory
Object
CLOCategory
Handle different categories of options. This is mostly used to provide a more
readable and useful help screen for options organized in categories.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CLOCategoryThe category for global options.static final CLOCategoryThe category for user interface specific options.(package private) StringThe brief category description.static final CLOCategoryThe category for model specific options.static final CLOCategoryThe category for module specific options.(package private) intThe priority of this category.static final CLOCategoryThe category for simulation specific options. -
Constructor Summary
ConstructorsConstructorDescriptionCLOCategory(String header) Create a new category with the headerheader.CLOCategory(String header, int priority) Create a new category withheaderandpriority. -
Method Summary
Modifier and TypeMethodDescriptionGet the header of category for help display.intGet the priority of this category.voidSet the header of category for help display.
-
Field Details
-
header
String headerThe brief category description. Section header in help screen.Note: the description string may contain any UTF-8 characters as well as HTML character entities. If necessary they will be escaped and converted to UTF-8 for display in XML documents.
-
priority
int priorityThe priority of this category. Higher priorities are printed first. -
Global
The category for global options. -
GUI
The category for user interface specific options. -
Simulation
The category for simulation specific options. -
Model
The category for model specific options. -
Module
The category for module specific options.
-
-
Constructor Details
-
CLOCategory
Create a new category with the headerheader. The priority is set to0.- Parameters:
header- the header of the category
-
CLOCategory
Create a new category withheaderandpriority.- Parameters:
header- the header of the categorypriority- the priority of the category
-
-
Method Details
-
getPriority
public int getPriority()Get the priority of this category. Parameters are grouped by priority in help display.- Returns:
- the priority
-
setHeader
Set the header of category for help display.- Parameters:
header- the header
-
getHeader
-