public static class ViewSettings.AssociatedView.Builder extends Object
ViewSettings.AssociatedView
record.Constructor and Description |
---|
Builder()
Creates an empty builder.
|
Builder(ViewSettings.AssociatedView view)
Creates a builder that copies the state of an already existing
AssociatedView record. |
Modifier and Type | Method and Description |
---|---|
ViewSettings.AssociatedView |
build()
Creates an instance of
ViewSettings.AssociatedView . |
Set<StructurePage> |
getDefaultPages() |
Set<StructurePage> |
getMenuPages() |
long |
getViewId() |
void |
setDefaultPages(Set<StructurePage> defaultPages)
Updates the set of pages on which the associated view will be the default view.
|
void |
setMenuPages(Set<StructurePage> menuPages)
Updates the set of pages on which the associated view will be in the menu.
|
void |
setViewId(long viewId)
Sets the ID of the view.
|
String |
toString() |
public Builder()
public Builder(ViewSettings.AssociatedView view)
AssociatedView
record.view
- view record to copypublic ViewSettings.AssociatedView build()
ViewSettings.AssociatedView
.null
if the builder is in invalid state
(no view ID is set)@Nullable public Set<StructurePage> getMenuPages()
null
if
the view should be in the menu on all pages.public void setMenuPages(@Nullable Set<StructurePage> menuPages)
menuPages
- set of pages, on which the associated view should be in the Views drop-down menu. If null
is passed, the view will be in the menu on all pages.@Nullable public Set<StructurePage> getDefaultPages()
null
if
the view should not be default on any page.public void setDefaultPages(@Nullable Set<StructurePage> defaultPages)
defaultPages
- set of pages, on which the associated view should be the default view. If null
is passed, the view will not be the default on any page.public long getViewId()
public void setViewId(long viewId)
viewId
- the id of the viewCopyright © 2024 Tempo Software. All Rights Reserved.