|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.common.ui.client.widgets.menus.KSMenuItemData
public class KSMenuItemData
The data object used to populate interactive ui menus.
Field Summary | |
---|---|
private com.google.gwt.event.dom.client.ClickHandler |
clickHandler
|
private String |
label
|
private com.google.gwt.event.shared.HandlerManager |
manager
|
private KSMenuItemData |
parent
|
private boolean |
selected
|
private com.google.gwt.user.client.ui.Image |
shownIcon
|
private String |
styleName
|
private List<KSMenuItemData> |
subItems
|
Constructor Summary | |
---|---|
KSMenuItemData(String label)
|
|
KSMenuItemData(String label,
com.google.gwt.event.dom.client.ClickHandler clickHandler)
|
|
KSMenuItemData(String label,
com.google.gwt.user.client.ui.Image icon,
com.google.gwt.event.dom.client.ClickHandler clickHandler)
|
Method Summary | |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addMenuEventHandler(com.google.gwt.event.shared.GwtEvent.Type type,
MenuEventHandler meh)
|
void |
addSpecialStyle(String style)
|
void |
addSubItem(KSMenuItemData item)
Adds a KSMenuItemData to the list of children for this menu "category". |
com.google.gwt.event.dom.client.ClickHandler |
getClickHandler()
Get the ClickHandler for this menu item. |
String |
getLabel()
Get the text used for this menu item |
KSMenuItemData |
getParent()
Gets the parent of this KSMenuItemData |
com.google.gwt.user.client.ui.Image |
getShownIcon()
|
String |
getSpecialStyle()
|
List<KSMenuItemData> |
getSubItems()
Gets the list of sub items (children) in this KSMenuItemData |
boolean |
isSelected()
|
void |
setClickHandler(com.google.gwt.event.dom.client.ClickHandler clickHandler)
Set the click handler for this menu item (what the menu item does when selected). |
void |
setLabel(String label)
Set the label to be used in the menu for this menu item |
void |
setParent(KSMenuItemData parent)
Set the parent of this KSMenuItemData |
void |
setSelected(boolean selected)
|
void |
setSelected(boolean selected,
boolean fireClick)
|
void |
setShownIcon(com.google.gwt.user.client.ui.Image shownIcon)
|
void |
unhandledSetSelected(boolean selected)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String label
private String styleName
private com.google.gwt.event.dom.client.ClickHandler clickHandler
private List<KSMenuItemData> subItems
private KSMenuItemData parent
private boolean selected
private com.google.gwt.user.client.ui.Image shownIcon
private com.google.gwt.event.shared.HandlerManager manager
Constructor Detail |
---|
public KSMenuItemData(String label)
public KSMenuItemData(String label, com.google.gwt.event.dom.client.ClickHandler clickHandler)
public KSMenuItemData(String label, com.google.gwt.user.client.ui.Image icon, com.google.gwt.event.dom.client.ClickHandler clickHandler)
Method Detail |
---|
public String getLabel()
public void setLabel(String label)
label
- the "label" of this menu itempublic com.google.gwt.event.dom.client.ClickHandler getClickHandler()
public void setClickHandler(com.google.gwt.event.dom.client.ClickHandler clickHandler)
clickHandler
- a ClickHandler for this menu item.public void addSubItem(KSMenuItemData item)
item
- a KSMenuItemData that is a child of this KSMenuItemDatapublic List<KSMenuItemData> getSubItems()
public void setParent(KSMenuItemData parent)
parent
- the KSMenuItemData which is the parent KSMenuItemData (category)public KSMenuItemData getParent()
public boolean isSelected()
public void setSelected(boolean selected)
public void setSelected(boolean selected, boolean fireClick)
public void unhandledSetSelected(boolean selected)
public com.google.gwt.user.client.ui.Image getShownIcon()
public void setShownIcon(com.google.gwt.user.client.ui.Image shownIcon)
public com.google.gwt.event.shared.HandlerRegistration addMenuEventHandler(com.google.gwt.event.shared.GwtEvent.Type type, MenuEventHandler meh)
public void addSpecialStyle(String style)
public String getSpecialStyle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |