Enum Class BuiltInLayouts
- All Implemented Interfaces:
LayoutType
,Serializable
,Comparable<BuiltInLayouts>
,Constable
The types of layouts bundled with Shuffleboard.
ShuffleboardLayout myList = Shuffleboard.getTab("My Tab")
.getLayout(BuiltinLayouts.kList, "My List");
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the string type of the layout as defined by that layout in Shuffleboard.static BuiltInLayouts
Returns the enum constant of this class with the specified name.static BuiltInLayouts[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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.
-