public enum Layout extends Enum<Layout>
| Enum Constant and Description |
|---|
A
single column
|
AA
two columns of equal size
|
AAA
three columns, each of equal size
|
AB
two columns, the first being smaller than the second
|
ABA
three columns, the first and third are of equal size with the second column larger than the others
|
BA
two columns, the first being larger than the second
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(DashboardState.ColumnIndex column)
Checks if the
column exists in this layout. |
Iterable<DashboardState.ColumnIndex> |
getColumnRange()
Return an immutable
Iterable over the ColumnIndexes that exist in this layout. |
int |
getNumberOfColumns()
Returns the number of columns in this layout.
|
boolean |
isColumnSizingFair(DashboardState.ColumnIndex column)
Checks if the
column shares the space with the other columns on the screen equally or if it is greedy
and should take up more space. |
static Layout |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Layout[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Layout A
public static final Layout AA
public static final Layout AB
public static final Layout BA
public static final Layout AAA
public static final Layout ABA
public static Layout[] values()
for (Layout c : Layout.values()) System.out.println(c);
public static Layout valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getNumberOfColumns()
public boolean contains(DashboardState.ColumnIndex column)
column exists in this layout.column - Column to check exists in this layouttrue if the column exists in this layout, false otherwisepublic Iterable<DashboardState.ColumnIndex> getColumnRange()
Iterable over the ColumnIndexes that exist in this layout.Iterable over the ColumnIndexes that exist in this layout.public boolean isColumnSizingFair(DashboardState.ColumnIndex column)
column shares the space with the other columns on the screen equally or if it is greedy
and should take up more space.column - column index to check for sizing fairnessIllegalArgumentException - thrown if the column is not contained in this layoutCopyright © 2024 Atlassian. All rights reserved.