/*
* Created on 2004/11/05
* Author aki@www.xucker.jpn.org
* License Apache2.0 or Common Public License
*/
package org.jpn.xucker.commons.swt.ui;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.swt.widgets.MenuItem;
/**
*
*
*/
public class MenuItemContainerImp implements MenuItemContainer{
private Object executeObject;
private Map map=new HashMap();
/* (non-Javadoc)
* @see org.jpn.xucker.commons.swt.ui.MenuContainer#getMenuItem(java.lang.String)
*/
public void addMenuItem(MenuItem item,String key){
map.put(key,item);
}
public MenuItem getMenuItem(String key) {
// TODO Auto-generated method stub
return (MenuItem)map.get(key);
}
/* (non-Javadoc)
* @see org.jpn.xucker.commons.swt.ui.MenuContainer#setExecuteObject(java.lang.Object)
*/
public void setExecuteObject(Object object) {
// TODO Auto-generated method stub
this.executeObject=object;
}
/* (non-Javadoc)
* @see org.jpn.xucker.commons.swt.ui.MenuContainer#getExecuteObject()
*/
public Object getExecuteObject() {
// TODO Auto-generated method stub
return executeObject;
}
}
|