Class ViewSpecification

Object
ViewSpecification

@PublicApi public class ViewSpecification extends Object

ViewSpecification represents the visual configuration of a structure grid. It is usually part of the StructureView, which also has a name and description for a view specification, but it can also exist by itself.

View specification contains the following properties:

This class is an immutable representation of the view. You can also use ViewSpecification.Builder class to build or modify a view specification, or to convert it into JSON format for transfer or storage.

This class is thread-safe by the merit of immutability.

Author:
Igor Sereda
See Also:
  • Field Details

    • EMPTY

      public static final ViewSpecification EMPTY
      Empty specification that does not contain any columns. Used as fallback instance where not null view specification is required.
  • Method Details

    • getColumns

      @NotNull public List<ViewSpecification.Column> getColumns()
      Returns:
      a list of columns, not null
    • getColumnDisplayMode

      public int getColumnDisplayMode()
      Returns:
      the current column display mode - see ColumnDisplayMode
    • getRowDisplayMode

      public int getRowDisplayMode()
      Returns:
      the current row display mode - see RowDisplayMode
    • getPins

      @NotNull public List<String> getPins()
      Returns:
      a list of pinned columns csid, not null
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object