FR [2983757] - Contrib: images for menu in the webui

https://sourceforge.net/tracker/index.php?func=detail&aid=2983757&group_id=176962&atid=955896
Committed proposal by arnulf0.
This commit is contained in:
trifonnt 2010-04-15 17:52:14 +00:00
parent a55504a2ec
commit deaa6cf731
1 changed files with 2 additions and 1 deletions

View File

@ -227,7 +227,7 @@ public class DPFavourites extends DashboardPanel implements EventListener {
}
/**
* Add menu treeitem into the user favourite panel
* Add menu treeitem into the user favorite panel
* @param treeitem
*/
public void addItem(Treeitem treeitem) {
@ -240,6 +240,7 @@ public class DPFavourites extends DashboardPanel implements EventListener {
String label = treeitem.getLabel().trim();
ToolBarButton btnFavItem = new ToolBarButton(String.valueOf(Node_ID));
btnFavItem.setLabel(label);
btnFavItem.setImage(treeitem.getImage());
btnFavItem.setDraggable(DELETE_FAV_DROPPABLE);
btnFavItem.addEventListener(Events.ON_CLICK, this);
btnFavItem.addEventListener(Events.ON_DROP, this);