public class GlobalMenuItem extends Object implements Comparable<GlobalMenuItem>
Constructor and Description |
---|
GlobalMenuItem(String path,
String identifier,
String label,
int priority,
String groupIdentifier)
Creates a new
GlobalMenuItem . |
GlobalMenuItem(String path,
String identifier,
String label,
String description,
int priority,
String groupIdentifier)
Creates a new
GlobalMenuItem . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GlobalMenuItem o) |
boolean |
equals(Object obj) |
String |
getDescription()
Returns the description of the menu entry.
|
String |
getGroupIdentifier()
Returns the the identifier of the group of which this menu item is part,
null if this is a top-level item.
|
String |
getIdentifier()
Return the identifier of the menu entry.
|
String |
getLabel()
Returns the label of the menu entry
|
String |
getPath()
Returns the path of the resource to be shown in the menu.
|
int |
getPriority()
Returns the the priority within the group, which is used for sorting
the menu Items, higher numbers appear first in the menu
|
int |
hashCode() |
public GlobalMenuItem(String path, String identifier, String label, int priority, String groupIdentifier)
GlobalMenuItem
.relativeUri
- of the resource to be shown in the menu.identifier
- The identifier of the menu item.label
- Specifies the label of the menu entry.priority
- the priority, higher numbers appear first in the menugroupIdentifier
- Specifies the the identifier of the group of which
the menu item is part.public GlobalMenuItem(String path, String identifier, String label, String description, int priority, String groupIdentifier)
GlobalMenuItem
.relativeUri
- of the resource to be shown in the menu.identifier
- The identifier of the menu item.label
- Specifies the label of the menu entry.description
- The description of the menu item.priority
- the priority, higher numbers appear first in the menugroupIdentifier
- Specifies the the identifier of the group of which
the menu item is part.public String getPath()
javax.ws.rs.Path
annotation of the
GlobalMenuItemsProvider
that returned this
GlobalMenuItem
.public String getLabel()
public String getDescription()
public String getIdentifier()
public int getPriority()
public String getGroupIdentifier()
public int compareTo(GlobalMenuItem o)
compareTo
in interface Comparable<GlobalMenuItem>
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.