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.shared.HasHandlers, com.google.gwt.user.client.EventListener
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
private  KSButton button
           
private  com.google.gwt.user.client.ui.Image defaultArrow
           
private  com.google.gwt.event.dom.client.KeyDownHandler downHandler
           
private  boolean enabled
           
private  com.google.gwt.event.dom.client.FocusHandler focusHandler
           
private  KSMenu.MenuImageLocation imgLoc
           
private  com.google.gwt.user.client.ui.HorizontalPanel layout
           
private  boolean makeButton
           
private  KSListMenuImpl menu
           
private  MenuEventHandler menuHandler
           
private  com.google.gwt.user.client.ui.PopupPanel menuPanel
           
private  com.google.gwt.event.dom.client.MouseOutHandler mouseOutHandler
           
private  boolean mouseOver
           
private  com.google.gwt.event.dom.client.MouseOverHandler mouseOverHandler
           
private  ClickablePanel namePanel
           
private  com.google.gwt.event.dom.client.ClickHandler panelHandler
           
private  SpanPanel parentPanel
           
private  boolean showSelectedItem
           
private  boolean showTitleIcon
           
private  com.google.gwt.user.client.ui.Image titleImage
           
private  KSLabel titleLabel
           
private  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(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()
           
private  void init()
           
 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
 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
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, 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, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

namePanel

private ClickablePanel namePanel

parentPanel

private SpanPanel parentPanel

showSelectedItem

private boolean showSelectedItem

showTitleIcon

private boolean showTitleIcon

menuPanel

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

menu

private KSListMenuImpl menu

layout

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

titleLabel

private KSLabel titleLabel

titleImage

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

titleLayout

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

defaultArrow

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

mouseOver

private boolean mouseOver

imgLoc

private KSMenu.MenuImageLocation imgLoc

makeButton

private boolean makeButton

enabled

private boolean enabled

button

private KSButton button

panelHandler

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

downHandler

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

focusHandler

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

mouseOverHandler

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

mouseOutHandler

private com.google.gwt.event.dom.client.MouseOutHandler mouseOutHandler

menuHandler

private MenuEventHandler menuHandler
Constructor Detail

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

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

private 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()


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