Class ViewSettings.AssociatedView
Object
AssociatedView
- Enclosing class:
- ViewSettings
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe builder forViewSettings.AssociatedViewrecord. -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonginthashCode()booleanisDefault(StructurePage page) Checks if the view is the default on the specified page.booleanisOnMenu(StructurePage page) Checks if the view should be displayed in the menu on the specified page.toString()
-
Method Details
-
getMenuPages
- Returns:
- unmodifiable set of pages which have this view in the drop-down
-
getDefaultPages
- Returns:
- unmodifiable set of pages which have this view as the default
-
getViewId
public long getViewId()- Returns:
- the view ID
-
isOnMenu
Checks if the view should be displayed in the menu on the specified page.- Parameters:
page- page with Structure widget- Returns:
- true if the view should be offered in the drop-down
-
isDefault
Checks if the view is the default on the specified page.- Parameters:
page- page with Structure widget- Returns:
- true if the view is the default
-
toString
-
equals
-
hashCode
public int hashCode()
-