Class DashboardColumns

java.lang.Object
com.atlassian.gadgets.dashboard.DashboardColumns
All Implemented Interfaces:
Serializable

@Immutable public final class DashboardColumns extends Object implements Serializable
See Also:
  • Method Details

    • getItemsInColumn

      public List<DashboardItemState> getItemsInColumn(DashboardState.ColumnIndex column)
      Returns an immutable List of the DashboardStateItems in the given column.
      They are returned in the order that they appear on the dashboard from top to bottom.
      Parameters:
      column - the index of the column to retrieve the DashboardItemStates for
      Returns:
      an immutable List of the DashboardItemStates in the column
    • getColumns

      public List<List<DashboardItemState>> getColumns()
      Returns an immutable List of all columns represented as a list of items.
      Note that all those lists are immutable.
    • numberOfColumns

      public int numberOfColumns()
    • from

      public static DashboardColumns from(Iterable<? extends Iterable<DashboardItemState>> columns, int numberOfColumns)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object