Package org.onosproject.ui
Class UiView
- java.lang.Object
 - 
- org.onosproject.ui.UiView
 
 
- 
- Direct Known Subclasses:
 UiViewHidden
public class UiView extends Object
Represents a user interface view addition. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUiView.CategoryDesignates the navigation menu category. 
- 
Constructor Summary
Constructors Constructor Description UiView(UiView.Category category, String id, String label)Creates a new user interface view descriptor.UiView(UiView.Category category, String id, String label, String iconId)Creates a new user interface view descriptor.UiView(UiView.Category category, String id, String label, String iconId, String helpPageUrl)Creates a new user interface view descriptor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UiView.Categorycategory()Returns the navigation category.booleanequals(Object obj)inthashCode()StringhelpPageUrl()Returns the help page URL for a specific view.StringiconId()Returns the icon identifier.Stringid()Returns the view identifier.Stringlabel()Returns the view label.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
UiView
public UiView(UiView.Category category, String id, String label)
Creates a new user interface view descriptor. The navigation item will appear in the navigation menu under the specified category.- Parameters:
 category- view categoryid- view identifierlabel- view label
 
- 
UiView
public UiView(UiView.Category category, String id, String label, String iconId)
Creates a new user interface view descriptor. The navigation item will appear in the navigation menu under the specified category, with the specified icon adornment.Note: see the
glyphMappingstructure inicon.jsfor valid icon identifiers.- Parameters:
 category- view categoryid- view identifierlabel- view labeliconId- icon id
 
- 
UiView
public UiView(UiView.Category category, String id, String label, String iconId, String helpPageUrl)
Creates a new user interface view descriptor. The navigation item will appear in the navigation menu under the specified category, with the specified icon adornment and specified help page.Note: see the
glyphMappingstructure inicon.jsfor valid icon identifiers.- Parameters:
 category- view categoryid- view identifierlabel- view labeliconId- icon idhelpPageUrl- help page URL
 
 - 
 
- 
Method Detail
- 
category
public UiView.Category category()
Returns the navigation category.- Returns:
 - navigation category
 
 
- 
id
public String id()
Returns the view identifier.- Returns:
 - view ID
 
 
- 
label
public String label()
Returns the view label.- Returns:
 - view label
 
 
- 
iconId
public String iconId()
Returns the icon identifier.- Returns:
 - icon ID
 
 
- 
helpPageUrl
public String helpPageUrl()
Returns the help page URL for a specific view.- Returns:
 - help page URL
 
 
 - 
 
 -