org.kuali.student.common.ui.client.widgets
Class NavigationHandler

java.lang.Object
  extended by org.kuali.student.common.ui.client.widgets.NavigationHandler
All Implemented Interfaces:
com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.dom.client.KeyDownHandler, com.google.gwt.event.shared.EventHandler
Direct Known Subclasses:
ApplicationHeader.WrapperNavigationHandler, KSWrapper.WrapperNavigationHandler

public abstract class NavigationHandler
extends Object
implements com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.dom.client.KeyDownHandler


Field Summary
private  Controller controller
           
private  Enum<?> navEnum
           
private  String navigationKey
           
private  String url
           
 
Constructor Summary
NavigationHandler(Controller controller, Enum<?> navigationEnum)
           
NavigationHandler(Controller controller, String navigationKey)
           
NavigationHandler(String url)
           
 
Method Summary
abstract  void beforeNavigate(Callback<Boolean> callback)
           
protected  void doNavigate()
           
 Controller getController()
           
 Enum<?> getNavEnum()
           
 String getNavigationKey()
           
 String getUrl()
           
 void onClick(com.google.gwt.event.dom.client.ClickEvent event)
           
 void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

private final String url

controller

private final Controller controller

navigationKey

private final String navigationKey

navEnum

private final Enum<?> navEnum
Constructor Detail

NavigationHandler

public NavigationHandler(String url)

NavigationHandler

public NavigationHandler(Controller controller,
                         String navigationKey)

NavigationHandler

public NavigationHandler(Controller controller,
                         Enum<?> navigationEnum)
Method Detail

onClick

public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
Specified by:
onClick in interface com.google.gwt.event.dom.client.ClickHandler

onKeyDown

public void onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent event)
Specified by:
onKeyDown in interface com.google.gwt.event.dom.client.KeyDownHandler

doNavigate

protected void doNavigate()

getUrl

public String getUrl()

getController

public Controller getController()

getNavigationKey

public String getNavigationKey()

getNavEnum

public Enum<?> getNavEnum()

beforeNavigate

public abstract void beforeNavigate(Callback<Boolean> callback)


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.