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