public class StylishDropDown extends com.google.gwt.user.client.ui.Composite
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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() |
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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
protected ClickablePanel namePanel
protected SpanPanel parentPanel
protected boolean showSelectedItem
protected boolean showTitleIcon
protected com.google.gwt.user.client.ui.PopupPanel menuPanel
protected KSListMenuImpl menu
protected com.google.gwt.user.client.ui.HorizontalPanel layout
protected KSLabel titleLabel
protected com.google.gwt.user.client.ui.Image titleImage
protected com.google.gwt.user.client.ui.HorizontalPanel titleLayout
protected com.google.gwt.user.client.ui.Image defaultArrow
protected KSMenu.MenuImageLocation imgLoc
protected boolean enabled
protected com.google.gwt.event.dom.client.ClickHandler panelHandler
protected com.google.gwt.event.dom.client.KeyDownHandler downHandler
protected com.google.gwt.event.dom.client.FocusHandler focusHandler
protected com.google.gwt.event.dom.client.MouseOverHandler mouseOverHandler
protected com.google.gwt.event.dom.client.MouseOutHandler mouseOutHandler
public StylishDropDown()
public StylishDropDown(String title)
public StylishDropDown(String title, com.google.gwt.user.client.ui.Image image, KSMenu.MenuImageLocation imgLoc)
public StylishDropDown(com.google.gwt.user.client.ui.Widget widget)
public void initialise(String title)
public void initialise(String title, com.google.gwt.user.client.ui.Image image, KSMenu.MenuImageLocation imgLoc)
public void initialise(com.google.gwt.user.client.ui.Widget widget)
public void makeAButtonWhenOneItem(boolean makeButton)
makeButton
- protected void init()
public void showMenu()
public void hideMenu()
public void setArrowImage(com.google.gwt.user.client.ui.Image arrow)
public void setItems(List<KSMenuItemData> items)
public void setEnabled(boolean enabled)
public void setImageLocation(KSMenu.MenuImageLocation loc)
public void addStyleName(String style)
addStyleName
in class com.google.gwt.user.client.ui.UIObject
public boolean isShowingSelectedItem()
public void setShowSelectedItem(boolean showSelectedItem)
public void setShowTitleIcon(boolean showTitleIcon)
public boolean isShowingTitleIcon()
protected void onEnsureDebugId(String baseID)
onEnsureDebugId
in class com.google.gwt.user.client.ui.UIObject
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.