@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:
ViewSpecification.Column
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.
ViewSpecification.Column
,
ViewSpecification.Builder
,
StructureView
Modifier and Type | Class and Description |
---|---|
static class |
ViewSpecification.Builder
A builder for
ViewSpecification , also used to serialize view specification into JSON. |
static class |
ViewSpecification.Column
Represents a single column configuration in the Structure widget.
|
Modifier and Type | Field and Description |
---|---|
static ViewSpecification |
EMPTY
Empty specification that does not contain any columns.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getColumnDisplayMode() |
List<ViewSpecification.Column> |
getColumns() |
List<String> |
getPins() |
int |
getRowDisplayMode() |
int |
hashCode() |
String |
toString() |
public static final ViewSpecification EMPTY
@NotNull public List<ViewSpecification.Column> getColumns()
public int getColumnDisplayMode()
ColumnDisplayMode
public int getRowDisplayMode()
RowDisplayMode
Copyright © 2024 Tempo Software. All Rights Reserved.