T
- the class of the entity coupled to the actionsButtonpublic class ActionButtonController<T extends com.liferay.portal.model.BaseModel<T>>
extends java.lang.Object
Constructor and Description |
---|
ActionButtonController() |
Modifier and Type | Method and Description |
---|---|
void |
addMenuItem(java.lang.String label,
java.lang.String icon,
javax.faces.event.ActionListener al,
T entity)
Adds the menu item.
|
void |
addMenuItems(java.util.List<ActionsMenuItem<T>> items)
Adds the menu items.
|
java.util.List<com.icesoft.faces.component.menubar.MenuItem> |
getMenuItems()
Gets the menu items.
|
public java.util.List<com.icesoft.faces.component.menubar.MenuItem> getMenuItems()
public void addMenuItems(java.util.List<ActionsMenuItem<T>> items)
items
- the itemspublic void addMenuItem(java.lang.String label, java.lang.String icon, javax.faces.event.ActionListener al, T entity)
label
- the labelicon
- the iconal
- the alentity
- the entity