Enum BuiltInLayouts
- All Implemented Interfaces:
LayoutType
,Serializable
,Comparable<BuiltInLayouts>
,java.lang.constant.Constable
public enum BuiltInLayouts extends Enum<BuiltInLayouts> implements LayoutType
The types of layouts bundled with Shuffleboard.
ShuffleboardLayout myList = Shuffleboard.getTab("My Tab")
.getLayout(BuiltinLayouts.kList, "My List");
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description String
getLayoutName()
Gets the string type of the layout as defined by that layout in Shuffleboard.static BuiltInLayouts
valueOf(String name)
Returns the enum constant of this type with the specified name.static BuiltInLayouts[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
kList
Groups components in a vertical list. New widgets added to the layout will be placed at the bottom of the list.
Custom properties:Name Type Default Value Notes Label position String "BOTTOM" The position of component labels inside the grid. One of ["TOP", "LEFT", "BOTTOM", "RIGHT", "HIDDEN"
-
kGrid
Groups components in an n x m grid. Grid layouts default to 3x3.
Custom properties:Name Type Default Value Notes Number of columns Number 3 Must be in the range [1,15] Number of rows Number 3 Must be in the range [1,15] Label position String "BOTTOM" The position of component labels inside the grid. One of ["TOP", "LEFT", "BOTTOM", "RIGHT", "HIDDEN"
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getLayoutName
Description copied from interface:LayoutType
Gets the string type of the layout as defined by that layout in Shuffleboard.- Specified by:
getLayoutName
in interfaceLayoutType
- Returns:
- The string type of the layout.
-