Package org.zkoss.chart
Class MenuItem
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.MenuItem
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class MenuItem extends Optionable
- Author:
- Christopher
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description MenuItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.zkoss.json.JavaScriptValuegetOnclick()Get the javascript function associated with this menu item's onclick event.StringgetText()Get the text associated with this menu item.StringgetTextKey()Get the key to a language string, if internationalization is required.voidsetOnclick(org.zkoss.json.JavaScriptValue onclick)Set the javascript function to handle this menu item's onclick event.voidsetText(String text)Set the text to be associated with this menu item.voidsetTextKey(String textKey)Set the key to a language string, if internationalization is required.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
getText
public String getText()
Get the text associated with this menu item.Default: null
- Returns:
- text the text value
-
setText
public void setText(String text)
Set the text to be associated with this menu item.- Parameters:
text- the text to display
-
getTextKey
public String getTextKey()
Get the key to a language string, if internationalization is required.Default: null
- Since:
- 7.2.2.0
-
setTextKey
public void setTextKey(String textKey)
Set the key to a language string, if internationalization is required.- Since:
- 7.2.2.0
-
getOnclick
public org.zkoss.json.JavaScriptValue getOnclick()
Get the javascript function associated with this menu item's onclick event.Default: null
-
setOnclick
public void setOnclick(org.zkoss.json.JavaScriptValue onclick)
Set the javascript function to handle this menu item's onclick event.- Parameters:
onclick- the javascript function to be associated with onclick event
-
-