|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFlowPanel
org.spiffyui.client.nav.HasNavBarListenersPanel
public class HasNavBarListenersPanel
This is a FlowPanel that calls events by listeners listening for changes in navigation such as MainNavBar or logout on MainHeader.
| Constructor Summary | |
|---|---|
HasNavBarListenersPanel()
|
|
| Method Summary | |
|---|---|
void |
addListener(NavBarListener listener)
Adds a NavBarListener to this navigation bar |
void |
fireEvent(NavItem item)
Fires the click event on the specified nav item |
protected void |
fireEvent(NavItem item,
boolean addToHistory)
Fires the click event on the specified nav item |
boolean |
firePreEvent(NavItem item)
Notifies listeners of a request to select an item, giving listeners a change to cancel the event |
boolean |
isEnabled()
|
void |
removeListener(NavBarListener listener)
Removes a NavBarListener from this navigation bar. |
void |
setEnabled(boolean enabled)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HasNavBarListenersPanel()
| Method Detail |
|---|
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - The enabled to set.public boolean firePreEvent(NavItem item)
item - the nav item that was clicked
public void fireEvent(NavItem item)
item - the nav item that was clicked
protected void fireEvent(NavItem item,
boolean addToHistory)
item - the nav item that was clickedaddToHistory - true if this item should be added to the browser history and false otherwisepublic void addListener(NavBarListener listener)
listener - the listener to addpublic void removeListener(NavBarListener listener)
listener - the listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||