public static class ViewSettings.AssociatedView extends Object
AssociatedView
is a record of a view association within ViewSettings
. A
record contains a view ID and "menu" and "default" per-page markers that tell if the specified
view is offered to the user in the menu on a page and if the view is the default on a page.
The markers are represented as two sets of StructurePage
- menuPages
set contains pages on which the view is offered in drop-down, and defaultPages
set contains pages on which the view is the default.
This class is immutable and thread-safe. To construct a new instance, use
ViewSettings.AssociatedView.Builder
.
Modifier and Type | Class and Description |
---|---|
static class |
ViewSettings.AssociatedView.Builder
The builder for
ViewSettings.AssociatedView record. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Set<StructurePage> |
getDefaultPages() |
Set<StructurePage> |
getMenuPages() |
long |
getViewId() |
int |
hashCode() |
boolean |
isDefault(StructurePage page)
Checks if the view is the default on the specified page.
|
boolean |
isOnMenu(StructurePage page)
Checks if the view should be displayed in the menu on the specified page.
|
String |
toString() |
@NotNull public Set<StructurePage> getMenuPages()
@NotNull public Set<StructurePage> getDefaultPages()
public long getViewId()
public boolean isOnMenu(StructurePage page)
page
- page with Structure widgetpublic boolean isDefault(StructurePage page)
page
- page with Structure widgetCopyright © 2024 Tempo Software. All Rights Reserved.