com.vaadin.flow.server.menu.
Record Class AvailableViewInfo
Record Components:
title
- title of view
rolesAllowed
- logged in roles allowed for view
loginRequired
- requires login
route
- path string
lazy
- lazy loaded
register
- register view
- menu item information
children
- view children
routeParameters
- view parameters
flowLayout
- if server layout should be used
All Implemented Interfaces:
Represents a view configuration for use with a menu.
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAvailableViewInfo
(String title, String[] rolesAllowed, boolean loginRequired, String route, boolean lazy, boolean register, MenuData menu, List<AvailableViewInfo> children, Map<String, RouteParamType> routeParameters, boolean flowLayout) Creates an instance of a
AvailableViewInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()
Returns the value of the
children
record component.boolean
Indicates whether some other object is "equal to" this one.
boolean
Returns the value of the
flowLayout
record component.int
hashCode()
Returns a hash code value for this object.
boolean
lazy()
Returns the value of the
lazy
record component.boolean
Returns the value of the
loginRequired
record component.menu()
Returns the value of the
menu
record component.boolean
register()
Returns the value of the
register
record component.String[]
Returns the value of the
rolesAllowed
record component.route()
Returns the value of the
route
record component.Returns the value of the
routeParameters
record component.title()
Returns the value of the
title
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
AvailableViewInfo
public AvailableViewInfo(String title, String[] rolesAllowed, boolean loginRequired, String route, boolean lazy, boolean register, MenuData menu, List<AvailableViewInfo> children, Map<String, RouteParamType> routeParameters, boolean flowLayout) Creates an instance of a
AvailableViewInfo
record class.Parameters:
title
- the value for thetitle
record componentrolesAllowed
- the value for therolesAllowed
record componentloginRequired
- the value for theloginRequired
record componentroute
- the value for theroute
record componentlazy
- the value for thelazy
record componentregister
- the value for theregister
record componentmenu
- the value for themenu
record componentchildren
- the value for thechildren
record componentrouteParameters
- the value for therouteParameters
record componentflowLayout
- the value for theflowLayout
record component
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with
Objects::equals(Object,Object)
; primitive components are compared with '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
-
title
Returns the value of the
title
record component.Returns:
the value of the
title
record component -
rolesAllowed
Returns the value of the
rolesAllowed
record component.Returns:
the value of the
rolesAllowed
record component -
loginRequired
public boolean loginRequired()Returns the value of the
loginRequired
record component.Returns:
the value of the
loginRequired
record component -
route
Returns the value of the
route
record component.Returns:
the value of the
route
record component -
lazy
public boolean lazy()Returns the value of the
lazy
record component.Returns:
the value of the
lazy
record component -
register
public boolean register()Returns the value of the
register
record component.Returns:
the value of the
register
record component -
children
Returns the value of the
children
record component.Returns:
the value of the
children
record component -
routeParameters
Returns the value of the
routeParameters
record component.Returns:
the value of the
routeParameters
record component -
flowLayout
public boolean flowLayout()Returns the value of the
flowLayout
record component.Returns:
the value of the
flowLayout
record component
-