org.kuali.student.common.ui.client.widgets
Class StylishDropDown
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
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 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 |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
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 |
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
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)
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.