Package org.evoludo.util
Class CLOption.Category
Object
Category
- Enclosing class:
CLOption
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 CLOption.Category
The category for global options.static final CLOption.Category
The category for user interface specific options.(package private) String
The brief category description.static final CLOption.Category
The category for model specific options.static final CLOption.Category
The category for module specific options.(package private) int
The priority of this category.static final CLOption.Category
The category for simulation specific options. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the header of category for help display.int
Get the priority of this category.void
Set the header of category for help display.
-
Field Details
-
header
String headerThe brief category description. Section header in help screen. -
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
-
Category
Create a new category with the headerheader
. The priority is set to0
.- Parameters:
header
- the header of the category
-
Category
Create a new category withheader
andpriority
.- 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
Get the header of category for help display.- Returns:
- the header
-