|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWidget
org.spiffyui.client.nav.NavItem
public class NavItem
A NavItem represents a single item on the navigation menu
Constructor Summary | |
---|---|
NavItem(java.lang.String id,
java.lang.String displayName)
Create a new NavItem |
|
NavItem(java.lang.String id,
java.lang.String displayName,
java.lang.String title)
Create a new NavItem |
|
NavItem(java.lang.String id,
java.lang.String displayName,
java.lang.String title,
java.lang.String link)
Create a new NavItem |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
Anchor |
getAnchor()
Gets the anchor for this nav item |
java.lang.String |
getDisplayName()
Gets the display name for this nav item |
java.lang.String |
getId()
Retrieve the Id for the NavItem. |
int |
hashCode()
|
void |
setAccessKey(char key)
Set the access key for this menu item |
void |
setDisplayName(java.lang.String displayName)
Set the display name for this nav item |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NavItem(java.lang.String id, java.lang.String displayName)
id
- the id of the navigator itemdisplayName
- the display name of the navigation itempublic NavItem(java.lang.String id, java.lang.String displayName, java.lang.String title)
id
- the id of the navigator itemdisplayName
- the display name of the navigation itemtitle
- the title or tooltip of this navigation itempublic NavItem(java.lang.String id, java.lang.String displayName, java.lang.String title, java.lang.String link)
id
- the id of the navigator itemdisplayName
- the display name of the navigation itemtitle
- the title or tooltip of this navigation itemlink
- the link location - this affects the location if the user
right-mouse clicks and opens the link in a new tabMethod Detail |
---|
public java.lang.String getId()
public Anchor getAnchor()
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- the new display namepublic void setAccessKey(char key)
key
- the keypublic int hashCode()
public boolean equals(java.lang.Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |