Class ViewSpecification
Object
ViewSpecification
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:
- List of columns that are displayed by the Structure widget -- see
ViewSpecification.Column - Column display mode that is used by default for the view -- see
ColumnDisplayMode
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder forViewSpecification, also used to serialize view specification into JSON.static classRepresents a single column configuration in the Structure widget. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ViewSpecificationEmpty specification that does not contain any columns. -
Method Summary
-
Field Details
-
EMPTY
Empty specification that does not contain any columns. Used as fallback instance where not null view specification is required.
-
-
Method Details
-
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
- Returns:
- a list of pinned columns csid, not null
-
toString
-
equals
-
hashCode
public int hashCode()
-