Package edu.wpi.grip.core
Class OperationDescription.Builder
- java.lang.Object
-
- edu.wpi.grip.core.OperationDescription.Builder
-
- Enclosing class:
- OperationDescription
public static final class OperationDescription.Builder extends java.lang.Object
Builder class forOperationDescription
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationDescription.Builder
aliases(java.lang.String... aliases)
Sets the aliases.OperationDescription
build()
Builds a newOperationDescription
.OperationDescription.Builder
category(OperationCategory category)
Sets the category.OperationDescription.Builder
icon(Icon icon)
Sets the icon.OperationDescription.Builder
name(java.lang.String name)
Sets the name.OperationDescription.Builder
summary(java.lang.String summary)
Sets the summary.
-
-
-
Method Detail
-
name
public OperationDescription.Builder name(java.lang.String name)
Sets the name.
-
summary
public OperationDescription.Builder summary(java.lang.String summary)
Sets the summary.
-
category
public OperationDescription.Builder category(OperationCategory category)
Sets the category.
-
icon
public OperationDescription.Builder icon(Icon icon)
Sets the icon. Ifnull
, the operation will have no icon.
-
aliases
public OperationDescription.Builder aliases(java.lang.String... aliases)
Sets the aliases.
-
build
public OperationDescription build()
Builds a newOperationDescription
.
-
-