org.kuali.student.common.ui.client.widgets.menus.impl
Class KSBasicMenuImpl

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.kuali.student.common.ui.client.widgets.menus.KSMenu
                  extended by org.kuali.student.common.ui.client.widgets.menus.KSBasicMenuAbstract
                      extended by org.kuali.student.common.ui.client.widgets.menus.impl.KSBasicMenuImpl
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener

public class KSBasicMenuImpl
extends KSBasicMenuAbstract


Nested Class Summary
private  class KSBasicMenuImpl.EventHandler
           
private  class KSBasicMenuImpl.MenuItemPanel
           
 
Nested classes/interfaces inherited from class org.kuali.student.common.ui.client.widgets.menus.KSMenu
KSMenu.MenuImageLocation
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
private  KSBasicMenuImpl.EventHandler handler
           
private  com.google.gwt.user.client.ui.VerticalPanel menuContainer
           
private  KSLabel menuDescription
           
private  MenuEventHandler menuHandler
           
private  List<KSBasicMenuImpl.MenuItemPanel> menuItems
           
private  com.google.gwt.user.client.ui.VerticalPanel menuPanel
           
private  KSLabel menuTitle
           
private  com.google.gwt.user.client.ui.VerticalPanel menuTitlePanel
           
private  boolean numberAllItems
           
 
Fields inherited from class org.kuali.student.common.ui.client.widgets.menus.KSMenu
items
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
KSBasicMenuImpl()
           
 
Method Summary
private  void addMenuItem(KSBasicMenuImpl.MenuItemPanel panel)
           
 void clearSelected()
          Deselects the current selected menu item
private  void createMenuItems(List<KSMenuItemData> theItems, int currentDepth)
           
 boolean isNumberAllItems()
           
protected  void populateMenu()
           
 boolean selectMenuItem(String[] hierarchy)
           
private  void selectMenuItemPanel(KSBasicMenuImpl.MenuItemPanel toBeSelected)
           
 void setDescription(String description)
           
 void setNumberAllItems(boolean numberAllItems)
           
 void setTitle(String title)
           
 
Methods inherited from class org.kuali.student.common.ui.client.widgets.menus.KSMenu
getItems, setItems
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

menuPanel

private com.google.gwt.user.client.ui.VerticalPanel menuPanel

menuTitlePanel

private com.google.gwt.user.client.ui.VerticalPanel menuTitlePanel

menuTitle

private KSLabel menuTitle

menuDescription

private KSLabel menuDescription

menuContainer

private com.google.gwt.user.client.ui.VerticalPanel menuContainer

menuItems

private List<KSBasicMenuImpl.MenuItemPanel> menuItems

numberAllItems

private boolean numberAllItems

handler

private KSBasicMenuImpl.EventHandler handler

menuHandler

private MenuEventHandler menuHandler
Constructor Detail

KSBasicMenuImpl

public KSBasicMenuImpl()
Method Detail

setTitle

public void setTitle(String title)
Specified by:
setTitle in class KSBasicMenuAbstract

setDescription

public void setDescription(String description)
Specified by:
setDescription in class KSBasicMenuAbstract

selectMenuItemPanel

private void selectMenuItemPanel(KSBasicMenuImpl.MenuItemPanel toBeSelected)

populateMenu

protected void populateMenu()
Specified by:
populateMenu in class KSMenu

createMenuItems

private void createMenuItems(List<KSMenuItemData> theItems,
                             int currentDepth)

addMenuItem

private void addMenuItem(KSBasicMenuImpl.MenuItemPanel panel)

isNumberAllItems

public boolean isNumberAllItems()
Specified by:
isNumberAllItems in class KSBasicMenuAbstract

setNumberAllItems

public void setNumberAllItems(boolean numberAllItems)
Specified by:
setNumberAllItems in class KSBasicMenuAbstract

selectMenuItem

public boolean selectMenuItem(String[] hierarchy)
Specified by:
selectMenuItem in class KSMenu

clearSelected

public void clearSelected()
Description copied from class: KSMenu
Deselects the current selected menu item

Specified by:
clearSelected in class KSMenu
See Also:
KSMenu.clearSelected()


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