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

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.StylishDropDown
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget
Direct Known Subclasses:
CourseWorkflowActionList

public class StylishDropDown
extends com.google.gwt.user.client.ui.Composite


Nested Class Summary
 
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
protected  com.google.gwt.user.client.ui.Image defaultArrow
           
protected  com.google.gwt.event.dom.client.KeyDownHandler downHandler
           
protected  boolean enabled
           
protected  com.google.gwt.event.dom.client.FocusHandler focusHandler
           
protected  KSMenu.MenuImageLocation imgLoc
           
protected  com.google.gwt.user.client.ui.HorizontalPanel layout
           
protected  KSListMenuImpl menu
           
protected  com.google.gwt.user.client.ui.PopupPanel menuPanel
           
protected  com.google.gwt.event.dom.client.MouseOutHandler mouseOutHandler
           
protected  com.google.gwt.event.dom.client.MouseOverHandler mouseOverHandler
           
protected  ClickablePanel namePanel
           
protected  com.google.gwt.event.dom.client.ClickHandler panelHandler
           
protected  SpanPanel parentPanel
           
protected  boolean showSelectedItem
           
protected  boolean showTitleIcon
           
protected  com.google.gwt.user.client.ui.Image titleImage
           
protected  KSLabel titleLabel
           
protected  com.google.gwt.user.client.ui.HorizontalPanel titleLayout
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
StylishDropDown()
           
StylishDropDown(String title)
           
StylishDropDown(String title, com.google.gwt.user.client.ui.Image image, KSMenu.MenuImageLocation imgLoc)
           
StylishDropDown(com.google.gwt.user.client.ui.Widget widget)
           
 
Method Summary
 void addStyleName(String style)
           
 void hideMenu()
           
protected  void init()
           
 void initialise(String title)
           
 void initialise(String title, com.google.gwt.user.client.ui.Image image, KSMenu.MenuImageLocation imgLoc)
           
 void initialise(com.google.gwt.user.client.ui.Widget widget)
           
 boolean isShowingSelectedItem()
           
 boolean isShowingTitleIcon()
           
 void makeAButtonWhenOneItem(boolean makeButton)
          This method will make the stylish drop down just a button when a list of 1 item is passed in
protected  void onEnsureDebugId(String baseID)
           
 void setArrowImage(com.google.gwt.user.client.ui.Image arrow)
           
 void setEnabled(boolean enabled)
           
 void setImageLocation(KSMenu.MenuImageLocation loc)
           
 void setItems(List<KSMenuItemData> items)
           
 void setShowSelectedItem(boolean showSelectedItem)
           
 void setShowTitleIcon(boolean showTitleIcon)
           
 void showMenu()
           
 
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
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, 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, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

namePanel

protected ClickablePanel namePanel

parentPanel

protected SpanPanel parentPanel

showSelectedItem

protected boolean showSelectedItem

showTitleIcon

protected boolean showTitleIcon

menuPanel

protected com.google.gwt.user.client.ui.PopupPanel menuPanel

menu

protected KSListMenuImpl menu

layout

protected com.google.gwt.user.client.ui.HorizontalPanel layout

titleLabel

protected KSLabel titleLabel

titleImage

protected com.google.gwt.user.client.ui.Image titleImage

titleLayout

protected com.google.gwt.user.client.ui.HorizontalPanel titleLayout

defaultArrow

protected com.google.gwt.user.client.ui.Image defaultArrow

imgLoc

protected KSMenu.MenuImageLocation imgLoc

enabled

protected boolean enabled

panelHandler

protected com.google.gwt.event.dom.client.ClickHandler panelHandler

downHandler

protected com.google.gwt.event.dom.client.KeyDownHandler downHandler

focusHandler

protected com.google.gwt.event.dom.client.FocusHandler focusHandler

mouseOverHandler

protected com.google.gwt.event.dom.client.MouseOverHandler mouseOverHandler

mouseOutHandler

protected com.google.gwt.event.dom.client.MouseOutHandler mouseOutHandler
Constructor Detail

StylishDropDown

public StylishDropDown()

StylishDropDown

public StylishDropDown(String title)

StylishDropDown

public StylishDropDown(String title,
                       com.google.gwt.user.client.ui.Image image,
                       KSMenu.MenuImageLocation imgLoc)

StylishDropDown

public StylishDropDown(com.google.gwt.user.client.ui.Widget widget)
Method Detail

initialise

public void initialise(String title)

initialise

public void initialise(String title,
                       com.google.gwt.user.client.ui.Image image,
                       KSMenu.MenuImageLocation imgLoc)

initialise

public void initialise(com.google.gwt.user.client.ui.Widget widget)

makeAButtonWhenOneItem

public void makeAButtonWhenOneItem(boolean makeButton)
This method will make the stylish drop down just a button when a list of 1 item is passed in

Parameters:
makeButton -

init

protected void init()

showMenu

public void showMenu()

hideMenu

public void hideMenu()

setArrowImage

public void setArrowImage(com.google.gwt.user.client.ui.Image arrow)

setItems

public void setItems(List<KSMenuItemData> items)

setEnabled

public void setEnabled(boolean enabled)

setImageLocation

public void setImageLocation(KSMenu.MenuImageLocation loc)

addStyleName

public void addStyleName(String style)
Overrides:
addStyleName in class com.google.gwt.user.client.ui.UIObject

isShowingSelectedItem

public boolean isShowingSelectedItem()

setShowSelectedItem

public void setShowSelectedItem(boolean showSelectedItem)

setShowTitleIcon

public void setShowTitleIcon(boolean showTitleIcon)

isShowingTitleIcon

public boolean isShowingTitleIcon()

onEnsureDebugId

protected void onEnsureDebugId(String baseID)
Overrides:
onEnsureDebugId in class com.google.gwt.user.client.ui.UIObject


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